Re: [asterisk-users] Use of context=... in [default] section of sip.conf
When you make calls then context=xxx of the peer you are using ( your extension ) will matter , the context=yyy line of your trunk wont matter . If you dont specify a context= for a peer then it is considered to be in [default] context . On 07/08/07, Jared Smith <[EMAIL PROTECTED]> wrote: > > 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. > > > ___ > --Bandwidth and Colocation Provided by http://www.api-digital.com-- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: >http://lists.digium.com/mailman/listinfo/asterisk-users > ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [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. ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[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:[EMAIL PROTECTED] 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 ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users