[asterisk-dev] [Code Review] 3485: pjsip: Fix a bug where transferring to a parking extension causes calls to hang

Jonathan Rose reviewboard at asterisk.org
Fri Apr 25 17:48:18 CDT 2014

This is an automatically generated e-mail. To reply, visit:

Review request for Asterisk Developers, Matt Jordan and Mark Michelson.

Repository: Asterisk


If a PJSIP endpoint attempts to blind transfer to a parking extension, there is an override to the normal transfer logic that can make things act a little weird. We noticed that this would leave various phones hanging on transfer screens without progressing. When the transfer was considered successful, PJSIP deferred the actual action of sending the 200 notify and the actual trigger for that happening never occurs when the transfer is to a parking extension.

In order to handle this, the bridge function that handles blind transfers now returns a different value if a call was parked and if the channel driver needs to react differently in this case, it can.  In the case of PJSIP, we respond to transfers to park by immediately sending the notify with 200 OK sip frag instead of deferring the action.


  /branches/12/res/res_pjsip_refer.c 412824 
  /branches/12/main/manager.c 412824 
  /branches/12/main/bridge_basic.c 412824 
  /branches/12/main/bridge.c 412824 
  /branches/12/include/asterisk/bridge.h 412824 
  /branches/12/channels/chan_unistim.c 412824 
  /branches/12/channels/chan_skinny.c 412824 
  /branches/12/channels/chan_sip.c 412824 
  /branches/12/channels/chan_oss.c 412824 
  /branches/12/channels/chan_iax2.c 412824 

Diff: https://reviewboard.asterisk.org/r/3485/diff/


Before patch:
* Blind transfer on Polycom SPIP: Phone is on the blind transfer screen until it either manually hangs up or 60 seconds pass and Asterisk terminates the session.

After the patch:
* Blind transfer on Polycom SPIP: Phone immediately leaves the blind transfer screen and goes back to idle mode.


Jonathan Rose

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-dev/attachments/20140425/26e6a9d5/attachment.html>

More information about the asterisk-dev mailing list