[asterisk-users] Use of context=... in [default] section of sip.conf

Filipe Brandenburger filipe.brandenburger at genizon.com
Tue Aug 7 10:18:24 CDT 2007


Hi,

If I have [myprovider] section with context=something. When I do an
outgoing call by using Dial(SIP/myprovider/464646)", does context=...
affect anything? As I understand it, it only affects incoming calls, but
I might be wrong.

Another thing, the setting of context=... on [default] section will
affect all [provider] sections without context=..., right? What if I
don't specify any context on [default], what would be the default
context? What if there's no context or an invalid context on a section,
what would happen to incoming calls that match that section?

If I want to receive calls on the URI sip:mynumber at myhost.dyndns.org
from anywhere on the net, I should set context=... on [default] section,
right? That's it, or would I also need to set something like
autocreatepeer? I read it's insecure to set it, but I wonder if there's
another way to do it...

Thanks,
Filipe




More information about the asterisk-users mailing list