TUTORIAL Caller-ID provider diff. - Flowroute

Joined
Nov 14, 2008
Messages
1,401
Reaction score
319
Location
Warwick, NY
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)
 
  • Like
Reactions: rjaiswal

AndyInNYC

Active Member
Joined
May 23, 2013
Messages
656
Reaction score
87
Brian,

7 years later, I'm still referring back to this little tidbit each time I reinstall a flowroute-using system.
 

AndyInNYC

Active Member
Joined
May 23, 2013
Messages
656
Reaction score
87
Old thread, same problem.

I added the following to my extensions_custom.conf file

Code:
[from-flowroute-com]
exten => _X!,1,Set(CALLERID(num)=${CALLERID(num):2:12})
exten => _X!,n,Goto(from-trunk,${EXTEN},1)
My Trunks have:
context=from-flowroute-com

Now, the phone rings and shows two lines of CallerID info - the number (all without spaces) 8005551212 and on the second line 1-800-555-1213.

8005551212 is in my Asterisk Phonebook, but it no longer shows the name via the lookup.

If I comment out the new lines in extensions_custom.conf and change the context back to 'context=from-trunk' I just get +18005551212 on both lines of the display


Any idea what I borked?


Andrew
 

Members online

No members online now.

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,529
Messages
138,606
Members
14,650
Latest member
hemazoher