[asterisk-users] Set DID?

Marco Mouta marco.mouta at gmail.com
Thu Aug 10 11:15:30 MST 2006


Handle incoming calls to "s" extension and in the next priority set EXTEN
var to your DID then make a goto to desired context.

Hope it helps,
MoutaPT


On 8/10/06, Dean Collins <Dean at collins.net.pr> wrote:
>
> Hi Eric,
> No I know what I want. I want to set the DID to be 212-531-6214 as my
> current provider doesn't send a DID number.
>
>
>
> Cheers,
>
> Dean
>
>
>
>
> > -----Original Message-----
> > From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> > bounces at lists.digium.com] On Behalf Of Eric "ManxPower" Wieling
> > Sent: Thursday, 10 August 2006 1:24 PM
> > To: Asterisk Users Mailing List - Non-Commercial Discussion
> > Subject: Re: [asterisk-users] Set DID?
> >
> > Dean Collins wrote:
> > > Is there a command for setting of a DID number?
> > >
> > >
> > >
> > > Eg below I can set callerid
> > >
> > >
> > >
> > > [custom-fromiaxfwd]
> > >
> > > exten => s,1,Set(CALLERID(number)=2125316214)
> > >
> > >
> > >
> > >
> > >
> > > Butw what I would prefer to do is set DID -like this (it doesn't
> work
> > >
> > >
> > >
> > > [custom-fromiaxfwd]
> > >
> > > exten => s,1,Set(CALLERDID(number)=2125316214)
> > >
> > >
> > >
> > >
> > >
> > > I couldn't find anything in the voip-info commands section so was
> hoping
> > > for a clue from the list.
> >
> > You are trying to set the CallerID, not setting the DID.  The DID is
> in
> > ${EXTEN}.
> >
> > If you want to set the CallerID for calls to the PSTN you must be
> using
> > ISDN.  If you are using VoIP, then the VoIP server must be using ISDN
> > (pretty much all of them are).
> >
> > Your carrier must permit you to set that info.  Not all of them do.
> >
> > --
> > Now accepting new clients in Birmingham, Atlanta, Huntsville,
> > Chattanooga, and Montgomery.
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > asterisk-users mailing list
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Com os melhores cumprimentos,

Marco Mouta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060810/c6433a1f/attachment.htm


More information about the asterisk-users mailing list