[OpenSER-Users] Problem in REGISTER with "Route" (I don't want to use "alias" in conf file)

Andreas Granig agranig at sipwise.com
Thu Sep 13 17:21:13 CEST 2007


If loose_route() returns true, a destination uri ($du) is set according 
to the first Route header. $dd refers to the domain part of this uri.

So if there's a destination uri resulting from a Route header, you can 
check its domain using is_domain_local() and thereby distinguish whether 
the domain is served by your proxy.

Andreas

Iñaki Baz Castillo wrote:
> El Thursday 13 September 2007 16:41:36 Andreas Granig escribió:
>> Hi,
>>
>> Klaus Darilion wrote:
>>> This is a known limitation with openser - loose_route does not import
>>> the domains from domain module.
>>>
>>> Maybe we already have it on the feature request list - but if not,
>>> please submit it on the feature request tracker
>> Daniel once suggested a workaround for this issue:
>>
>> if(loose_route())
>> {
>>    if($du != null && is_domain_local("$dd"))
>>    {
>>      $du = null;
>>    }
>>    else
>>    {
>>      # do loose-routing here
>>    }
>> }
>>
>> Works fine here.
> 
> Could you explain what $du and $dd are for?
> I'am logging them and they are always "null" ¿?
> 
> Thanks.
> 
> 
> 
> 
> 




More information about the Users mailing list