<div class="gmail_quote">On Fri, Jun 10, 2011 at 12:52 PM, Warren Selby <span dir="ltr">&lt;<a href="mailto:wcselby@selbytech.com">wcselby@selbytech.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF">I&#39;m on my phone, otherwise I&#39;d give example dialplan and sip.conf snippets. <br></div></blockquote></div><br>I&#39;m back home, so here&#39;s some examples.  I&#39;m using a template in sip.conf that provides a lot of the common, duplicated settings for the phones on site, like type, secret, context, etc.  The context in this case is &quot;outgoing&quot;.  The provider sets the outbound CNAM based on the CALLERID(num) I send them.  This is a 1.6.2.9 installation, in case that matters to anyone.<br>
<br>From sip.conf:<br><br>[0004f2xxxxxx](poly650)<br>defaultuser=0004f2xxxxxx<br>callerid=&quot;Front Desk&quot; &lt;1600&gt;<br>mailbox=1600<br><b>setvar=callidnum=1234561600</b><br><br>and from extensions.conf:<br><br>[outgoing]<br>
; Outbound unrestricted domestic calls<br>exten =&gt; _1NXXXXXXXXX,1,Verbose(Outbound call from ${callidnum} to ${EXTEN} on ${STRFTIME(${EPOCH},,%D)} at ${STRFTIME(${EPOCH},,%T)}.)<br><b>exten =&gt; _1NXXXXXXXXX,n,Set(CALLERID(num)=${callidnum})</b><br>
exten =&gt; _1NXXXXXXXXX,n,Goto(outgoing-dial,${EXTEN},1)<br><br>[outgoing-dial]<br>; Dial out on SIP trunks - domestic<br>exten =&gt; _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@voip_provider)<br>exten =&gt; _1NXXNXXXXXX,n,Hangup()<br>
<br><br>This setup allows me to display &quot;Front Desk&quot; &lt;1600&gt; on internal calls, and the DID associated with extension 1600 on external calls.  This also means I don&#39;t need any extra AGI&#39;s or db lookups, etc.  <br>
<br>If you have any questions, please feel free to ask.<br><br>-- <br>Thanks,<br>--Warren Selby, dCAP<br><a href="http://www.selbytech.com" target="_blank">http://www.SelbyTech.com</a><br><br>