res_pjsip_nat: Don't assume a Contact header will always contain a URI.
authorJoshua Colp <jcolp@digium.com>
Tue, 7 Jan 2014 14:56:10 +0000 (14:56 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 7 Jan 2014 14:56:10 +0000 (14:56 +0000)
commitf89ab79862721aba9bfe89d945ea27b2f14c844c
treeefa2be8eaa5f88c89d4ea07f8908c5fe5479b326
parente95e66cedefae2026b22987fe2e8314c3a9dc8dc
res_pjsip_nat: Don't assume a Contact header will always contain a URI.

If the 'rewrite_contact' option was enabled and a Contact header was received
which contained a '*' a crash would occur.

This change makes the res_pjsip_nat module ignore the Contact header if it
contains only a '*'.

(closes issue ASTERISK-23101)
Reported by: Matt Jordan
........

Merged revisions 405019 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@405020 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip_nat.c