[asterisk-users] OUTBOUND CALLER ID

A J Stiles asterisk_list at earthshod.co.uk
Tue May 10 06:19:46 CDT 2011


(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.



More information about the asterisk-users mailing list