Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] mod lcr cid conditional replace.


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
vbvbrj at gmail.com
Guest





PostPosted: Wed Mar 03, 2021 10:43 am    Post subject: [Freeswitch-users] mod lcr cid conditional replace. Reply with quote

Hi.

I use mod_lcr for dialout operators. On the freeswitch pbx we have extensions 500 to 899. When calling outside number the internal extension is
converted ok to for external cid to be accepted by each operator using lcr_cid regular pattern:
/(\d\d\d)/${operator_prefix}$1/

The problem lies with one operator where our extensions which start with 5 (500 to 599) must be converted to numbers which start with 9 (900 to 999)
and then prefixed with operator's prefix. The rest of extensions does not have such a substitution of first number.

How can I do this using regular expression in lcr_cid?

Thank you.

_________________________________________________________________________

The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.
Build your next product on our scalable cloud platform.

Join our online community to chat in real time https://signalwire.community

Professional FreeSWITCH Services
sales@freeswitch.com
https://freeswitch.com

Official FreeSWITCH Sites
https://freeswitch.com/oss
https://freeswitch.org/confluence
https://cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
https://freeswitch.com
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services