Hi,
I have a carrier who insists and have configured their system so they can receive INVITEs to their domain name only, and not the IP. I cannot configure the gw for anything but IPs, but thought that I might be able to replace the IP address in the cfg. So I tried with setting $dd = "domain.com"; but that's not working, - I guess $dd is read-only or something. Any ideas?
Thanks!!
//Anders
$d_ means destination URI (DURI). The DURI is used only for routing purposes and ist not reflected in the SIP message. You want to use $d_ which means the request URI (RURI).
$rd = "domain.com"
regards klaus
PS: both, ruri and duri are read/write
Am 09.06.2010 18:23, schrieb Anders:
Hi,
I have a carrier who insists and have configured their system so they can receive INVITEs to their domain name only, and not the IP. I cannot configure the gw for anything but IPs, but thought that I might be able to replace the IP address in the cfg. So I tried with setting $dd = "domain.com"; but that's not working, - I guess $dd is read-only or something. Any ideas?
Thanks!!
//Anders
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
thanks!
...but does it even make sense what I'm trying to do? I mean, at what point in the cfg would I tell it that if it's choosing a specific gw, it needs to substitute the IP with a domain name...a new $rd?
//Anders
On Wed, Jun 9, 2010 at 12:28 PM, Klaus Darilion klaus.mailinglists@pernau.at wrote:
$d_ means destination URI (DURI). The DURI is used only for routing purposes and ist not reflected in the SIP message. You want to use $d_ which means the request URI (RURI).
$rd = "domain.com"
regards klaus
PS: both, ruri and duri are read/write
Am 09.06.2010 18:23, schrieb Anders:
Hi,
I have a carrier who insists and have configured their system so they can receive INVITEs to their domain name only, and not the IP. I cannot configure the gw for anything but IPs, but thought that I might be able to replace the IP address in the cfg. So I tried with setting $dd = "domain.com"; but that's not working, - I guess $dd is read-only or something. Any ideas?
Thanks!!
//Anders
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Hi Anders!
Am 09.06.2010 19:00, schrieb Anders:
thanks!
...but does it even make sense what I'm trying to do?
yes.
I mean, at what point in the cfg would I tell it that if it's choosing a specific gw, it needs to substitute the IP with a domain name...a new $rd?
somewhere between normal routing decisions and t_relay(), e.g.
route { ...sanity checks ...authentication ...NAT traversal ...routing decisions
if ($rd = "1.2.3.4") { #ip address of gateway $rd = "domain.com"; }
t_relay(); exit; }
regards Klaus
//Anders
On Wed, Jun 9, 2010 at 12:28 PM, Klaus Darilion klaus.mailinglists@pernau.at wrote:
$d_ means destination URI (DURI). The DURI is used only for routing purposes and ist not reflected in the SIP message. You want to use $d_ which means the request URI (RURI).
$rd = "domain.com"
regards klaus
PS: both, ruri and duri are read/write
Am 09.06.2010 18:23, schrieb Anders:
Hi,
I have a carrier who insists and have configured their system so they can receive INVITEs to their domain name only, and not the IP. I cannot configure the gw for anything but IPs, but thought that I might be able to replace the IP address in the cfg. So I tried with setting $dd = "domain.com"; but that's not working, - I guess $dd is read-only or something. Any ideas?
Thanks!!
//Anders
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
2010/6/10 Klaus Darilion klaus.mailinglists@pernau.at:
somewhere between normal routing decisions and t_relay(), e.g.
route { ...sanity checks ...authentication ...NAT traversal ...routing decisions
if ($rd = "1.2.3.4") { #ip address of gateway $rd = "domain.com"; }
t_relay(); exit; }
Also if you use LCR module the domain part of the RURI can be set by giving such value to the "hostname" field in the gw table.
Ok, that would definitely make things easier/better - thanks!!
//Anders
On Thu, Jun 10, 2010 at 8:24 AM, Iñaki Baz Castillo ibc@aliax.net wrote:
2010/6/10 Klaus Darilion klaus.mailinglists@pernau.at:
somewhere between normal routing decisions and t_relay(), e.g.
route { ...sanity checks ...authentication ...NAT traversal ...routing decisions
if ($rd = "1.2.3.4") { #ip address of gateway $rd = "domain.com"; }
t_relay(); exit; }
Also if you use LCR module the domain part of the RURI can be set by giving such value to the "hostname" field in the gw table.
-- Iñaki Baz Castillo ibc@aliax.net