res_pjsip_messaging: Register message technology as pjsip
authorKevin Harwell <kharwell@digium.com>
Wed, 18 Sep 2013 14:56:22 +0000 (14:56 +0000)
committerKevin Harwell <kharwell@digium.com>
Wed, 18 Sep 2013 14:56:22 +0000 (14:56 +0000)
commit0e1d364fbd2ae586b67991957c4465d8bb2fcf3b
tree0042a771f20f8f699b32bb36e86367c272bb122f
parent38fa6288127450aa360bf9350e7040b3f205ce95
res_pjsip_messaging: Register message technology as pjsip

pjsip's message technology was being registered as 'sip', which was causing it
to not load due it conflicting with chan_sip's registered 'sip' technology for
messaging.  It now registers as 'pjsip'.  However, due to this change the "to"
field for outgoing pjsip messages need to be prefixed with 'pjsip:' instead of
'sip:'.  Incoming messages to res_pjsip_messaging will automatically have their
"to" fields altered in order to accommodate the change.  Outgoing messages also
handle changing it back to 'sip' before being sent so the pjsip library will
properly handle it.

(closes issue ASTERISK-22445)
Reported by: Matt Jordan
Review: https://reviewboard.asterisk.org/r/2833/
........

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

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