[OpenSIPS-Users] Modify To:'s field and forward
spady
spady77 at gmail.com
Wed Dec 7 11:56:53 CET 2011
Hi list, I would share with you all what i reached about my script. Hope this
would be helpfull for someone of you.
if (avp_db_load("$fu/username","$avp(ARS-OFS)"))
{
if (avp_check("$avp(ARS-OFS)","eq/lw-re/i"))
{
if ($rU=~"^0[0-9]+")
{
strip(1);
prefix("87019");
rewritehostport("10.9.6.3:5060");
route(1);
exit;
}
}
else
{
if (avp_check("$avp(ARS-OFS)","eq/lw-mo/i"))
{
if ($rU=~"^0[0-9]+")
{
strip(1);
prefix("87070");
rewritehostport("10.9.6.3:5060);
route(1);
exit;
}
}
}
else {
rewritehostport("10.9.6.3:5060");
route(1);
exit;
}
Thank you all for your help.
Regards
--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Modify-To-s-field-and-forward-tp7040781p7070116.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
More information about the Users
mailing list