[asterisk-users] Callerid issue

mahesh katta maheshkatta at flexydial.com
Fri Jun 10 04:35:42 CDT 2011


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
*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/20110610/e1e2f93b/attachment.htm>


More information about the asterisk-users mailing list