<div class="gmail_quote">On Fri, Jun 10, 2011 at 12:52 PM, Warren Selby <span dir="ltr"><<a href="mailto:wcselby@selbytech.com">wcselby@selbytech.com</a>></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'm on my phone, otherwise I'd give example dialplan and sip.conf snippets. <br></div></blockquote></div><br>I'm back home, so here's some examples. I'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 "outgoing". 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="Front Desk" <1600><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 => _1NXXXXXXXXX,1,Verbose(Outbound call from ${callidnum} to ${EXTEN} on ${STRFTIME(${EPOCH},,%D)} at ${STRFTIME(${EPOCH},,%T)}.)<br><b>exten => _1NXXXXXXXXX,n,Set(CALLERID(num)=${callidnum})</b><br>
exten => _1NXXXXXXXXX,n,Goto(outgoing-dial,${EXTEN},1)<br><br>[outgoing-dial]<br>; Dial out on SIP trunks - domestic<br>exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@voip_provider)<br>exten => _1NXXNXXXXXX,n,Hangup()<br>
<br><br>This setup allows me to display "Front Desk" <1600> on internal calls, and the DID associated with extension 1600 on external calls. This also means I don't need any extra AGI'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>