Also, there is an option in devices under your phones that might be helpful.
Impossible match handling is defaulted to allow "user to dispatch"  When
there is a mismatch in the dialing plan, you can hit send to send it out.
If you change that to give reorder tone, and disable some of the gateways,
it might help you error out where your problem is.  

I don't know your exact issue or situation, but it might be worth a try.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Josh Patten
Sent: Monday, November 02, 2009 2:34 PM
To: [email protected]; Picher, Michael
Subject: Re: [sipx-users] location based dial plans

If it's a fake gateway (IE doesn't exist, not pingable) then it will 
continue down the list until it finds a gateway that will accept the call.

[email protected] wrote:
> Subject:
> [sipx-users] location based dial plans
> From:
> "Picher, Michael" <[email protected]>
> Date:
> Mon, 2 Nov 2009 17:20:17 -0500
> To:
> "sipx-users" <[email protected]>
>
> To:
> "sipx-users" <[email protected]>
>
>
> Not sure if anybody else has tried location based dial plans yet or not.
>
> I have a system where for one group dialing local 7 digit #'s we need 
> to pre-pend 513 and for another group of users we need to pre-pend 859.
>
> These calls need to go out of the same gateway.
>
> So I created a couple of fake gateways with the same IP address. 
> Secured each gateway with their respective location group and made the 
> dial plan on the gateway pre-pend the proper area code.
>
> I left a third gateway in there in case I had somebody not in either 
> group dial out.
>
> When a user dials a 7 digit # and is in one of the groups it skips 
> both of the two gateways and just goes to the last gateway.
>
> Any ideas?
>
> Here's the xml.
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <mappings 
> xmlns="http://www.sipfoundry.org/sipX/schema/xml/fallback-00-00";>
>
> <hostMatch>
>
> <hostPattern>xyzteam.internal</hostPattern>
>
> <hostPattern>xyzsipx01.cmiteam.internal</hostPattern>
>
> <hostPattern>xyzsipx01</hostPattern>
>
> <hostPattern>172.16.10.18</hostPattern>
>
> <userMatch>
>
> <!--Emergency-->
>
> <description>Emergency dialing plan</description>
>
> <userPattern>sos</userPattern>
>
> <userPattern>911</userPattern>
>
> <userPattern>9911</userPattern>
>
> <callerLocationMatch>
>
> <callerLocation>Ohio</callerLocation>
>
> <transform>
>
> <user>513911</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.933</fieldparams>
>
> </transform>
>
> <transform>
>
> <user>513911</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.867</fieldparams>
>
> </transform>
>
> </callerLocationMatch>
>
> <callerLocationMatch>
>
> <callerLocation>Florence</callerLocation>
>
> <transform>
>
> <user>859911</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.933</fieldparams>
>
> </transform>
>
> <transform>
>
> <user>513911</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.867</fieldparams>
>
> </transform>
>
> </callerLocationMatch>
>
> <transform>
>
> <user>513911</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.9</fieldparams>
>
> </transform>
>
> </userMatch>
>
> <userMatch>
>
> <!--Local-->
>
> <description>Local dialing</description>
>
> <userPattern>9xxxxxxx</userPattern>
>
> <userPattern>xxxxxxx</userPattern>
>
> <callerLocationMatch>
>
> <callerLocation>Ohio</callerLocation>
>
> <transform>
>
> <user>513{vdigits}</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.933</fieldparams>
>
> </transform>
>
> <transform>
>
> <user>513{vdigits}</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.867</fieldparams>
>
> </transform>
>
> </callerLocationMatch>
>
> <callerLocationMatch>
>
> <callerLocation>Florence</callerLocation>
>
> <transform>
>
> <user>859{vdigits}</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.933</fieldparams>
>
> </transform>
>
> <transform>
>
> <user>513{vdigits}</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.867</fieldparams>
>
> </transform>
>
> </callerLocationMatch>
>
> <transform>
>
> <user>513{vdigits}</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.9</fieldparams>
>
> </transform>
>
> </userMatch>
>
> <userMatch>
>
> <!--Long Distance-->
>
> <description>Long distance dialing plan</description>
>
> <userPattern>91xxxxxxxxxx</userPattern>
>
> <userPattern>1xxxxxxxxxx</userPattern>
>
> <userPattern>9xxxxxxxxxx</userPattern>
>
> <userPattern>xxxxxxxxxx</userPattern>
>
> <transform>
>
> <user>5131{vdigits}</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.9</fieldparams>
>
> </transform>
>
> </userMatch>
>
> <userMatch>
>
> <!--Toll free-->
>
> <description>Toll free dialing</description>
>
> <userPattern>91800xxxxxxx</userPattern>
>
> <userPattern>1800xxxxxxx</userPattern>
>
> <transform>
>
> <user>5131800{vdigits}</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.9</fieldparams>
>
> </transform>
>
> </userMatch>
>
> <userMatch>
>
> <!--Toll free-->
>
> <description>Toll free dialing</description>
>
> <userPattern>91866xxxxxxx</userPattern>
>
> <userPattern>1866xxxxxxx</userPattern>
>
> <transform>
>
> <user>5131866{vdigits}</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.9</fieldparams>
>
> </transform>
>
> </userMatch>
>
> <userMatch>
>
> <!--Toll free-->
>
> <description>Toll free dialing</description>
>
> <userPattern>91877xxxxxxx</userPattern>
>
> <userPattern>1877xxxxxxx</userPattern>
>
> <transform>
>
> <user>5131877{vdigits}</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.9</fieldparams>
>
> </transform>
>
> </userMatch>
>
> <userMatch>
>
> <!--Toll free-->
>
> <description>Toll free dialing</description>
>
> <userPattern>91888xxxxxxx</userPattern>
>
> <userPattern>1888xxxxxxx</userPattern>
>
> <transform>
>
> <user>5131888{vdigits}</user>
>
> <host>172.16.10.66</host>
>
> <headerparams>expires=60</headerparams>
>
> <fieldparams>q=0.9</fieldparams>
>
> </transform>
>
> </userMatch>
>
> </hostMatch>
>
> </mappings>
>
_______________________________________________
sipx-users mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-users
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users
sipXecs IP PBX -- http://www.sipfoundry.org/

_______________________________________________
sipx-users mailing list [email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-users
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users
sipXecs IP PBX -- http://www.sipfoundry.org/

Reply via email to