[asterisk-bugs] [JIRA] (ASTERISK-26968) chan_pjsip: Transfer() does not result in TRANSFERSTATUS reflecting SIP response to transfer

Dan Cropp (JIRA) noreply at issues.asterisk.org
Wed Apr 26 09:52:57 CDT 2017


    [ https://issues.asterisk.org/jira/browse/ASTERISK-26968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236715#comment-236715 ] 

Dan Cropp commented on ASTERISK-26968:
--------------------------------------

Strange that chan_sip does set TRANSFERSTATUS according to the SIP response.  In chan_sip, the Transfer can even take several seconds based on what we saw because it was waiting for us to answer the call.  For example, I have a trace of the AMI where chan_sip performed the REFER, received Notify responses, etc.  7 seconds later answered the call.  At this point, the transfer completes and the TRANSFERSTATUS is set.

Shouldn't chan_sip and PJSIP work the same way?


> chan_pjsip: Transfer() does not result in TRANSFERSTATUS reflecting SIP response to transfer
> --------------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-26968
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26968
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_transfer, Channels/chan_pjsip
>    Affects Versions: 14.4.0
>         Environment: Debian 8 running on a VMWare VM
>            Reporter: Dan Cropp
>            Severity: Minor
>
> Using AMI to tell Asterisk to perform a Transfer (it's a blind transfer).  Asterisk is connected to a switch (tried both Cisco and Avaya).  Trying to tell the switch to we want to blind transfer to another number.
> Everything works fine with chan_sip.  What we are seeing is only in PJSIP support.
> The SIP REFER packet is sent correctly.  Switch receives it and will process it and provide the appropriate response.
> Valid number - Cisco sends Asterisk a 202 Accepted packet and it rings the phone for the transfer.  With chan_sip, the Transfer is not complete until the call is answered (during which the SIP trace shows a Notify/OK response).  With PJSIP, the logs indicate Asterisk is indicating the Transfer completed right away and sets TRANSFERSTATUS variable to SUCCESS (even though the call hasn't been answered).
> Invalid number - Cisco sends Asrterisk a 404 Not Found in response to the REFER packet.  For PJSIP, we see an immediate response with TRANSFERSTATUS variable set to SUCCESS (milliseconds before the 404 is ever showing up in the logs).  For chan_sip, it correctly waits for the 404 packet, processes this packet and indicates the Transfer failed, setting the TRANSFERSTATUS to FAILED.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list