[asterisk-bugs] [JIRA] (ASTERISK-24293) Asterisk adds '; 2' to channel id in ARI events

Matt Jordan (JIRA) noreply at issues.asterisk.org
Sun Aug 31 23:32:29 CDT 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-24293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Jordan closed ASTERISK-24293.
----------------------------------

    Resolution: Not A Bug

This is not a bug.

You are creating a Local channel. That always creates two channels. Since you failed to provide another channel ID for the second half of the channel, Asterisk added the ';2' - otherwise, you'd have two channels with the same ID, which wouldn't work very well for your application at all.

As noted in the ARI documentation, you need to use the {{otherChannelId}} field:

{quote}
otherChannelId: string - The unique id to assign the second channel when using local channels.
{quote}





> Asterisk adds ';2' to channel id in ARI events
> ----------------------------------------------
>
>                 Key: ASTERISK-24293
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-24293
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>    Affects Versions: 12.5.0
>            Reporter: Pavel Kukin
>
> I create channel via ARI with the next data:
> { app: 'Queue',
>   endpoint: 'Local/skynet.device-1900 at queue_members.dial',
>   channelId: '1651f065-c45e-4dbc-b187-ca97eb1caf5b.testqueue.74' }
> ARI sends me successfull response body:
> {"id":"1651f065-c45e-4dbc-b187-ca97eb1caf5b.testqueue.74","state":"Down","name":"Local/skynet.device-1900 at queue_members.dial-00000047;1","caller":{"name":"","number":""},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"queue_members.dial","exten":"skynet.device-1900","priority":1},"creationtime":"2014-08-27T00:22:07.653+0000"}
> Then I add channels to existing bridge:
> /bridges/b1cc1a44-0091-49db-ad62-97d165d70c05/addChannel
> { channel: '1651f065-c45e-4dbc-b187-ca97eb1caf5b.testqueue.74,1409098921.725' }
> After that I start to receive strange events with ;2 everywhere:
> ws received: {"type":"ChannelDialplan","dialplan_app":"Set","timestamp":"2014-08-27T00:22:07.672+0000","dialplan_app_data":"QUEUE=testqueue.74;2","channel":{"id":"1651f065-c45e-4dbc-b187-ca97eb1caf5b.testqueue.74;2","state":"Ring","name":"Local/skynet.device-1900 at queue_members.dial-00000047;2","caller":{"name":"","number":""},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"queue_members.dial","exten":"skynet.device-1900","priority":1},"creationtime":"2014-08-27T00:22:07.660+0000"},"application":"Queue"}
> ws received: {"channel":{"id":"1651f065-c45e-4dbc-b187-ca97eb1caf5b.testqueue.74;2","state":"Ring","name":"Local/skynet.device-1900 at queue_members.dial-00000047;2","caller":{"name":"","number":""},"connected":{"name":"","number":""},"accountcode":"","dialplan":{"context":"queue_members.dial","exten":"skynet.device-1900","priority":1},"creationtime":"2014-08-27T00:22:07.660+0000"},"application":"Queue","variable":"QUEUE","type":"ChannelVarset","value":"testqueue.74;2","timestamp":"2014-08-27T00:22:07.673+0000"}



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



More information about the asterisk-bugs mailing list