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

Jaswinder Singh vicky.r at gmail.com
Tue Aug 7 10:50:43 CDT 2007


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 <jsmith at digium.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070807/2802af31/attachment.htm 


More information about the asterisk-users mailing list