Sir,<br><br><br><div class="gmail_quote">On Tue, May 10, 2011 at 6:15 PM, A J Stiles <span dir="ltr">&lt;<a href="mailto:asterisk_list@earthshod.co.uk" target="_blank">asterisk_list@earthshod.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
(Reformatted *again*.  The proper place to post your reply is *below* the<br>
message or section to which you are replying, so it reads like:  question,<br>
answer, question, answer.  This makes things much easier for anyone with a<br>
similar problem in future, trying to make sense of old messages in the<br>
archives.)<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">sorry sir I am new to asterisk,</blockquote><div><br>

 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>
On Tuesday 10 May 2011, mahesh katta wrote:<br>
</div><div>&gt; On Tue, May 10, 2011 at 4:49 PM, A J Stiles<br>
&gt;<br>
&gt; &lt;<a href="mailto:asterisk_list@earthshod.co.uk" target="_blank">asterisk_list@earthshod.co.uk</a>&gt;wrote:<br>
</div><div>&gt; &gt; &quot;Not working&quot; can mean a lot of things.<br>
&gt; &gt;<br>
&gt; &gt; So, let&#39;s start at the beginning.  Have you ever actually managed to get<br>
&gt; &gt; an outgoing call to work *at all* -- i.e., successfully placed a call<br>
&gt; &gt; onto a trunk, made an external phone ring and been able to speak to the<br>
&gt; &gt; other party,<br>
&gt; &gt; even if the caller ID that shew up was incorrect ?<br>
&gt; &gt;<br>
&gt; &gt; Assuming so, please show the dialplan section that worked for that.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Otherwise, you need to go back to first principles and work out exactly<br>
&gt; &gt; what<br>
&gt; &gt; you are doing wrong.  We need to start from a point where you are able to<br>
&gt; &gt; place external calls *before* we can discuss how to set the desired<br>
&gt; &gt; caller ID<br>
&gt; &gt; to appear on the receiving end.<br>
&gt; &gt;<br>
&gt; &gt; Obligatory car analogy:  There&#39;s no point arguing over whether motorways<br>
&gt; &gt; are<br>
&gt; &gt; quicker than A-roads, if you can&#39;t even get the engine to start.<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Next, please describe how to determine, based on the internal extension,<br>
&gt; &gt; what<br>
&gt; &gt; caller ID number should be presented to the outside world.<br>
&gt; &gt;<br>
</div><div>&gt; A.j Sir,<br>
&gt;<br>
&gt; I am using vicidial server asterisk box. it has asterisk 1.27v ,<br>
&gt;<br>
&gt; In sip configuration is extensiosn like below<br>
&gt;<br>
&gt; [5001]<br>
&gt; username=5001<br>
&gt; secret=1234<br>
&gt; mailbox=5001<br>
&gt; type=friend^M<br>
&gt; host=dynamic^M<br>
&gt; canreinvite=no^M<br>
&gt; qualify=yes^M<br>
&gt; nat=yes^M<br>
&gt; context=default<br>
&gt;<br>
&gt; 5001 to 5099<br>
&gt;<br>
&gt; and PRI pilot no. is 4457900 in dubai , telcom give a DID&#39;s 4457900 to<br>
&gt; 4457999,<br>
&gt;<br>
&gt; when i am dialing from pstn on DID&#39;s(inbound) that will connecting (i was<br>
&gt; configured with sip means when i dial the 4457901 from outside i will get a<br>
&gt; call on 5001 extension)<br>
<br>
</div>O.K.  So what are you seeing in the console when you place an outgoing call?<br>
There should be two NoOp() lines per call; one with the original extension<br>
number, and another with what we are trying to set the caller ID to.<br>
<br>
If it helps, change the lines for steps 1 and 3 as follows:<br>
<br>
exten =&gt; _90XXXXXXXXX,1,NoOp(Int exten:${CALLERID(num)})<br>
exten =&gt; _90XXXXXXXXX,3,NoOp(Ext ident:${outgoing_ident})<br>
<br>
so it is more obvious what they are supposed to represent.  Run<br>
asterisk -vvvvvvvvvr in a console, reload the dialplan, capture some output<br>
as you make calls from various extensions, and paste it here.  The important<br>
question is:  Do the &quot;Ext ident&quot; numbers look like what they are supposed to?<br>
And if not, then how do they differ from what they are supposed to look like?<br>
<div><br></div></blockquote>     NoOp(&quot;SIP/5001-b792a1a8&quot;, &quot;Int exten:044578999&quot;) in new stack                                                                                          <br>    -- Executing Set(&quot;SIP/5001-b792a1a8&quot;, &quot;outgoing_ident=044578999&quot;) in new stack                                                                                      <br>

    -- Executing NoOp(&quot;SIP/5001-b792a1a8&quot;, &quot;Ext ident:044578999&quot;) in new stack                                                                                          <br>    -- Executing Set(&quot;SIP/5001-b792a1a8&quot;, &quot;CALLERID(name)=044578999&quot;) in new stack                                                                                      <br>

    -- Executing AGI(&quot;SIP/5001-b792a1a8&quot;, &quot;agi://<a href="http://127.0.0.1:4577/call_log" target="_blank">127.0.0.1:4577/call_log</a>&quot;) in new stack                                                                                 <br>

    -- AGI Script agi://<a href="http://127.0.0.1:4577/call_log" target="_blank">127.0.0.1:4577/call_log</a> completed, returning 0                                                                                                  <br>
    -- Executing Set(&quot;SIP/5001-b792a1a8&quot;, &quot;CALLERID(num)=044578999&quot;) in new stack                                                                                       <br>
    -- Executing MixMonitor(&quot;SIP/5001-b792a1a8&quot;, &quot;/var/spool/asterisk/astrec/20110510-172343-044578999-90559566768-1305033823.129.gsm|av(0)V(0)&quot;) in new stack          <br>    -- Executing Dial(&quot;SIP/5001-b792a1a8&quot;, &quot;Zap/g0/0559566768||tTo&quot;) in new stack                                                                                       <br>

    -- Requested transfer capability: 0x00 - SPEECH                                                                                                                     <br>    -- Called g0/0559566768                                                                                                                                             <br>

  == Begin MixMonitor Recording SIP/5001-b792a1a8                                                                                                                       <br>    -- Zap/1-1 is proceeding passing it to SIP/5001-b792a1a8                                                                                                            <br>

    -- Zap/1-1 is making progress passing it to SIP/5001-b792a1a8                                                                                                       <br>    -- Hungup &#39;Zap/1-1&#39;                                                                                                                                                 <br>

  == Spawn extension (default, 90559566768, 8) exited non-zero on &#39;SIP/5001-b792a1a8&#39;                                                                                   <br>    -- Executing DeadAGI(&quot;SIP/5001-b792a1a8&quot;, &quot;agi://<a href="http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL----------" target="_blank">127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL----------</a>&quot;) in new stack                       <br>

    -- AGI Script agi://<a href="http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL----------" target="_blank">127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL----------</a> completed, returning 0                                            <br>

  == End MixMonitor Recording SIP/5001-b792a1a8          <br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>
<br>
<br>
&gt; here Problem when i dial (out bound) out of box from 5001 extensions the<br>
&gt; caller id showing pilot no. (4457900) .<br>
&gt; I need to display that DID&#39;s each extension.<br>
<br>
</div>The usual cause of the caller ID not being set to what you want, is that you<br>
tried to set it to some number that is not allocated to you, and your telco<br>
changed it to some default.  (Otherwise, you could fake your outgoing caller<br>
ID, which nobody wants.)<br>
<div><br></div></blockquote><div>      sir i complaint to telco for this they are said that is set on router. <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div>
<br>
&gt; exten =&gt; _90XXXXXXXXX,1,NoOp(${CALLERID(num)})<br>
&gt; exten =&gt; _90XXXXXXXXX,2,Set(outgoing_ident=0445789${CALLERID(num):-2})<br>
&gt; exten =&gt; _90XXXXXXXXX,3,NoOp(${outgoing_ident})<br>
&gt; exten =&gt; _90XXXXXXXXX,4,Set(CALLERID(name)=${outgoing_ident})<br>
&gt; exten =&gt; _90XXXXXXXXX,5,AGI(agi://<a href="http://127.0.0.1:4577/call_log" target="_blank">127.0.0.1:4577/call_log</a>)<br>
&gt; exten =&gt; _90XXXXXXXXX,6,Set(CALLERID(num)=${outgoing_ident})<br>
&gt; exten =&gt;<br>
</div><div>&gt; _90XXXXXXXXX,7,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERI<br>
</div><div>&gt;DNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0)) exten =&gt;<br>
&gt; _90XXXXXXXXX,8,Dial(${TRUNK}/${EXTEN:1},,tTo)<br>
&gt; exten =&gt; _90XXXXXXXXX,9,Hangup<br>
<br>
</div>Right, I&#39;m confused now.  This dialplan segment is expecting for you to dial<br>
90, followed by nine digits.  But the numbers as which you want to<br>
identify -- 4457901 to 4457999 -- are only seven digits long.<br>
<br></blockquote><div>    sir we are dialing out of world when we dial out of world 4457901 to 4457999 will show them. these are DID&#39;s which is telco provided to us.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


I&#39;m guessing there probably is an STD code consisting of 0 followed by two<br>
digits to indicate the town, and then a 7-digit local number within the town.<br>
In which case, I seem to have made a mistake at step 2, somehow letting an<br>
extraneous figure 8 get in.  Try:<br>
<br>
exten =&gt; _90XXXXXXXXX,2,Set(outgoing_ident=44579${CALLERID(num):-2})<br>
<br></blockquote>Executing NoOp(&quot;SIP/5001-b790fc10&quot;, &quot;Int exten:044578999&quot;) in new stack                                                                                          <br>    -- Executing Set(&quot;SIP/5001-b790fc10&quot;, &quot;outgoing_ident=44578999&quot;) in new stack                                                                                       <br>
    -- Executing NoOp(&quot;SIP/5001-b790fc10&quot;, &quot;Ext ident:44578999&quot;) in new stack                                                                                           <br>    -- Executing Set(&quot;SIP/5001-b790fc10&quot;, &quot;CALLERID(name)=44578999&quot;) in new stack                                                                                       <br>
    -- Executing AGI(&quot;SIP/5001-b790fc10&quot;, &quot;agi://<a href="http://127.0.0.1:4577/call_log">127.0.0.1:4577/call_log</a>&quot;) in new stack                                                                                 <br>
    -- AGI Script agi://<a href="http://127.0.0.1:4577/call_log">127.0.0.1:4577/call_log</a> completed, returning 0                                                                                                  <br>    -- Executing Set(&quot;SIP/5001-b790fc10&quot;, &quot;CALLERID(num)=44578999&quot;) in new stack                                                                                        <br>
    -- Executing MixMonitor(&quot;SIP/5001-b790fc10&quot;, &quot;/var/spool/asterisk/astrec/20110510-174142-44578999-90559566768-1305034902.131.gsm|av(0)V(0)&quot;) in new stack           <br>    -- Executing Dial(&quot;SIP/5001-b790fc10&quot;, &quot;Zap/g0/0559566768||tTo&quot;) in new stack                                                                                       <br>
    -- Requested transfer capability: 0x00 - SPEECH                                                                                                                     <br>    -- Called g0/0559566768                                                                                                                                             <br>
  == Begin MixMonitor Recording SIP/5001-b790fc10                                                                                                                       <br>    -- Zap/1-1 is proceeding passing it to SIP/5001-b790fc10                                                                                                            <br>
    -- Zap/1-1 is making progress passing it to SIP/5001-b790fc10                                                                                                       <br>    -- Hungup &#39;Zap/1-1&#39;                                                                                                                                                 <br>
  == Spawn extension (default, 90559566768, 8) exited non-zero on &#39;SIP/5001-b790fc10&#39;                                                                                   <br>    -- Executing DeadAGI(&quot;SIP/5001-b790fc10&quot;, &quot;agi://<a href="http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL----------">127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL----------</a>&quot;) in new stack                       <br>
    -- AGI Script agi://<a href="http://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL----------">127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0-----CANCEL----------</a> completed, returning 0                                            <br>
  == End MixMonitor Recording SIP/5001-b790fc10                          <br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
If that does not seem to work, try prefixing the &quot;44579&quot; with the STD code for<br>
your town, with and without the leading zero.  And don&#39;t forget to reload the<br>
dialplan between edits  :)<br>
<font color="#888888"><br>
<br>
--<br>
</font><div><div></div><div>AJS<br>
<br>
Answers come *after* questions.<br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</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" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><font face="Verdana, sans-serif"><font size="2"><font color="#000000">Best
Regards, <br><br>Mahesh Katta</font><br><font color="#ff9900"><b>BUZZ</b></font><font color="#000000"><b>WORKS</b></font><font color="#000000">
Business Services Private Limited<br></font><font color="#999999">BANGALORE
</font><font color="#000000">| </font><font color="#999999">CHENNAI </font><font color="#808080">|
</font><font color="#999999">HYDERABAD </font><font color="#000000">|
</font><font color="#ff9900">MUMBAI| </font><font color="#999999">DELHI<br></font><font color="#000000">201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri (E) Mumbai 400069</font><font color="#666666"><br>

</font><font color="#ff9900">GSM</font><font color="#000000">
+91.97029.70779 | </font><font color="#ff9900">Phone </font><font color="#000000">+91.22.4229.2634
| </font><font color="#ff9900">Fax </font><font color="#000000">+91.22.4229.2634<br></font><font color="#ff9900">Web</font><font color="#000000">
<a href="http://www.buzzworks.com/" target="_blank">http://www.buzzworks.com<br></a></font></font></font><br>