diff --git a/src/modules/phonenum/doc/phonenum_admin.xml b/src/modules/phonenum/doc/phonenum_admin.xml index 1b13cfb2b92..16e85c57666 100644 --- a/src/modules/phonenum/doc/phonenum_admin.xml +++ b/src/modules/phonenum/doc/phonenum_admin.xml @@ -111,8 +111,13 @@ modparam("phonenum", "smode", 0) <function>phonenum_match</function> usage ... -if(phonenum_match("1-484-555-8888", "src")) - xlog("number normalized to: $phn(src=>num)\n"); +if(phonenum_match("1-484-555-8888", "src")) { + if($phn(src=>valid)==1) { + xlog("number normalized to: $phn(src=>normalized)\n"); + } else { + xlog("number normalization error: $phn(src=>error)\n"); + } +} ... @@ -131,16 +136,27 @@ if(phonenum_match("1-484-555-8888", "src")) - number - normalized phone number + number - phone number that is matched - country - country for phone number + valid - 1 if the matched number has a + valid result; 0 otherwise - region - region for phone number + normalized - normalized phone number - operator - operator for phone number + cctel - country code for phone number + + + ltype - local network type + + + ndesc - phone number description + + + error - error string if phone number + matching fails.