kangoo Posted July 14, 2011 Report Posted July 14, 2011 Hello, my dial plan allows outbound calls if my useres dial a 0 in front of each number. Now the problem is, that all incoming calls do not have the 0 in front of it and the users can not make a direct call back. How can i set a 0 in front of each incomin call? In the "send call to extension" field i have this !([0-9]{2}$)!\1!t!500! And please no discussion about the 0 in front of. We need this. Thanks and kind regards Kangoo Quote
pbx support Posted July 14, 2011 Report Posted July 14, 2011 Looking at the pattern you have, you are routing the incoming calls to accounts/extensions based on the last 2 digits of the "To" field of the incoming INVITE. You can replace the "\1" with "0\1" to achieve what you want from the pattern point of view. But if you do that your incoming calls won't complete as PBX will be looking for account 040 instead of 40 (for example). So you need to handle this in the dial plan replacement. Quote
kangoo Posted July 14, 2011 Author Report Posted July 14, 2011 Ok. But what I have to do? If user make a call they have to use the 0. My simple dial plan looks like this: 100 trunk 0* 100 trunk 00* 100 trunk 000* 100 call extension [1-9] kind regards Kangoo Quote
pbx support Posted July 15, 2011 Report Posted July 15, 2011 You can have another entry at the end 200 trunk * 0* With this entry, if none of the first 4 patterns matches, then PBX will prefix 0 to whatever the user dials and send it out on the trunk. BTW, I would not keep the 'pref' as 100 for all the entries there. Based on the priority I would change them to 101, 102, 103, 104 & 200 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.