by david55 » Wed Apr 25, 2012 4:39 pm
I don't fully understand the question, but:
allowguest=yes (which is default) in the general section will cause incoming calls to be passed to the context specified in the general section (default context is "default"), as long as they don't match a more specific entry.
A peer entry matching the IP address of the source, and with no secret, or with insecure=invite, will accept all calls with their last hop at that address.
I think the same applies to user entries, with no secret, if the From header (or is it Contact?) matches the sip.conf section name. I presume insecure=invite works there, as well, although it is normally only used for peer mode entries.
On the outgoing side, you will need to specify the host name or address, if there is no registration.
(In case you want Asterisk to act as a proxy, it won't. All calls must be terminated and then chained with Dial, etc.)
This was the wrong forum. I have answered assuming that you meant to use Asterisk Support (i.e. you are not trying to do this through one of the Asterisk GUIs).