[SR-Users] domain name
Klaus Darilion
klaus.mailinglists at pernau.at
Thu Jun 10 09:56:11 CEST 2010
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 at 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 at lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
More information about the sr-users
mailing list