diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-30 04:16:38 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-03-30 04:16:38 +0000 |
commit | a9a990c34439999f57a0993ddf1b81c8501bae91 (patch) | |
tree | ac13fdc97eba41953e221550011bf44b2e0cf4fe /include/asterisk/callerid.h | |
parent | c10fca18f2a1aab415df2cd4af54f5ed64b49970 (diff) |
Issue #6450 - Don't remove characters from SIP uri's when not needed
Patch by jcomellas, heavily modified by oej
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@16425 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/callerid.h')
-rw-r--r-- | include/asterisk/callerid.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/asterisk/callerid.h b/include/asterisk/callerid.h index 066dc7888..a49d686ab 100644 --- a/include/asterisk/callerid.h +++ b/include/asterisk/callerid.h @@ -193,11 +193,18 @@ extern int ast_gen_cas(unsigned char *outbuf, int sas, int len, int codec); */ extern void ast_shrink_phone_number(char *n); -/*! \brief Check if a string consists only of digits. +/*! \brief Check if a string consists only of digits and + \# \param n number to be checked. \return Returns 0 if n is a number, 1 if it's not. */ -extern int ast_isphonenumber(char *n); +extern int ast_isphonenumber(const char *n); + +/*! \brief Check if a string consists only of digits and and + \# ( ) - . + (meaning it can be cleaned with ast_shrink_phone_number) + \param exten The extension (or URI) to be checked. + \return Returns 0 if n is a number, 1 if it's not. + */ +extern int ast_is_shrinkable_phonenumber(const char *exten); extern int ast_callerid_split(const char *src, char *name, int namelen, char *num, int numlen); |