Handle incoming calls to "s" extension and in the next priority set EXTEN var to your DID then make a goto to desired context.<br><br>Hope it helps,<br>MoutaPT<br><br><br><div><span class="gmail_quote">On 8/10/06,
<b class="gmail_sendername">Dean Collins</b> <<a href="mailto:Dean@collins.net.pr">Dean@collins.net.pr</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Eric,<br>No I know what I want. I want to set the DID to be 212-531-6214 as my<br>current provider doesn't send a DID number.<br><br><br><br>Cheers,<br><br>Dean<br><br><br><br><br>> -----Original Message-----<br>> From:
<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-">asterisk-users-</a><br>> <a href="mailto:bounces@lists.digium.com">bounces@lists.digium.com
</a>] On Behalf Of Eric "ManxPower" Wieling<br>> Sent: Thursday, 10 August 2006 1:24 PM<br>> To: Asterisk Users Mailing List - Non-Commercial Discussion<br>> Subject: Re: [asterisk-users] Set DID?<br>>
<br>> Dean Collins wrote:<br>> > Is there a command for setting of a DID number?<br>> ><br>> ><br>> ><br>> > Eg below I can set callerid<br>> ><br>> ><br>> ><br>> > [custom-fromiaxfwd]
<br>> ><br>> > exten => s,1,Set(CALLERID(number)=2125316214)<br>> ><br>> ><br>> ><br>> ><br>> ><br>> > Butw what I would prefer to do is set DID -like this (it doesn't<br>
work<br>> ><br>> ><br>> ><br>> > [custom-fromiaxfwd]<br>> ><br>> > exten => s,1,Set(CALLERDID(number)=2125316214)<br>> ><br>> ><br>> ><br>> ><br>> ><br>
> > I couldn't find anything in the voip-info commands section so was<br>hoping<br>> > for a clue from the list.<br>><br>> You are trying to set the CallerID, not setting the DID. The DID is<br>in<br>> ${EXTEN}.
<br>><br>> If you want to set the CallerID for calls to the PSTN you must be<br>using<br>> ISDN. If you are using VoIP, then the VoIP server must be using ISDN<br>> (pretty much all of them are).<br>><br>> Your carrier must permit you to set that info. Not all of them do.
<br>><br>> --<br>> Now accepting new clients in Birmingham, Atlanta, Huntsville,<br>> Chattanooga, and Montgomery.<br>> _______________________________________________<br>> --Bandwidth and Colocation provided by
<a href="http://Easynews.com">Easynews.com</a> --<br>><br>> asterisk-users mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:
<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>Com os melhores cumprimentos,<br><br>
Marco Mouta