Hi Meftah,
Do send out a redirect, you simply have to send back from your script a
30x reply; the current RURI will used as a contact URI for the redirect.
Ex:
# If receive an INVITE to [email protected], redirect it to [email protected]
if (is_method("INVITE") && $ru == "sip:[email protected]") {
# change the RURI to the address I want to redirect
$ru = "sip:[email protected]";
send_reply("302","redirected");
exit;
}
Regards,
Bogdan
Meftah Tayeb wrote:
> hi all
> please could anyone help me configure a redirect server using OpenSIPS?
> i need to route registrations from server1.com, that is the opensips
> redirect server to server2.com, that is any registrare server
> thanks for any help
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus signature
> database 4378 (20090828) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users