briankelly63
Guru
- Joined
- Nov 14, 2008
- Messages
- 1,398
- Reaction score
- 320
I'm familiar with the issues involved with the caller-id that is passed from various providers and the need to strip off or add leading digits.
I've changed providers a few times recently, the latest being to Flowroute. Changes in callers-id format will cause issues with existing blacklist or Asterisk phone book entries that you have or with return calls from your phones. Unless you want to change them all here is a quick fix.
In case you need it the lines below can be placed in your extensions_custom.conf file and adjusted for your particular needs. These lines reset the caller-id variable to include digits 2 through 11 deleting the leading plus sign and 1 from Flowroutes caller-id. It does this before the normal Trunk processing vs. the post Trunk level that the Set Caller ID Freepbx, third party module implements.
In your Trunk change Peer details section context to from-flowroute-com or whatever you want the name to be as long as it agrees with your new context. After the change the call processing will continue to the from-trunk context.
Hope this helps you out...
[from-flowroute-com]
exten => _X!,1,Set(CALLERID(num)=${CALLERID(num):2:12})
exten => _X!,n,Goto(from-trunk,${EXTEN},1)
I've changed providers a few times recently, the latest being to Flowroute. Changes in callers-id format will cause issues with existing blacklist or Asterisk phone book entries that you have or with return calls from your phones. Unless you want to change them all here is a quick fix.
In case you need it the lines below can be placed in your extensions_custom.conf file and adjusted for your particular needs. These lines reset the caller-id variable to include digits 2 through 11 deleting the leading plus sign and 1 from Flowroutes caller-id. It does this before the normal Trunk processing vs. the post Trunk level that the Set Caller ID Freepbx, third party module implements.
In your Trunk change Peer details section context to from-flowroute-com or whatever you want the name to be as long as it agrees with your new context. After the change the call processing will continue to the from-trunk context.
Hope this helps you out...
[from-flowroute-com]
exten => _X!,1,Set(CALLERID(num)=${CALLERID(num):2:12})
exten => _X!,n,Goto(from-trunk,${EXTEN},1)