[Kamailio-Users] [OpenSER-Users] [OT] How to handle different DID's in incoming calls for a registered client?

Daniel-Constantin Mierla miconda at gmail.com
Thu Feb 26 15:38:33 CET 2009



On 02/26/2009 02:56 PM, olivier taylor wrote:
> It's a pleasure, I just gave an idea...
> Daniel did the translation.
>
> Just take care, lookup("location") also modify the ruri.
... also it can add extra branches, so, in order to update the URI for 
each branch you have to use branch_route.

Cheers,
Daniel

>
> Olivier
>
> Antonio Reale a écrit :
>> Thanks Olivier, thanks Daniel,
>> in this way it works. My idea was that rewrite RURI after aliases lookup
>> (that also rewrite the RURI) was not the best solution.
>> Thank you very much.
>> Regards,
>> Antonio.
>>
>>
>>
>>   
>>> -----Original Message-----
>>> From: Daniel-Constantin Mierla [mailto:miconda at gmail.com]
>>> Sent: Wednesday, February 25, 2009 11:36 AM
>>> To: olivier at sunforyou.be
>>> Cc: Antonio Reale; users at lists.kamailio.org
>>> Subject: Re: [Kamailio-Users] [OpenSER-Users] [OT] How to handle different
>>> DID's in incoming calls for a registered client?
>>>
>>> Hello,
>>>
>>> in kamailio/openser, the equvalents of the operations are (see inline):
>>>
>>> On 02/24/2009 11:17 AM, olivier taylor wrote:
>>>     
>>>> What I do in SER 0.96
>>>>
>>>> Before any lookup("aliases")
>>>>
>>>>         avp_write("$ruri/username","s:RealRuri");     //to save the Ruri
>>>>       
>>> $avp(s:RealRuri) = $rU;
>>>
>>>     
>>>> and just before sending the call to the user :
>>>>
>>>>         avp_pushto("$ruri/username", "s:RealRuri");
>>>>       
>>> $rU = $avp(s:RealRuri);
>>>
>>>     
>>>> You can then modify the Ruri as you want with prefix or strip if needed
>>>>       
>>> strip/prefix are still there, however there are other features that can
>>> help:
>>> - string concatenation of variables using + (e.g., $var(x) = "001" + $rU;)
>>> - transformations:
>>> http://www.kamailio.org/dokuwiki/doku.php/transformations:devel
>>>
>>> Cheers,
>>> Daniel
>>>
>>>     
>>>> Hope it helps
>>>>
>>>> Olivier
>>>>
>>>>
>>>> Antonio Reale a écrit :
>>>>       
>>>>> Hi Iñaki,
>>>>> did you find a way to solve this problem. I have the same problem with
>>>>> devices that can't read the To: value.
>>>>> For customers with 10/100 assigned number I routed the entire root
>>>>>         
>> number
>>   
>>> to
>>>     
>>>>> the customer's IP (loosing auth...), but for users with only one
>>>>> supplementary number it is not practicable.
>>>>> Has someone a suggestion for this problem?
>>>>> Thanks to all.
>>>>> Regards.
>>>>>
>>>>> Antonio.
>>>>>
>>>>>
>>>>>         
>>>>>> -----Original Message-----
>>>>>> From: users-bounces at lists.openser.org
>>>>>>
>>>>>>           
>>>>> [mailto:users-bounces at lists.openser.org]
>>>>>
>>>>>         
>>>>>> On Behalf Of Iñaki Baz Castillo
>>>>>> Sent: Wednesday, April 02, 2008 6:30 PM
>>>>>> To: users at lists.openser.org
>>>>>> Subject: Re: [OpenSER-Users] [OT] How to handle different DID's in
>>>>>>
>>>>>>           
>>>>> incoming
>>>>>
>>>>>         
>>>>>> calls for a registered client?
>>>>>>
>>>>>> El Wednesday 02 April 2008 16:21:59 Jesus Rodriguez escribió:
>>>>>>
>>>>>>           
>>>>>>> Yes, in theses cases you have to relay on To: header value. The
>>>>>>> problem is that not all "multiport" devices are "multi account" as
>>>>>>> Asterisk is and you need to use aliases to send all different DIDs to
>>>>>>> the same SIP account... some of these "multiport" devices can read
>>>>>>>             
>> the
>>   
>>>>>>> To: value and send the call to the right place even registering only
>>>>>>> one account.
>>>>>>>
>>>>>>>             
>>>>>> Ok, thanks.
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Iñaki Baz Castillo
>>>>>> ibc at in.ilimit.es
>>>>>>
>>>>>> _______________________________________________
>>>>>> Users mailing list
>>>>>> Users at lists.openser.org
>>>>>> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>>>>>>
>>>>>>           
>>>>> _______________________________________________
>>>>> Kamailio (OpenSER) - Users mailing list
>>>>> Users at lists.kamailio.org
>>>>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>>>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>>>>
>>>>>
>>>>>         
>>>> ------------------------------------------------------------------------
>>>>
>>>> _______________________________________________
>>>> Kamailio (OpenSER) - Users mailing list
>>>> Users at lists.kamailio.org
>>>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>>>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>>>       
>>> --
>>> Daniel-Constantin Mierla
>>> http://www.asipto.com
>>>     
>>
>>
>> _______________________________________________
>> Kamailio (OpenSER) - Users mailing list
>> Users at lists.kamailio.org
>> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
>>
>>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Kamailio (OpenSER) - Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
> http://lists.openser-project.org/cgi-bin/mailman/listinfo/users

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Users mailing list