[asterisk-users] Callerid issue
Warren Selby
wcselby at selbytech.com
Fri Jun 10 12:52:15 CDT 2011
What I do is add a setvar=extclid=xxx to each entry in sip.conf, matching the appropriate external callerid with its respective internal extension. Then, in my outbound context, just before dial, I set CALLERID(num)=${extclid}.
I'm on my phone, otherwise I'd give example dialplan and sip.conf snippets.
Thanks,
--Warren Selby, dCAP
On Jun 10, 2011, at 4: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
>
> --
> _____________________________________________________________________
> -- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110610/cba913a1/attachment.htm>
More information about the asterisk-users
mailing list