No subject


Tue Apr 12 01:01:39 CDT 2011


[0004f2xxxxxx](poly650)
defaultuser=0004f2xxxxxx
callerid="Front Desk" <1600>
mailbox=1600
*setvar=callidnum=1234561600*

and from extensions.conf:

[outgoing]
; Outbound unrestricted domestic calls
exten => _1NXXXXXXXXX,1,Verbose(Outbound call from ${callidnum} to ${EXTEN}
on ${STRFTIME(${EPOCH},,%D)} at ${STRFTIME(${EPOCH},,%T)}.)
*exten => _1NXXXXXXXXX,n,Set(CALLERID(num)=${callidnum})*
exten => _1NXXXXXXXXX,n,Goto(outgoing-dial,${EXTEN},1)

[outgoing-dial]
; Dial out on SIP trunks - domestic
exten => _1NXXNXXXXXX,1,Dial(SIP/${EXTEN}@voip_provider)
exten => _1NXXNXXXXXX,n,Hangup()


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.

If you have any questions, please feel free to ask.

-- 
Thanks,
--Warren Selby, dCAP
http://www.SelbyTech.com <http://www.selbytech.com>

--00163649982d63313b04a55fe58d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div class=3D"gmail_quote">On Fri, Jun 10, 2011 at 12:52 PM, Warren Selby <=
span dir=3D"ltr">&lt;<a href=3D"mailto:wcselby at selbytech.com">wcselby at selby=
tech.com</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=
=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor=3D"#FFFFFF">I&#39;m on my phone, otherwise I&#39;d give exampl=
e dialplan and sip.conf snippets. <br></div></blockquote></div><br>I&#39;m =
back home, so here&#39;s some examples.=A0 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.=A0 The context in this case is &q=
uot;outgoing&quot;.=A0 The provider sets the outbound CNAM based on the CAL=
LERID(num) I send them.=A0 This is a 1.6.2.9 installation, in case that mat=
ters to anyone.<br>
<br>From sip.conf:<br><br>[0004f2xxxxxx](poly650)<br>defaultuser=3D0004f2xx=
xxxx<br>callerid=3D&quot;Front Desk&quot; &lt;1600&gt;<br>mailbox=3D1600<br=
><b>setvar=3Dcallidnum=3D1234561600</b><br><br>and from extensions.conf:<br=
><br>[outgoing]<br>
; Outbound unrestricted domestic calls<br>exten =3D&gt; _1NXXXXXXXXX,1,Verb=
ose(Outbound call from ${callidnum} to ${EXTEN} on ${STRFTIME(${EPOCH},,%D)=
} at ${STRFTIME(${EPOCH},,%T)}.)<br><b>exten =3D&gt; _1NXXXXXXXXX,n,Set(CAL=
LERID(num)=3D${callidnum})</b><br>
exten =3D&gt; _1NXXXXXXXXX,n,Goto(outgoing-dial,${EXTEN},1)<br><br>[outgoin=
g-dial]<br>; Dial out on SIP trunks - domestic<br>exten =3D&gt; _1NXXNXXXXX=
X,1,Dial(SIP/${EXTEN}@voip_provider)<br>exten =3D&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.=A0 This also means I don&#39;t need any extra AGI&#39;s or db lookup=
s, etc.=A0 <br>
<br>If you have any questions, please feel free to ask.<br><br>-- <br>Thank=
s,<br>--Warren Selby, dCAP<br><a href=3D"http://www.selbytech.com" target=
=3D"_blank">http://www.SelbyTech.com</a><br><br>

--00163649982d63313b04a55fe58d--



More information about the asterisk-users mailing list