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

Antonio Reale ant.reale at gmail.com
Thu Feb 26 11:32:39 CET 2009


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





More information about the sr-users mailing list