[Asterisk-Users] incoming cid translation tables
Florian Overkamp
florian at obsimref.com
Tue Jun 29 23:56:22 MST 2004
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)
More information about the asterisk-users
mailing list