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

Jared Smith jsmith at digium.com
Tue Aug 7 10:27:30 CDT 2007


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.




More information about the asterisk-users mailing list