[asterisk-users] Different callerid for different extensions
Hi, I have small confusion in my configuration which is I had some DID's like 044578900-04457999. I was configured dial plan below mention. exten = _0X,1,NoOp(Int exten:${CALLERID(num)}) exten = _0X,2,Set(outgoing_ident=0445789${CALLERID(num):-2}) exten = _0X,3,NoOp(Ext ident:${outgoing_ident}) exten = _0X,4,Set(CALLERID(name)=${outgoing_ident}) exten = _0X,5,AGI(agi://127.0.0.1:4577/call_log) exten = _0X,6,Set(CALLERID(num)=${outgoing_ident}) exten = _0X,7,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0)) exten = _0X,8,Dial(${TRUNK}/${EXTEN},,tTo) exten = _0X,9,Hangup this dial plan for outbound .But I have some extensions that is like 100-110,200-210,300-310, etc. with this dialplan when I dial from 100 extension callerid will show 044578900 right, and i have 200 extension also when i dial from this callerid will show 044578900 right. but i need to difine every extension should be show different callerid . and same as INbound also. Please anybody give me short dialplan for this . -- 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 -- _ -- 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
Re: [asterisk-users] Different callerid for different extensions
How do you want to map callerid with your extensions? Do you have any DB table for such a mapping? [SATISH] On Tue, Jun 7, 2011 at 2:29 PM, mahesh katta maheshka...@flexydial.comwrote: Hi, I have small confusion in my configuration which is I had some DID's like 044578900-04457999. I was configured dial plan below mention. exten = _0X,1,NoOp(Int exten:${CALLERID(num)}) exten = _0X,2,Set(outgoing_ident=0445789${CALLERID(num):-2}) exten = _0X,3,NoOp(Ext ident:${outgoing_ident}) exten = _0X,4,Set(CALLERID(name)=${outgoing_ident}) exten = _0X,5,AGI(agi://127.0.0.1:4577/call_log) exten = _0X,6,Set(CALLERID(num)=${outgoing_ident}) exten = _0X,7,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0)) exten = _0X,8,Dial(${TRUNK}/${EXTEN},,tTo) exten = _0X,9,Hangup this dial plan for outbound .But I have some extensions that is like 100-110,200-210,300-310, etc. with this dialplan when I dial from 100 extension callerid will show 044578900 right, and i have 200 extension also when i dial from this callerid will show 044578900 right. but i need to difine every extension should be show different callerid . and same as INbound also. Please anybody give me short dialplan for this . -- 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 -- _ -- 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 -- _ -- 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
Re: [asterisk-users] Different callerid for different extensions
Sir, I have MYsql database in myserver. On Tue, Jun 7, 2011 at 4:57 PM, Satish Barot satish4aster...@gmail.comwrote: How do you want to map callerid with your extensions? Do you have any DB table for such a mapping? [SATISH] On Tue, Jun 7, 2011 at 2:29 PM, mahesh katta maheshka...@flexydial.comwrote: Hi, I have small confusion in my configuration which is I had some DID's like 044578900-04457999. I was configured dial plan below mention. exten = _0X,1,NoOp(Int exten:${CALLERID(num)}) exten = _0X,2,Set(outgoing_ident=0445789${CALLERID(num):-2}) exten = _0X,3,NoOp(Ext ident:${outgoing_ident}) exten = _0X,4,Set(CALLERID(name)=${outgoing_ident}) exten = _0X,5,AGI(agi://127.0.0.1:4577/call_log) exten = _0X,6,Set(CALLERID(num)=${outgoing_ident}) exten = _0X,7,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0)) exten = _0X,8,Dial(${TRUNK}/${EXTEN},,tTo) exten = _0X,9,Hangup this dial plan for outbound .But I have some extensions that is like 100-110,200-210,300-310, etc. with this dialplan when I dial from 100 extension callerid will show 044578900 right, and i have 200 extension also when i dial from this callerid will show 044578900 right. but i need to difine every extension should be show different callerid . and same as INbound also. Please anybody give me short dialplan for this . -- 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 -- _ -- 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 -- _ -- 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 -- _ -- 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
Re: [asterisk-users] Different callerid for different extensions
I mean, what do you want to see in callerid when Extensions 100-110,200-210,300-310 dial/receive the calls? Like, 044578900 for 300, 044578901 for 101 and something like that. Using,exten = _0X,2,Set(outgoing_ident=0445789${CALLERID(num):-2}) and exten = _0X,6,Set(CALLERID(num)=${outgoing_ident}), will always set callerid to 044578900 for Extensions 100,200,300; 044578901 for 101,201,301 and so on . [SATISH] On Tue, Jun 7, 2011 at 5:11 PM, mahesh katta maheshka...@flexydial.comwrote: Sir, I have MYsql database in myserver. On Tue, Jun 7, 2011 at 4:57 PM, Satish Barot satish4aster...@gmail.comwrote: How do you want to map callerid with your extensions? Do you have any DB table for such a mapping? [SATISH] -- _ -- 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
Re: [asterisk-users] Different callerid for different extensions
On Tue, Jun 7, 2011 at 5:53 PM, Satish Barot satish4aster...@gmail.comwrote: I mean, what do you want to see in callerid when Extensions 100-110,200-210,300-310 dial/receive the calls? Like, 044578900 for 300, 044578901 for 101 and something like that. Using,exten = _0X,2,Set(outgoing_ident=0445789${CALLERID(num):-2}) and exten = _0X,6,Set(CALLERID(num)=${outgoing_ident}), will always set callerid to 044578900 for Extensions 100,200,300; 044578901 for 101,201,301 and so on . suppose I am dialing from 100 extension its show callerid 44578900 , its sequence , but from 200 extension is dialing same will comming so whenever i dialing from 200 callerid should be show different like 44578923 it should be define myself . please give me logical dialplan for this. [SATISH] On Tue, Jun 7, 2011 at 5:11 PM, mahesh katta maheshka...@flexydial.comwrote: Sir, I have MYsql database in myserver. On Tue, Jun 7, 2011 at 4:57 PM, Satish Barot satish4aster...@gmail.comwrote: How do you want to map callerid with your extensions? Do you have any DB table for such a mapping? [SATISH] -- _ -- 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 -- _ -- 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
Re: [asterisk-users] Different callerid for different extensions
On 6/7/11 1:59 AM, mahesh katta wrote: I have small confusion in my configuration which is I had some DID's like 044578900-04457999. I was configured dial plan below mention. you have 9 digits on the starting number 8 digits on the ending number. i'll assume it's a typo and the ending number is 04457 (total of 1100 DIDs) exten = _0X,1,NoOp(Int exten:${CALLERID(num)}) exten = _0X,2,Set(outgoing_ident=0445789${CALLERID(num):-2}) exten = _0X,3,NoOp(Ext ident:${outgoing_ident}) exten = _0X,4,Set(CALLERID(name)=${outgoing_ident}) exten = _0X,5,AGI(agi://127.0.0.1:4577/call_log http://127.0.0.1:4577/call_log) exten = _0X,6,Set(CALLERID(num)=${outgoing_ident}) exten = _0X,7,MixMonitor(/var/spool/asterisk/astrec/${TIMESTAMP}-${CALLERIDNUM}-${EXTEN}-${UNIQUEID}.gsm|av(0)V(0)) exten = _0X,8,Dial(${TRUNK}/${EXTEN},,tTo) exten = _0X,9,Hangup this dial plan for outbound .But I have some extensions that is like 100-110,200-210,300-310, etc. with this dialplan when I dial from 100 extension callerid will show 044578900 right, and i have 200 extension also when i dial from this callerid will show 044578900 right. but i need to difine every extension should be show different callerid . and same as INbound also. Please anybody give me short dialplan for this . change prio 2 line to the following: exten = _0X,2,Set(outgoing_ident=04457${MATH(8900+${MATH(${CALLERID(num)}-100)})}) i just did this out of my head, i haven't test it. but this should map all 100-399 extensions to DID 044578900-0444579199 -- Edwin Lam edwin@officegeneral.com Systems Engineer, OfficeWyze, Inc. Ph: +1 415 439 4988 Fax: +1 415 283 3370 http://pgpkeys.mit.edu:11371/pks/lookup?op=getsearch=0xD6506D20 -- _ -- 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