pcapps Posted September 7, 2007 Report Posted September 7, 2007 We are a PBXnSIP customer using CallCentric for SIP. They have quick dial codes *7501 to *7599 and we want to use them by simply dialing 75xx into our phones through PBXnSIP. Seems like a simple dial plan right? It works if we hardcode 7501 --> *7501 (But we would have to do this 99 times). Using Regular expressions doesn?t work because of a bug in your regular expression translator. The following RegEx should match (which PBXnSIP does do properly): 75{[0-9][0-9]} And either of the following replacement strings should result in the correct replacement, but they don?t: *75\1 Or *$_ A regular expression calculator will show that the replacement strings should work. Anyone have a solution, or bug fix? Quote
Vodia PBX Posted September 7, 2007 Report Posted September 7, 2007 Try the patterns 75xx or 75([0-9]{2})@.* In the replacement, try: sip:*75\1@\r;user=phone or sip:\*75\1@\r;user=phone (not sure if the escape symbol is needed) Quote
pcapps Posted September 11, 2007 Author Report Posted September 11, 2007 Only one combination worked, "75([0-9]{2})@.*" as a pattern, and "sip:*75\1@\r;user=phone" as the replacement. 75xx didn't work, which surprises me. Try the patterns 75xx or 75([0-9]{2})@.* In the replacement, try: sip:*75\1@\r;user=phone or sip:\*75\1@\r;user=phone (not sure if the escape symbol is needed) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.