On Tue, Mar 2, 2010 at 12:02 PM, Bogdan Brezoi <[email protected]> wrote: > Hi all, > > While digging through the http://track.sipfoundry.org/browse/XX-7695 > issue, I came to notice the following thing: > I created a SIP Trunk with sipxbridge-1 SBC route, and selected the > Nortel CS1000 ITSP template. The address field for other templates gets > populated with some value after selecting the template, but not for this > particular one. Here's what happens: when selecting the CS1000 template, > the value of the address field (which corresponds to > itsp-account/itsp-proxy-address setting) is filled with the default > value of the itsp-account/itsp-proxy-domain setting (which in this case > is not-defined hence null). The UI validation does not let you leave the > address field blank so we can manually write something in there, but the > problem is that when forwardingrules.xml is generated, the > forwardingrules.vm velocity template uses the > itsp-account/itsp-proxy-domain value to output > <routeFrom>.....</routeFrom> tag. That's where from the problem of this > issue appears (having the itsp-proxy-domain setting value null). > In my opinion we have three basic solutions : > - either we are using the wrong setting in the velocity template > (itsp-proxy-domain instead of itsp-proxy-address) and we should change that.
No please use ITSP proxy domain. > - either we should specify a "please.specify.address" similar value for > the itsp-proxy-domain default value. No. It is fine now. Please leave it as such. > - either we modify the velocity template in order to obtain an empty > <routeFrom></routeFrom> tag when the itsp-proxy-domain setting is null. The default sets the ITSP proxy address to be the same as ITSP proxy domain. You can leave the ITSP proxy address field blank. It is meant to be an override. If the ITSP wants you to send to a specific address, you put some IP address there. If the ITSP is good they would implement a DNS SRV record for SIP, for which you need only have the domain and nothing else. > > But maybe the biggest question is why do we have this itsp-proxy-domain > setting and what is its purpose ? It's a hidden setting so it couldn't > be changed by the user from the UI, and I didn't found direct references > to it, besides the thing described above. Its purpose is to route the call to the ITSP. SIP has rules for how you map the domain to an IP address and sipxbridge uses those rules to find the hop to the ITSP. > On the other hand why do we need to fill the value of a A setting from > the default value of another B setting instead of just using a default > value for the A setting ? With some ITSPs you have to REGISTER. You need the domain for that. When you register with an ITSP, sipx proxy does not originate or see the REGISTER -- sipxbridge does. So the routing plugin and consequent rewrite of the request URI is never invoked. That's why you need the domain field to appear in sipxbridge.xml. I would suppress field checking on the ITSP proxy address and other places where the entry can be left blank; however, that domain field should stay in sipxbridge.xml. You can make it read-only in the generated sipxbridge.xml if you want or even hidden but it must appear there. > > > Could anyone clear these things for me? Hope it helps. Please ask if unclear. > Thanks for your answer, > Bogdan > _______________________________________________ > sipx-dev mailing list [email protected] > List Archive: http://list.sipfoundry.org/archive/sipx-dev > Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev > sipXecs IP PBX -- http://www.sipfoundry.org/ > -- M. Ranganathan _______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev sipXecs IP PBX -- http://www.sipfoundry.org/
