i implemented in uri module is_uri_user_e164 function:

1.4.7. is_uri_user_e164(pseudo-variable)

   Checks if userpart of URI stored in pseudo variable is E164
   number.

   This function can be used from REQUEST_ROUTE and
   FAILURE_ROUTE.

   Example 1-7. is_uri_user_e164 usage
...
if (is_uri_user_e164("$re")) {  # Check RPID header URI user part
   ...
}
if (is_uri_user_e164("$fu")) {  # Check From header URI user part
   ...
}
if (is_uri_user_e164("$avp(i:705)") {
  # Check user part of URI stored in $avp (i:705)
   ...
};
...

is it ok to commit this and remove enum/is_from_user_e164() and
auth/is_rpid_user_e164() functions?

-- juha


_______________________________________________
Devel mailing list
Devel@openser.org
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to