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 4457999, <br><br>when i am dialing from pstn on DID's(inbound) that will connecting (i was configured with sip means when i dial the 4457901 from outside i will get a call on 5001 extension)<br>
<br>here Problem when i dial (out bound) out of box from 5001 extensions the caller id showing pilot no. (4457900) . <br>I need to display that DID's each extension.<br><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">127.0.0.1:4577/call_log</a>)<br>
exten => _90XXXXXXXXX,6,Set(CALLERID(num)=${outgoing_ident})<br>exten => _90XXXXXXXXX,7,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0))<br>exten => _90XXXXXXXXX,8,Dial(${TRUNK}/${EXTEN:1},,tTo)<br>
exten => _90XXXXXXXXX,9,Hangup<br><br><br><br><br><div class="gmail_quote">On Tue, May 10, 2011 at 4:49 PM, A J Stiles <span dir="ltr"><<a href="mailto:asterisk_list@earthshod.co.uk">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;">(Message re-ordered and excessive quoting trimmed.)<br>
<div class="im"><br>
On Tuesday 10 May 2011, mahesh katta wrote:<br>
> On Tue, May 10, 2011 at 2:00 PM, A J Stiles<br>
> <<a href="mailto:asterisk_list@earthshod.co.uk">asterisk_list@earthshod.co.uk</a>>wrote:<br>
</div><div class="im">> > I think it needs to be more like this. Here, I'm taking an educated<br>
> > guess that you want your caller ID to appear on outgoing calls as 445789<br>
> > followed by the last 2 digits of the extension number. If this is not<br>
> > right, you will<br>
> > have to change it -- or explain exactly how to derive the caller ID you<br>
> > want<br>
> > to appear on external phones, from the originating internal extension,<br>
> > like I<br>
> > originally asked.<br>
> ><br>
> > exten => _90XXXXXXXXX,1,NoOp(${CALLERID(num)})<br>
> > exten => _90XXXXXXXXX,2,Set(outgoing_ident=445789${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>
> ><br>
</div>> > _90XXXXXXXXX,7,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLE<br>
<div class="im">> >RIDNUM}-${EXTEN}-${UNIQUEID}.gsm| av(0)V(0))<br>
> > exten =>_90XXXXXXXXX,8,Dial(${TRUNK}/${EXTEN:1},,tTo)<br>
> > exten => _90XXXXXXXXX,9,Hangup<br>
> ><br>
</div><div class="im">> > Modify stage 2 if necessary to suit exactly how you want your outgoing<br>
> > ident<br>
> > to appear. You can take out the NoOp() statements and renumber<br>
> > appropriately<br>
> > once it's working as you want it.<br>
> ><br>
> > Note that if the console seems to show you created the right ident but it<br>
> > doesn't appear on phones when you dial out, then either the format is<br>
> > wrong or your telco doesn't think you are authorised to use that ident;<br>
> > this is a matter you will need to take up with your phone company.<br>
><br>
</div><div class="im">> Sir,<br>
> A.J.Stiles<br>
><br>
> This dialplan is not working . when I called to out of box .<br>
<br>
</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 an<br>
outgoing call to work *at all* -- i.e., successfully placed a call onto a<br>
trunk, made an external phone ring and been able to speak to the 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 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 caller ID<br>
to appear on the receiving end.<br>
<br>
Obligatory car analogy: There's no point arguing over whether motorways 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, what<br>
caller ID number should be presented to the outside world.<br>
<font color="#888888"><br>
<br>
--<br>
</font><div><div></div><div class="h5">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>