Switch from hostname to an IP address in the SDP origin line.
authorMark Michelson <mmichelson@digium.com>
Thu, 21 Aug 2014 21:43:45 +0000 (21:43 +0000)
committerMark Michelson <mmichelson@digium.com>
Thu, 21 Aug 2014 21:43:45 +0000 (21:43 +0000)
commit644e693645cad8c31c96defc3945532da7497fc8
treed8c77871a2ee8a1945f871d4bbd5d356d1d701c8
parent56a1d4930a7d41c545b951f66f913cf133681086
Switch from hostname to an IP address in the SDP origin line.

Using the hostname in the SDP origin line may not satisfy the requirement
of RFC 4566 that we use a FQDN or IP address. This change has us use the
same information from the SDP connection line if possible. If not possible,
we'll use the configured media address. And if that's not possible, we use
the result of a PJLIB call to get the IP address of ourself.

ASTERISK-23994 #close
Reported by Private Name

Review: https://reviewboard.asterisk.org/r/3925
........

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

Merged revisions 421797 from http://svn.asterisk.org/svn/asterisk/branches/13

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