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