Hello,

The basic idea is to replace the RURI (via $ru variable) with the new SIP UTI destination. Where/how do you get this new destination, if up to the nature of your redirect logic. Like you can load it from DB, you can do a transformation via dialplan, you can do aliases (as Stefano suggested), etc

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 10.03.2014 10:42, Mike Claudi Pedersen wrote:
this makes no sense to me, im not sure alias is what i wanna use. i just want some method to redirect calls to another server, using a list of known users and locations


2014-03-10 9:32 GMT+01:00 Stefano Pisani <stefano.pis...@omnianet.it <mailto:stefano.pis...@omnianet.it>>:

    Simply replace the $ru ($ru = NEWURI) and the call goes to the
    right destination

    If the remapping is fixed you and use ALIAS. for example.

    Il 10/03/2014 08.11, Mike Claudi Pedersen ha scritto:
    Can someone please help me ind the right direction, i need to
    implement a system to rewrite the destination URI from a list of
    possible destinations.
    eg
    call from 20304050
    if(method == "INVITE") {
                 "check where 20304050 is"

    then return and replace 20304050 with something like +4520304050
    <tel:%2B4520304050>@voip123.local and redirect

-- Med venlig hilsen
    ipnordic A/S

    Mike Claudi Pedersen
    Tekniker

    Telefon: 79301033
    www.ipnordic.dk <http://www.ipnordic.dk/>


    _______________________________________________
    Users mailing list
    Users@lists.opensips.org  <mailto:Users@lists.opensips.org>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users


    _______________________________________________
    Users mailing list
    Users@lists.opensips.org <mailto:Users@lists.opensips.org>
    http://lists.opensips.org/cgi-bin/mailman/listinfo/users




--
Med venlig hilsen
ipnordic A/S

Mike Claudi Pedersen
Tekniker

Telefon: 79301033
www.ipnordic.dk <http://www.ipnordic.dk/>


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

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

Reply via email to