diff options
author | Terry Wilson <twilson@digium.com> | 2011-10-19 07:45:06 +0000 |
---|---|---|
committer | Terry Wilson <twilson@digium.com> | 2011-10-19 07:45:06 +0000 |
commit | 5f8648892feb256d7a44e81b34617585afcf6e2b (patch) | |
tree | 1cb722ba4e796e4d81e485b2026a82f553fb28f8 /channels | |
parent | 2816ccc516af65e6d97f73a34e7e4f989dd7dd17 (diff) |
Don't use is_int() since it doesn't link well on all platforms
Just create an normal API function in strings.h that does the same thing
just to be safe.
ASTERISK-17146
........
Merged revisions 341379 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 341380 from http://svn.asterisk.org/svn/asterisk/branches/10
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@341381 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index ac17f78fa..20498a00a 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -265,7 +265,6 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/data.h" #include "asterisk/aoc.h" #include "asterisk/message.h" -#include "asterisk/pval.h" #include "sip/include/sip.h" #include "sip/include/globals.h" #include "sip/include/config_parser.h" @@ -5315,7 +5314,7 @@ static int create_addr(struct sip_pvt *dialog, const char *opeer, struct ast_soc dialog->relatedpeer = sip_ref_peer(peer, "create_addr: setting dialog's relatedpeer pointer"); sip_unref_peer(peer, "create_addr: unref peer from sip_find_peer hashtab lookup"); return res; - } else if (is_int(peername)) { + } else if (ast_check_digits(peername)) { /* Although an IPv4 hostname *could* be represented as a 32-bit integer, it is uncommon and * it makes dialing SIP/${EXTEN} for a peer that isn't defined resolve to an IP that is * almost certainly not intended. It is much better to just reject purely numeric hostnames */ |