Filipe Brandenburger
2007-Aug-07 15:18 UTC
[asterisk-users] Use of context=... in [default] section of sip.conf
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
Jared Smith
2007-Aug-07 15:27 UTC
[asterisk-users] Use of context=... in [default] section of sip.conf
On Tue, 2007-08-07 at 11:18 -0400, Filipe Brandenburger wrote:> 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.That's correct. The context is only there to tell Asterisk where in the dialplan to send *incoming* calls.> 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?My guess would be the [default] context, but I could be wrong.> What if there's no context or an invalid context on a section, > what would happen to incoming calls that match that section?The calls would most likely be rejected by Asterisk. -- Jared Smith Community Relations Manager Digium, Inc.