What I do in SER 0.96

Before any lookup("aliases")

        avp_write("$ruri/username","s:RealRuri");     //to save the Ruri

and just before sending the call to the user :

        avp_pushto("$ruri/username", "s:RealRuri");

You can then modify the Ruri as you want with prefix or strip if needed

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@lists.openser.org
    
[mailto:users-bounces@lists.openser.org]
  
On Behalf Of Iñaki Baz Castillo
Sent: Wednesday, April 02, 2008 6:30 PM
To: users@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@in.ilimit.es

_______________________________________________
Users mailing list
Users@lists.openser.org
http://lists.openser.org/cgi-bin/mailman/listinfo/users
    


_______________________________________________
Kamailio (OpenSER) - Users mailing list
Users@lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
http://lists.openser-project.org/cgi-bin/mailman/listinfo/users