[asterisk-users] OUTBOUND CALLER ID

mahesh katta maheshkatta at flexydial.com
Tue May 10 06:58:18 CDT 2011


A.j Sir,

I am using vicidial server asterisk box. it has asterisk 1.27v ,

In sip configuration is extensiosn like below

[5001]
username=5001
secret=1234
mailbox=5001
type=friend^M
host=dynamic^M
canreinvite=no^M
qualify=yes^M
nat=yes^M
context=default

5001 to 5099

and PRI pilot no. is 4457900 in dubai , telcom give a DID's 4457900 to
4457999,

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)

here Problem when i dial (out bound) out of box from 5001 extensions the
caller id showing pilot no. (4457900) .
I need to display that DID's each extension.

exten => _90XXXXXXXXX,1,NoOp(${CALLERID(num)})
exten => _90XXXXXXXXX,2,Set(outgoing_ident=0445789${CALLERID(num):-2})
exten => _90XXXXXXXXX,3,NoOp(${outgoing_ident})
exten => _90XXXXXXXXX,4,Set(CALLERID(name)=${outgoing_ident})
exten => _90XXXXXXXXX,5,AGI(agi://127.0.0.1:4577/call_log)
exten => _90XXXXXXXXX,6,Set(CALLERID(num)=${outgoing_ident})
exten =>
_90XXXXXXXXX,7,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0))
exten => _90XXXXXXXXX,8,Dial(${TRUNK}/${EXTEN:1},,tTo)
exten => _90XXXXXXXXX,9,Hangup




On Tue, May 10, 2011 at 4:49 PM, A J Stiles
<asterisk_list at earthshod.co.uk>wrote:

> (Message re-ordered and excessive quoting trimmed.)
>
> On Tuesday 10 May 2011, mahesh katta wrote:
> > On Tue, May 10, 2011 at 2:00 PM, A J Stiles
> > <asterisk_list at earthshod.co.uk>wrote:
> > > I think it needs to be more like this.  Here, I'm taking an educated
> > > guess that you want your caller ID to appear on outgoing calls as
> 445789
> > > followed by the last 2 digits of the extension number.  If this is not
> > > right, you will
> > > have to change it -- or explain exactly how to derive the caller ID you
> > > want
> > > to appear on external phones, from the originating internal extension,
> > > like I
> > > originally asked.
> > >
> > > exten => _90XXXXXXXXX,1,NoOp(${CALLERID(num)})
> > > exten => _90XXXXXXXXX,2,Set(outgoing_ident=445789${CALLERID(num):-2})
> > > exten => _90XXXXXXXXX,3,NoOp(${outgoing_ident})
> > > exten => _90XXXXXXXXX,4,Set(CALLERID(name)=${outgoing_ident})
> > > exten => _90XXXXXXXXX,5,AGI(agi://127.0.0.1:4577/call_log)
> > > exten => _90XXXXXXXXX,6,Set(CALLERID(num)=${outgoing_ident})
> > > exten =>
> > >
> > >
> _90XXXXXXXXX,7,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLE
> > >RIDNUM}-${EXTEN}-${UNIQUEID}.gsm| av(0)V(0))
> > > exten =>_90XXXXXXXXX,8,Dial(${TRUNK}/${EXTEN:1},,tTo)
> > > exten => _90XXXXXXXXX,9,Hangup
> > >
> > > Modify stage 2 if necessary to suit exactly how you want your outgoing
> > > ident
> > > to appear.  You can take out the NoOp() statements and renumber
> > > appropriately
> > > once it's working as you want it.
> > >
> > > Note that if the console seems to show you created the right ident but
> it
> > > doesn't appear on phones when you dial out, then either the format is
> > > wrong or your telco doesn't think you are authorised to use that ident;
> > > this is a matter you will need to take up with your phone company.
> >
> > Sir,
> > A.J.Stiles
> >
> > This dialplan is not working . when I called to out of box .
>
> "Not working" can mean a lot of things.
>
> So, let's start at the beginning.  Have you ever actually managed to get an
> outgoing call to work *at all* -- i.e., successfully placed a call onto a
> trunk, made an external phone ring and been able to speak to the other
> party,
> even if the caller ID that shew up was incorrect ?
>
> Assuming so, please show the dialplan section that worked for that.
>
>
> Otherwise, you need to go back to first principles and work out exactly
> what
> you are doing wrong.  We need to start from a point where you are able to
> place external calls *before* we can discuss how to set the desired caller
> ID
> to appear on the receiving end.
>
> Obligatory car analogy:  There's no point arguing over whether motorways
> are
> quicker than A-roads, if you can't even get the engine to start.
>
>
> Next, please describe how to determine, based on the internal extension,
> what
> caller ID number should be presented to the outside world.
>
>
> --
> AJS
>
> Answers come *after* questions.
>
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>               http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-users
>



-- 
Best Regards,

Mahesh Katta
*BUZZ**WORKS* Business Services Private Limited
BANGALORE | CHENNAI | HYDERABAD | MUMBAI| DELHI
201, Crystal Tower, 75 Gundavali Cross Lane, Andheri Kurla Road, Andheri (E)
Mumbai 400069
GSM +91.97029.70779 | Phone +91.22.4229.2634 | Fax +91.22.4229.2634
Web http://www.buzzworks.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110510/a2da1db9/attachment.htm>


More information about the asterisk-users mailing list