On Fri, Jun 10, 2011 at 12:52 PM, Warren Selby <[email protected]>wrote:

> I'm on my phone, otherwise I'd give example dialplan and sip.conf snippets.
>
>

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.

>From sip.conf:

[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>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to