Alex Sergeev Posted February 21, 2011 Report Share Posted February 21, 2011 Good day! Tell me please, how to configure the dial plan so that I could dial a literal expression? For example, from phone dial name@skype.sipnet.ru and call goes to a specific trunk. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted February 21, 2011 Report Share Posted February 21, 2011 The typical dialplan usually contains digits, but it can also contain alphanumeric characters, see http://wiki.snomone.com/index.php?title=Dial_Plan_Samples. For example a pattern could be "name@skype.sipnet.ru". Quote Link to comment Share on other sites More sharing options...
Alex Sergeev Posted February 21, 2011 Author Report Share Posted February 21, 2011 Can I use regular expressions to simplify the Dial plan set? Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted February 21, 2011 Report Share Posted February 21, 2011 Of course. Quote Link to comment Share on other sites More sharing options...
Alex Sergeev Posted February 21, 2011 Author Report Share Posted February 21, 2011 Can you set an example for Pattern and Replacement. If I enter any string {name}, then the output is {name}@skype.sipnet.ru. I thought that the Pattern has to be - ([a-b]*), and the Replacement - sip:\1@skype.sipnet.ru. But it does not work. Quote Link to comment Share on other sites More sharing options...
Vodia PBX Posted February 21, 2011 Report Share Posted February 21, 2011 Can you set an example for Pattern and Replacement. If I enter any string {name}, then the output is {name}@skype.sipnet.ru. You can use for example ([a-z]*)@.* as the pattern (note the inclusion of the domain name), sip:\1@skype.sipnet.ru as the replacement. 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.