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> &lt;<a href="mailto:jsmith@digium.com">jsmith@digium.com</a>&gt; 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>&gt; If I have [myprovider] section with context=something. When I do an<br>&gt; outgoing call by using Dial(SIP/myprovider/464646)&quot;, does context=...
<br>&gt; affect anything? As I understand it, it only affects incoming calls, but<br>&gt; I might be wrong.<br><br>That&#39;s correct.&nbsp;&nbsp;The context is only there to tell Asterisk where in the<br>dialplan to send *incoming* calls.
<br><br>&gt; Another thing, the setting of context=... on [default] section will<br>&gt; affect all [provider] sections without context=..., right? What if I<br>&gt; don&#39;t specify any context on [default], what would be the default
<br>&gt; context?<br><br>My guess would be the [default] context, but I could be wrong.<br><br>&gt; What if there&#39;s no context or an invalid context on a section,<br>&gt; 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>&nbsp;&nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>