[asterisk-users] Callerid issue

Steve Totaro stotaro at asteriskhelpdesk.com
Fri Jun 10 05:30:53 CDT 2011


On Fri, Jun 10, 2011 at 5:35 AM, mahesh katta <maheshkatta at flexydial.com> wrote:
> Hi,
> I have 44578900 to 44578999 DID's. and I have extensions(100) for this
> DID's. but problem is
> callerid           Extensions
> 44578900      100
> 44578901      101
> 44578902      102
> 44578902      103
> 44578903      104
> 44578905      200
> 44578906      275
> 44578907      277
> 44578908      354
>
> I need to setup the callerid with this extensions . for example whenever I
> am dial from 354 extension callerID will show 44578908.
> fro this scenarion I need logical dialplan because I have 100 extenstions ,
> so 100 extentions should be have different extensions.
>
>
> Below dialplan is for sequence callerid and extesions. like 101 to 199
> should callerid is going 44578900 to 44578999 .
>
> exten => _0XXXXXXXXX,1,NoOp(Int exten:${CALLERID(num)})
> exten => _0XXXXXXXXX,2,Set(outgoing_ident=0445789${CALLERID(num):-2})
> exten => _0XXXXXXXXX,3,NoOp(Ext ident:${outgoing_ident})
> exten => _0XXXXXXXXX,4,Set(CALLERID(name)=${outgoing_ident})
> exten => _0XXXXXXXXX,5,AGI(agi://127.0.0.1:4577/call_log)
> exten => _0XXXXXXXXX,6,Set(CALLERID(num)=${outgoing_ident})
> exten =>
> _0XXXXXXXXX,7,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0))
> exten => _0XXXXXXXXX,8,Dial(${TRUNK}/${EXTEN},,tTo)
> exten => _0XXXXXXXXX,9,Hangup
> --
> Best Regards,
>
> Mahesh Katta
> BUZZWORKS 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
>

Are you using SIP phones?  I assume you are but just checking.

Look into sip.conf

For each phone, add "callerid="Joe Smith" <15555551212> " no quotes in sip.conf

Be sure the telco allows it, some times they will only allow the BTN.
I have run into troubles with toll free callerid.  Everything made
sense because the problem was calling other toll free numbers and who
pays.  Good point.  Especially because ANI can be manipulated in
Asterisk as well.

I never understood hy people who have block of DIDs in a row choose to
make life difficult by not incrementing extensions by one, send caller
ID by prepending the common numbers and only sending four digits.

I guess if you get huge there could be duplicates of the last four.

Just set it in sip.conf

Thanks,
Steve T
Thanks
Steve Totaro



More information about the asterisk-users mailing list