]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip: Register for "BEFORE_MEDIA" responses
authorGeorge Joseph <gjoseph@digium.com>
Thu, 7 Jun 2018 13:46:03 +0000 (07:46 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Thu, 7 Jun 2018 13:56:00 +0000 (07:56 -0600)
commit98da1971e3342a63be22b32137089e802f2c8af6
tree345e947e018963c753003c38bc00387e5cfc2e60
parent19f8f8568917ea3a547f5c2c5b890dd12763197b
chan_pjsip:  Register for "BEFORE_MEDIA" responses

chan_pjsip wasn't registering for "BEFORE_MEDIA" responses which meant
it was not updating HANGUPCAUSE for 4XX responses.  If the remote end
sent a "180 Ringing", then a "486 Busy", the hangup cause was left at
"180 Normal Clearing".

* Removed chan_pjsip_incoming_response from the original session
  supplement (which was handling only "AFTER MEDIA") and added it to a
  new session supplement which accepts both "BEFORE_MEDIA" and
  "AFTER_MEDIA".

* Also cleaned up some cleanup code in load module.

ASTERISK-27902

Change-Id: If9b860541887aca8ac2c9f2ed51ceb0550fb007a
channels/chan_pjsip.c