madyan Posted April 14, 2016 Report Share Posted April 14, 2016 Hi, I am using Vodia 5.2.5. I've client in Israel. In Israel there are some companies provide star numbers. like, *5678 *3555 *2427 If anyone dial this star number it goes to a particular/defined number. Can you please tell me how can we add these star numbers in Vodia Dial Plan? What needs to be added in Pattern and what should be in Replacement. Thanks Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted April 14, 2016 Report Share Posted April 14, 2016 You can use a backslash in the replacement, however then you cannot use the simple form. For example, sip:\*\1@\r;user=phone Quote Link to comment Share on other sites More sharing options...
madyan Posted April 14, 2016 Author Report Share Posted April 14, 2016 If I want to dial this star number *5678 How it would be added in Pattern and replacement. Can you please explain a little more. Thanks Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted April 14, 2016 Report Share Posted April 14, 2016 There is actually a section about this in http://vodia.com/doc/domain_dialplans did you see/try that? ("Sending Star Codes on a Trunk") Quote Link to comment Share on other sites More sharing options...
madyan Posted April 14, 2016 Author Report Share Posted April 14, 2016 I already checked this section. The thing is there are hundreds start numbers. How can we define a particular route for all of them. Suppose there are 200 star numbers having 4 digits. like "*9865, *9874, *9874 etc". How can I define a route in Pattern and Replacement? Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted April 15, 2016 Report Share Posted April 15, 2016 If you want to match * then you cannot use the "simple" pattern. But you can use something like ^(\*[0-9]{4})@.* might be hard to read like assembler code, but it should match those 4 digits and you can use them in the replacement (there you can use the simple pattern, e.g. just *) Quote Link to comment Share on other sites More sharing options...
madyan Posted April 18, 2016 Author Report Share Posted April 18, 2016 Its working perfect! Thanks for your help. Quote Link to comment Share on other sites More sharing options...
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.