I attached the XML file (with some IP and name modifications to protect the innocent :-P ) and now that I'm looking at it, the emergency section doesn't have any <callerLocationMatch> tags in it. Is sipXconfig supposed to write those out for the emergency rule?
On Thu, Aug 27, 2009 at 3:21 PM, Robert Joly<rj...@nortel.com> wrote: >> Situation: 2 gateways set up for two different locations. One >> user group is set to send calls (local and emergency) out of >> one gateway, the other group out the other gateway. sipX will >> obey the source call routing rules on the local dial plan >> rule and send the call out the appropriate gateway, but will >> ignore the source call routing settings in the emergency dial >> plan rule. sipX defaults, no matter what (even if the gateway >> is not shared) to the first available gateway in the list and >> sends the emergency call out the first available gateway. The >> expected action is that the emergency dial plan rule should >> follow source call routing rules as all the other dial plan >> rules do. Has anyone else had this issue? > > That sounds less than ideal. I would very much like to look at your > /etc/sipxpbx/fallbackrules.xml if you could send it to me. > > Thanks, > bob >
<?xml version="1.0" encoding="UTF-8"?> <mappings xmlns="http://www.sipfoundry.org/sipX/schema/xml/fallback-00-00"> <hostMatch> <hostPattern>ippbx.example.com</hostPattern> <hostPattern>it.ippbx.example.com</hostPattern> <hostPattern>it</hostPattern> <hostPattern>10.1.24.250</hostPattern> <userMatch> <!--Emergency Calling--> <userPattern>sos</userPattern> <userPattern>911</userPattern> <userPattern>9911</userPattern> <transform> <user>911</user> <host>10.1.25.254</host> <headerparams>expires=60</headerparams> <fieldparams>q=0.96</fieldparams> </transform> <transform> <user>911</user> <host>10.1.50.11</host> <headerparams>expires=60</headerparams> <fieldparams>q=0.92</fieldparams> </transform> <transform> <user>911</user> <host>10.1.51.249</host> <headerparams>expires=60</headerparams> <fieldparams>q=0.88</fieldparams> </transform> <transform> <user>911</user> <host>10.1.52.249</host> <headerparams>expires=60</headerparams> <fieldparams>q=0.84</fieldparams> </transform> </userMatch> <userMatch> <!--Express Messaging--> <description>Express Messaging</description> <userPattern>4183</userPattern> <userPattern>2210</userPattern> <userPattern>2211</userPattern> <transform> <user>{digits}</user> <host>callweaver.example.com</host> <headerparams>expires=60</headerparams> <fieldparams>q=0.9</fieldparams> </transform> </userMatch> <userMatch> <!--Analog Lines--> <userPattern>4408</userPattern> <userPattern>4658</userPattern> <userPattern>4679</userPattern> <userPattern>4683</userPattern> <userPattern>4684</userPattern> <userPattern>4455</userPattern> <userPattern>4696</userPattern> <transform> <user>{digits}</user> <host>callweaver.example.com</host> <headerparams>expires=60</headerparams> <fieldparams>q=0.9</fieldparams> </transform> </userMatch> <userMatch> <!--Nortel--> <description>All Nortel phones</description> <userPattern>4xxx</userPattern> <userPattern>5xxx</userPattern> <userPattern>6xxx</userPattern> <transform> <user>{digits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.9</fieldparams> </transform> </userMatch> <userMatch> <!--Local--> <description>Local dialing</description> <userPattern>9xxxxxxx</userPattern> <callerLocationMatch> <callerLocation>Other-Location</callerLocation> <transform> <user>9{vdigits}</user> <host>10.1.50.11</host> <headerparams>expires=60</headerparams> <fieldparams>q=0.933</fieldparams> </transform> <transform> <user>9{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.867</fieldparams> </transform> </callerLocationMatch> <callerLocationMatch> <callerLocation>Secondary-Location</callerLocation> <transform> <user>9{vdigits}</user> <host>10.1.52.249</host> <headerparams>expires=60</headerparams> <fieldparams>q=0.933</fieldparams> </transform> <transform> <user>9{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.867</fieldparams> </transform> </callerLocationMatch> <transform> <user>9{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.9</fieldparams> </transform> </userMatch> <userMatch> <!--8 Long Distance--> <description>Special Rule to allow for dialing 8 for long distance</description> <userPattern>8xxxxxxxxxx</userPattern> <transform> <user>8{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.9</fieldparams> </transform> </userMatch> <userMatch> <!--Long Distance--> <description>Long distance dialing plan</description> <userPattern>91xxxxxxxxxx</userPattern> <userPattern>xxxxxxxxxx</userPattern> <callerLocationMatch> <callerLocation>Other-Location</callerLocation> <transform> <user>91{vdigits}</user> <host>10.1.50.11</host> <headerparams>expires=60</headerparams> <fieldparams>q=0.933</fieldparams> </transform> <transform> <user>91{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.867</fieldparams> </transform> </callerLocationMatch> <transform> <user>91{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.9</fieldparams> </transform> </userMatch> <userMatch> <!--Toll free--> <description>Toll free dialing</description> <userPattern>91800xxxxxxx</userPattern> <userPattern>800xxxxxxx</userPattern> <callerLocationMatch> <callerLocation>Other-Location</callerLocation> <transform> <user>91800{vdigits}</user> <host>10.1.50.11</host> <headerparams>expires=60</headerparams> <fieldparams>q=0.933</fieldparams> </transform> <transform> <user>91800{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.867</fieldparams> </transform> </callerLocationMatch> <transform> <user>91800{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.9</fieldparams> </transform> </userMatch> <userMatch> <!--Toll free--> <description>Toll free dialing</description> <userPattern>91866xxxxxxx</userPattern> <userPattern>866xxxxxxx</userPattern> <callerLocationMatch> <callerLocation>Other-Location</callerLocation> <transform> <user>91866{vdigits}</user> <host>10.1.50.11</host> <headerparams>expires=60</headerparams> <fieldparams>q=0.933</fieldparams> </transform> <transform> <user>91866{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.867</fieldparams> </transform> </callerLocationMatch> <transform> <user>91866{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.9</fieldparams> </transform> </userMatch> <userMatch> <!--Toll free--> <description>Toll free dialing</description> <userPattern>91877xxxxxxx</userPattern> <userPattern>877xxxxxxx</userPattern> <callerLocationMatch> <callerLocation>Other-Location</callerLocation> <transform> <user>91877{vdigits}</user> <host>10.1.50.11</host> <headerparams>expires=60</headerparams> <fieldparams>q=0.933</fieldparams> </transform> <transform> <user>91877{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.867</fieldparams> </transform> </callerLocationMatch> <transform> <user>91877{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.9</fieldparams> </transform> </userMatch> <userMatch> <!--Toll free--> <description>Toll free dialing</description> <userPattern>91888xxxxxxx</userPattern> <userPattern>888xxxxxxx</userPattern> <callerLocationMatch> <callerLocation>Other-Location</callerLocation> <transform> <user>91888{vdigits}</user> <host>10.1.50.11</host> <headerparams>expires=60</headerparams> <fieldparams>q=0.933</fieldparams> </transform> <transform> <user>91888{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.867</fieldparams> </transform> </callerLocationMatch> <transform> <user>91888{vdigits}</user> <host>10.1.24.251:5060</host> <urlparams>transport=udp</urlparams> <headerparams>route=10.1.24.250:5090</headerparams> <headerparams>expires=60</headerparams> <fieldparams>q=0.9</fieldparams> </transform> </userMatch> </hostMatch> </mappings>
_______________________________________________ sipx-users mailing list sipx-users@list.sipfoundry.org 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/