mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 14:58:25 +00:00
Issue #6450 - Don't remove characters from SIP uri's when not needed
Patch by jcomellas, heavily modified by oej git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@16425 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user