[OpenSER-Users] Preserving original number when using alias_db_lookup

Jesus Rodriguez jesusr at voztele.com
Sun Jun 29 20:42:35 CEST 2008


Hi Stagg,


> I found in the archives about how to preserve the original number when
> using alias_db_lookup.  I am still learning OpenSER, and AVP is a
> challenge for me.  I am looking for an example that I can use that can
> save the $rU in an avp before the alias_db_lookup and restore it
> afterwards.


You can do something like:

$avp(backup) = $rU;
If alias_db_lookup("dbaliases") {
	xxxx
	xxxx
} else {
	avp_pushto("$rU","$avp(backup)");
}

Or whaever you need to do... just save the original uri and restore it  
with the avp_pushto() function.

Regards.

Saludos
JesusR.

------------------------------------
Jesus Rodriguez
VozTelecom Sistemas, S.L.
jesusr at voztele.com
http://www.voztele.com
Tel. 902360305
-------------------------------------








More information about the Users mailing list