[OpenSER-Users-ES] Problemas reINVITE y check_from llamando con alias
MAS
masmail at gmail.com
Wed Oct 24 16:16:19 CEST 2007
Hola,
Mi ñapa, con mis conocimientos, es la siguiente (se aceptan mejoras,
sugerencias, problemas, errores, etc):
if ($fu=~"^sip:[1-9][0-9][0-9][0-9][0-9]@.*") {
avp_db_query("select contact from aliases where
username='$fU'","$avp(s:can_uri)");
avp_printf("$avp(s:can_urid)","sip:$au@$fd");
if (!avp_check("$avp(s:can_uri)","eq/$avp(s:can_urid)/g")) {
sl_send_reply("403","Use From!=Authenticate ID");
return(-1);
}
} else if (!(check_from())) {
sl_send_reply("403","Use From!=Authenticate ID");
return(-1);
}
Saludos.
Miguel A.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/sr-users-es/attachments/20071024/a2b41902/attachment-0002.htm
More information about the Users-es
mailing list