Scott Lawrence wrote: > On Thu, 2009-04-02 at 07:58 +1300, Grant Lang wrote: >> Hi, >> Thanks for the reply. >> I have a suggestion, what if I added entries into the host file and created >> separate entries for the ITSP but pointed to the same ITSP? >> For example >> 202.67.162.1 a.itsp.com >> 202.67.162.1 b.itsp.com >> >> And then in each Gateway pointed the gateway to that host? >> >> I am not sure that would work because the fallbackrules.xml resolves the >> itsp domain name and puts an IP Address into the fallbackrules.xml file? >> >> Is there a possibility in either case that I could use an external rules >> file and if so how would I configure that? >> >> Thanks for your help. >> Grant >> >> <?xml version="1.0" encoding="UTF-8"?> >> <mappings xmlns="http://www.sipfoundry.org/sipX/schema/xml/fallback-00-00"> >> <hostMatch> >> <hostPattern>FQDN</hostPattern> >> <hostPattern>FQHN</hostPattern> >> <hostPattern>HostName</hostPattern> >> <hostPattern>10.1.2.11</hostPattern> >> <userMatch> >> <!--Local Auckland--> >> <description>Local Auckland dialing</description> >> <userPattern>909.</userPattern> >> <userPattern>99.</userPattern> >> <transform> >> <user>09{vdigits}</user> >> <host>202.180.76.166</host> >> <headerparams>route=10.1.2.11:5090</headerparams> >> <headerparams>expires=60</headerparams> >> <fieldparams>q=0.9</fieldparams> >> </transform> >> </userMatch> >> <userMatch> >> <!--Local Tauranga--> >> <description>Local Tauranga Dialing</description> >> <userPattern>907.</userPattern> >> <transform> >> <user>07{vdigits}</user> >> <host>202.180.76.166</host> >> <headerparams>route=10.1.2.11:5090</headerparams> >> <headerparams>expires=60</headerparams> >> <fieldparams>q=0.9</fieldparams> >> </transform> >> </userMatch> >> </hostMatch> >> </mappings> > > That looks correct. > > I think you should get call traces of calls that work and calls that > don't and take a snapshot. > > Don't jump to conclusions about what's happening >
I does look OK: but I am not sure if I understand your setup. Looks like you have 2 rules "Local Auckland" and "Local Tauranga". They both send calls to the same physical gateway (202.180.76.166) through the same SBC (10.1.2.11:5090). The only difference between the 2 gateways are inserted prefixes. How is it different form what you expected? D. _______________________________________________ sipx-users mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-users Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-users
