Sir,<br><br><br><div class="gmail_quote">On Tue, May 10, 2011 at 6:15 PM, A J Stiles <span dir="ltr"><<a href="mailto:asterisk_list@earthshod.co.uk" target="_blank">asterisk_list@earthshod.co.uk</a>></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>> On Tue, May 10, 2011 at 4:49 PM, A J Stiles<br>
><br>
> <<a href="mailto:asterisk_list@earthshod.co.uk" target="_blank">asterisk_list@earthshod.co.uk</a>>wrote:<br>
</div><div>> > "Not working" can mean a lot of things.<br>
> ><br>
> > So, let's start at the beginning. Have you ever actually managed to get<br>
> > an outgoing call to work *at all* -- i.e., successfully placed a call<br>
> > onto a trunk, made an external phone ring and been able to speak to the<br>
> > other party,<br>
> > even if the caller ID that shew up was incorrect ?<br>
> ><br>
> > Assuming so, please show the dialplan section that worked for that.<br>
> ><br>
> ><br>
> > Otherwise, you need to go back to first principles and work out exactly<br>
> > what<br>
> > you are doing wrong. We need to start from a point where you are able to<br>
> > place external calls *before* we can discuss how to set the desired<br>
> > caller ID<br>
> > to appear on the receiving end.<br>
> ><br>
> > Obligatory car analogy: There's no point arguing over whether motorways<br>
> > are<br>
> > quicker than A-roads, if you can't even get the engine to start.<br>
> ><br>
> ><br>
> > Next, please describe how to determine, based on the internal extension,<br>
> > what<br>
> > caller ID number should be presented to the outside world.<br>
> ><br>
</div><div>> A.j Sir,<br>
><br>
> I am using vicidial server asterisk box. it has asterisk 1.27v ,<br>
><br>
> In sip configuration is extensiosn like below<br>
><br>
> [5001]<br>
> username=5001<br>
> secret=1234<br>
> mailbox=5001<br>
> type=friend^M<br>
> host=dynamic^M<br>
> canreinvite=no^M<br>
> qualify=yes^M<br>
> nat=yes^M<br>
> context=default<br>
><br>
> 5001 to 5099<br>
><br>
> and PRI pilot no. is 4457900 in dubai , telcom give a DID's 4457900 to<br>
> 4457999,<br>
><br>
> when i am dialing from pstn on DID's(inbound) that will connecting (i was<br>
> configured with sip means when i dial the 4457901 from outside i will get a<br>
> 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 => _90XXXXXXXXX,1,NoOp(Int exten:${CALLERID(num)})<br>
exten => _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 "Ext ident" 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("SIP/5001-b792a1a8", "Int exten:044578999") in new stack <br> -- Executing Set("SIP/5001-b792a1a8", "outgoing_ident=044578999") in new stack <br>
-- Executing NoOp("SIP/5001-b792a1a8", "Ext ident:044578999") in new stack <br> -- Executing Set("SIP/5001-b792a1a8", "CALLERID(name)=044578999") in new stack <br>
-- Executing AGI("SIP/5001-b792a1a8", "agi://<a href="http://127.0.0.1:4577/call_log" target="_blank">127.0.0.1:4577/call_log</a>") 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("SIP/5001-b792a1a8", "CALLERID(num)=044578999") in new stack <br>
-- Executing MixMonitor("SIP/5001-b792a1a8", "/var/spool/asterisk/astrec/20110510-172343-044578999-90559566768-1305033823.129.gsm|av(0)V(0)") in new stack <br> -- Executing Dial("SIP/5001-b792a1a8", "Zap/g0/0559566768||tTo") 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 'Zap/1-1' <br>
== Spawn extension (default, 90559566768, 8) exited non-zero on 'SIP/5001-b792a1a8' <br> -- Executing DeadAGI("SIP/5001-b792a1a8", "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>") 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>
> here Problem when i dial (out bound) out of box from 5001 extensions the<br>
> caller id showing pilot no. (4457900) .<br>
> I need to display that DID'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>
> exten => _90XXXXXXXXX,1,NoOp(${CALLERID(num)})<br>
> exten => _90XXXXXXXXX,2,Set(outgoing_ident=0445789${CALLERID(num):-2})<br>
> exten => _90XXXXXXXXX,3,NoOp(${outgoing_ident})<br>
> exten => _90XXXXXXXXX,4,Set(CALLERID(name)=${outgoing_ident})<br>
> exten => _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>
> exten => _90XXXXXXXXX,6,Set(CALLERID(num)=${outgoing_ident})<br>
> exten =><br>
</div><div>> _90XXXXXXXXX,7,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERI<br>
</div><div>>DNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0)) exten =><br>
> _90XXXXXXXXX,8,Dial(${TRUNK}/${EXTEN:1},,tTo)<br>
> exten => _90XXXXXXXXX,9,Hangup<br>
<br>
</div>Right, I'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'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'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 => _90XXXXXXXXX,2,Set(outgoing_ident=44579${CALLERID(num):-2})<br>
<br></blockquote>Executing NoOp("SIP/5001-b790fc10", "Int exten:044578999") in new stack <br> -- Executing Set("SIP/5001-b790fc10", "outgoing_ident=44578999") in new stack <br>
-- Executing NoOp("SIP/5001-b790fc10", "Ext ident:44578999") in new stack <br> -- Executing Set("SIP/5001-b790fc10", "CALLERID(name)=44578999") in new stack <br>
-- Executing AGI("SIP/5001-b790fc10", "agi://<a href="http://127.0.0.1:4577/call_log">127.0.0.1:4577/call_log</a>") 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("SIP/5001-b790fc10", "CALLERID(num)=44578999") in new stack <br>
-- Executing MixMonitor("SIP/5001-b790fc10", "/var/spool/asterisk/astrec/20110510-174142-44578999-90559566768-1305034902.131.gsm|av(0)V(0)") in new stack <br> -- Executing Dial("SIP/5001-b790fc10", "Zap/g0/0559566768||tTo") 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 'Zap/1-1' <br>
== Spawn extension (default, 90559566768, 8) exited non-zero on 'SIP/5001-b790fc10' <br> -- Executing DeadAGI("SIP/5001-b790fc10", "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>") 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 "44579" with the STD code for<br>
your town, with and without the leading zero. And don'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>