[asterisk-bugs] [JIRA] (ASTERISK-26448) Channels in Ringing state after PickUpChan of a local channel

nappsoft (JIRA) noreply at issues.asterisk.org
Fri Oct 14 05:12:01 CDT 2016


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

nappsoft commented on ASTERISK-26448:
-------------------------------------

As you can see in the attached scenario (verbose console output and pcap file) it does not have anything to do with picking up a local channel, it also happens when picking up a PJSIP channel.

So here the scenario:

- incoming call
- Dial with several extensions: Dial("PJSIP/A1020srvID2-000003d0", "PJSIP/snom/sip:snom at 10.10.10.2:40477&PJSIP/UT123/sip:UT123 at 10.10.10.3:5060,25,tkwL(86400000:120000:30000)b(predial^headers^1(<sip:0445405045 at 94.230.216.119>;reason=unconditional^LumiMagic-1476438795.16151^0445405045^0))")
- pickup the call from a different channel with PickupChan: AGI Script Executing Application: (PickupChan) Options: (PJSIP/snom-000003d1)

=> the pickup works and as you can see in the pcap file the two SIP sessions to  UT123 and snom are immediately Cancelled. So on the SIP layer everything works as expected. While asterisk cleans up the picked up channel (PJSIP/snom-000003d1) as well, the other one (PJSIP/UT123-000003d2) gets stuck somehow. (It is still listed as ringing with core show channels and the hint of the extension stays in the wrong state as well). Output of core show channels: PJSIP/UT123-000003d2 0445405045 at default:1 Ringing AppDial((Outgoing Line)) 

As for the guidelines: I can't show you exactly the place in the documentation where the behavior that I expect is described but as we all know the behavior here is not as expected and is not how asterisk used to work in the past.

One sidenode: when not using PickupChan but picking up the call by one of the ringing phones all other channels will be closed as expected. So it does nothing have to do with the Dial command with several PJSIP extensions, but with the fact that I use PickupChan in this example.

The behavior can be reproduced in 100% of cases. The only workaround I've found so far is to do a "channel request hangup" on all other channels before using the PickupChan command.

> Channels in Ringing state after PickUpChan of a local channel
> -------------------------------------------------------------
>
>                 Key: ASTERISK-26448
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26448
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/PBX
>    Affects Versions: 13.11.2
>            Reporter: nappsoft
>            Assignee: Unassigned
>            Severity: Minor
>         Attachments: ast_dbug.pcap, asterisk_debug.txt
>
>
> When Dialing multiple channels with the Dial application and picking up a local channel the other channels (PJSIP) stay in Ringing state until the call ends. 
> When trying to hangup one of the stuck channels the following happens:
> asterisk> channel request hangup PJSIP/UT123-00000248
> PJSIP/UT123-00000248 is not a known channel
> However the channel will still be listed with "core show channels concise":
> PJSIP/UT123-00000248!default!0xxxxxxx!1!Ringing!AppDial!(Outgoing Line)!0xxxxxxxx!pZNRJ5r8X4dU!pZNRJ5r8X4dU!3!48!!LumiMagic-1475843690.10390
> In fact the phone stops ringing after the local channel has been picked up but the problem here is that the hint doesn't change back to idle until the call finishes, so we have wrong extension states.
> Some details:
> - incoming channel is a pjsip channel
> - the call is ringing on several pjsip channels and one local channel (the function of this channel is to send a message to mobile extensions which can in turn pickup the call)
> - the call is being picked up with a pjsip channel



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



More information about the asterisk-bugs mailing list