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 .
<br><br><div><span class="gmail_quote">On 07/08/07, <b class="gmail_sendername">Jared Smith</b> <<a href="mailto:jsmith@digium.com">jsmith@digium.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, 2007-08-07 at 11:18 -0400, Filipe Brandenburger wrote:<br>> If I have [myprovider] section with context=something. When I do an<br>> outgoing call by using Dial(SIP/myprovider/464646)", does context=...
<br>> affect anything? As I understand it, it only affects incoming calls, but<br>> I might be wrong.<br><br>That's correct. The context is only there to tell Asterisk where in the<br>dialplan to send *incoming* calls.
<br><br>> Another thing, the setting of context=... on [default] section will<br>> affect all [provider] sections without context=..., right? What if I<br>> don't specify any context on [default], what would be the default
<br>> context?<br><br>My guess would be the [default] context, but I could be wrong.<br><br>> What if there's no context or an invalid context on a section,<br>> what would happen to incoming calls that match that section?
<br><br>The calls would most likely be rejected by Asterisk.<br><br><br><br>--<br>Jared Smith<br>Community Relations Manager<br>Digium, Inc.<br><br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by
<a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>