list+asterisk-users@lists.wsrcc.com
2004-Jun-29 11:28 UTC
[Asterisk-Users] incoming cid translation tables
How does one do translation for calls that come in from other pbx's where the incoming caller ID is an internal extension number on their pbx? Eg. when I get a call from Free-World-Dial the CID shows up as "429102" which is essentially their internal extension number sans any routing prefix. To dial the number back I need to dial the extension with FWD's routing prefix prepended or 1-393-942-9102. Is there some simple way to route all the incoming FWD calls to a context that prepends "393-9" to their 6-digit prefixes? (And for extra credit "393-99" to their 5-digit prefixes?) Unless I can fix up their CID, the dialback buttons on the phone (and in voicemail) are useless. -wolfgang -- Wolfgang S. Rupprecht http://www.wsrcc.com/wolfgang/ Send personal replies to this address. Mailman won't let me post unless I forge the From-line to be the same as my incoming alias for this list. <wolfgang+gnus20040629T111236@dailyplanet.dontspam.wsrcc.com>
Looks like you and I are doing the same thing. My plan is to implement an AGI script (PHP is my weapon of choice) which will "normalize" all incoming CID information, to prepend 1-393-9(9) to incoming FWD numbers, 1-700 to incoming IAXTel numbers, 01149 to incoming sipgate.de numbers, etc. My BV numbers also need the "1" prepended for redial -- Shouldn't be a big deal, I'll let you know once I have mine done. If anyone else has a solution already, I'd love to save myself the work.> -----Original Message----- > From: list+asterisk-users@lists.wsrcc.com > [mailto:list+asterisk-users@lists.wsrcc.com] > Sent: Tuesday, June 29, 2004 1:29 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] incoming cid translation tables > > How does one do translation for calls that come in from other > pbx's where the incoming caller ID is an internal extension > number on their pbx? Eg. when I get a call from > Free-World-Dial the CID shows up as "429102" which is > essentially their internal extension number sans any routing > prefix. To dial the number back I need to dial the extension > with FWD's routing prefix prepended or 1-393-942-9102. Is > there some simple way to route all the incoming FWD calls to > a context that prepends "393-9" to their 6-digit prefixes? > (And for extra credit "393-99" to their 5-digit prefixes?) > Unless I can fix up their CID, the dialback buttons on the > phone (and in voicemail) are useless. > > -wolfgang
wolfgang, Here's how I 'fix' my caller id for calls from FWD... [fwd] ; routing for calls from FWD exten => _X.,1,SetCidNum(*393${CALLERIDNUM}) exten => _X.,2,Macro(sipexten,1000,${KITCHEN},fwd) ... Best Regards /ed =====================================================================Edward T. Guy, III, Ph.D. CTO, Pulver.com Enterprises Melville, NY email:edguy@pulver.com sip:33489@fwd.pulver.com pstn:+1.631.961.8965> -----Original Message----- > From: asterisk-users-admin@lists.digium.com > [mailto:asterisk-users-admin@lists.digium.com]On Behalf Of > list+asterisk-users@lists.wsrcc.com > Sent: Tuesday, June 29, 2004 2:29 PM > To: asterisk-users@lists.digium.com > Subject: [Asterisk-Users] incoming cid translation tables > > > > How does one do translation for calls that come in from other pbx's > where the incoming caller ID is an internal extension number on their > pbx? Eg. when I get a call from Free-World-Dial the CID shows up as > "429102" which is essentially their internal extension number sans any > routing prefix. To dial the number back I need to dial the extension > with FWD's routing prefix prepended or 1-393-942-9102. Is there some > simple way to route all the incoming FWD calls to a context that > prepends "393-9" to their 6-digit prefixes? (And for extra credit > "393-99" to their 5-digit prefixes?) Unless I can fix up their CID, > the dialback buttons on the phone (and in voicemail) are useless. > > -wolfgang > -- > Wolfgang S. Rupprecht http://www.wsrcc.com/wolfgang/ > Send personal replies to this address. Mailman won't let me post > unless I forge the From-line to be the same as my incoming alias for > this list. <wolfgang+gnus20040629T111236@dailyplanet.dontspam.wsrcc.com> > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Hi,> -----Original Message----- > How does one do translation for calls that come in from other > pbx's where the incoming caller ID is an internal extension > number on their pbx? Eg. when I get a call from > Free-World-Dial the CID shows up as "429102" which is > essentially their internal extension number sans any routing > prefix. To dial the number back I need to dial the extension > with FWD's routing prefix prepended or 1-393-942-9102. Is > there some simple way to route all the incoming FWD calls to > a context that prepends "393-9" to their 6-digit prefixes? > (And for extra credit "393-99" to their 5-digit prefixes?) > Unless I can fix up their CID, the dialback buttons on the > phone (and in voicemail) are useless.There were a few suggestions on this, but I thought I'd put this one in. Each of my inbound 'lines' go to a specific context, which fixes up issues with the numbering (extension and callerid) and then routes to a main context for inbound traffic. Example: [fwd] ; Inbound traffic from FWD ; No callerid, nothing to fix exten=_X./,1,NoOp ; Fix callerid on 6-digit numbers exten=_X./_XXXXXX,1,SetCIDNum(3939${CALLERIDNUM},a) ; Fix callerid on 5-digit numbers exten=_X./_XXXXX,1,SetCIDNum(39399${CALLERIDNUM},a) ; Jump to the normalised inbound-traffic context exten = _X.,2,Goto(inbound-traffic,${EXTEN},1)