[asterisk-bugs] [JIRA] (ASTERISK-23397) Call parking via AMI causes announcment and ringback to caller channel
Rusty Newton (JIRA)
noreply at issues.asterisk.org
Thu Mar 27 16:21:18 CDT 2014
[ https://issues.asterisk.org/jira/browse/ASTERISK-23397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=216881#comment-216881 ]
Rusty Newton edited comment on ASTERISK-23397 at 3/27/14 4:19 PM:
------------------------------------------------------------------
So, because you referenced a bug with behavior in an older version of Asterisk, a little comparison of behavior between the AMI Park commands in Asterisk 11 and Asterisk 12 may be due. This is only specifying the Channel, Channel2 and TimeoutChannel arguments and avoiding specifying anymore to avoid too many permutations.
First, it is helpful to know that the argument Channel2 was changed to TimeoutChannel between Asterisk 11 and 12. From the CHANGES file in 12:
{noformat}
* The AMI command 'Park' field 'Channel2' has been deprecated and replaced
with 'TimeoutChannel'. If both 'Channel2' and 'TimeoutChannel' are
specified, 'TimeoutChannel' will be used. The field 'TimeoutChannel' is no
longer a required argument.
{noformat}
h3. Asterisk 11
* Attempting parking with only *Channel* reports back an error that *Channel2* was not specified
* Parking with *Channel* and *Channel2* specified results in
** *Channel* being parked and hearing MOH
** At the same time the specified *Channel2* ends abruptly and eventually gets the call back , neither receives an announcement of parking slot
h3. Asterisk 12
* Parking with only *Channel* and no *TimeoutChannel* results in:
** The *Channel* specified getting parked, plus the slot announcement and MOH, as well as eventually the call back.
* parking with *Channel* and *TimeoutChannel* specified results in
** The *Channel* specified getting parked and MOH
** and the *TimeoutChannel* specified ending abruptly, then eventually getting the call back, but neither gets a slot announcement
With both Asterisk 11 and 12, you are specifying a *Channel* to be parked, and a channel to receive the call back upon timeout (*Channel2*/*TimeoutChannel*). Additional arguments allow you to specify the *Timeout* and the *Parkinglot*.
bq. Behavior i expected: parkslot number announcment sounds to 101, MOH sounds to 102, 101 hangups
Knowing what I described above, I wouldn't expect either channel specified to receive an announcement of parking slot, as really there is no channel parking the call, you are initiating the call parking via AMI. You might ask, why wouldn't the Channel2/TimeoutChannel receive the announcement? Well, there is no guarantee that channel is even connected to the Channel being parked, or any guarantee that they are not on the phone already.
That being said, the documentation for the Park command in both 11 and 12 could be made clearer to set expectations for someone using it.
Additionally I think that a behavior here is that is not described in documentation and is unexpected is that in 12 we do play the announcement of parking slot to the *Channel* being parked. However there were a lot of changes to parking in 12 and maybe this is the desired outcome? I'll check with the developers that worked on those recent changes to figure it out.
was (Author: rnewton):
So, a little comparison of behavior between the AMI Park commands in Asterisk 11 and Asterisk 12. This is only specifying the Channel, Channel2 and TimeoutChannel arguments and avoiding specifying anymore to avoid too many permutations.
First, it is helpful to know that the argument Channel2 was changed to TimeoutChannel between Asterisk 11 and 12. From the CHANGES file in 12:
{noformat}
* The AMI command 'Park' field 'Channel2' has been deprecated and replaced
with 'TimeoutChannel'. If both 'Channel2' and 'TimeoutChannel' are
specified, 'TimeoutChannel' will be used. The field 'TimeoutChannel' is no
longer a required argument.
{noformat}
h3. Asterisk 11
* Attempting parking with only *Channel* reports back an error that *Channel2* was not specified
* Parking with *Channel* and *Channel2* specified results in
** *Channel* being parked and hearing MOH
** At the same time the specified *Channel2* ends abruptly and eventually gets the call back , neither receives an announcement of parking slot
h3. Asterisk 12
* Parking with only *Channel* and no *TimeoutChannel* results in:
** The *Channel* specified getting parked, plus the slot announcement and MOH, as well as eventually the call back.
* parking with *Channel* and *TimeoutChannel* specified results in
** The *Channel* specified getting parked and MOH
** and the *TimeoutChannel* specified ending abruptly, then eventually getting the call back, but neither gets a slot announcement
With both Asterisk 11 and 12, you are specifying a *Channel* to be parked, and a channel to receive the call back upon timeout (*Channel2*/*TimeoutChannel*). Additional arguments allow you to specify the *Timeout* and the *Parkinglot*.
bq. Behavior i expected: parkslot number announcment sounds to 101, MOH sounds to 102, 101 hangups
Knowing what I described above, I wouldn't expect either channel specified to receive an announcement of parking slot, as really there is no channel parking the call, you are initiating the call parking via AMI. You might ask, why wouldn't the Channel2/TimeoutChannel receive the announcement? Well, there is no guarantee that channel is even connected to the Channel being parked, or any guarantee that they are not on the phone already.
That being said, the documentation for the Park command in both 11 and 12 could be made clearer to set expectations for someone using it.
Additionally I think that a behavior here is that is not described in documentation and is unexpected is that in 12 we do play the announcement of parking slot to the *Channel* being parked. However there were a lot of changes to parking in 12 and maybe this is the desired outcome? I'll check with the developers that worked on those recent changes to figure it out.
> Call parking via AMI causes announcment and ringback to caller channel
> ----------------------------------------------------------------------
>
> Key: ASTERISK-23397
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-23397
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Features/Parking
> Affects Versions: 12.0.0, 12.1.0
> Reporter: Denis
> Assignee: Rusty Newton
> Severity: Minor
> Attachments: call_101_102_cel.xls, call_101_102_cli_messages.txt, call_101_102_events.txt, debug, t_conf.xls, t_extensions.xls, t_sippeus.xls
>
>
> I`ve seen fixed issue with this header on ASTERISK-15127, but absolutely the same bug in 12.1.0-rc1 release. MOH and parkslot number announcment goes to one channel.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list