I am working with the ARI and have:
- Created a bridge (BR1)
- Created a channel (BR1CH1)
- Added the channel to the bridge
- Initiated a dial on channel BR1CH1 (with timeout of 10)
When I post to /ari/channels/BR1CH1/dial I add query parameter timeout=10. I have included the “Dial” message below showing timestamp 10:18:31.747 , and the “ChannelHangupRequest” message showing timestamp 10:18:34.628. So that’s less than 3 seconds from dial to end of ringing. In fact, its approx 1 second from device state change to ringing to the hangup request (so actually 1 second of ring time). The hangup cause is 19, which means “no answer”.
Why is the dial command not waiting the full 10 seconds I specified in the query parameter? (Is the unit of measure perhaps not SECONDS for this parameter, is it 1/10th of a second?)
DIAL MESSAGE:
{
"application": "mytestapp",
"asterisk_id": "54:b2:03:10:1f:3a",
"dialstatus": "",
"dialstring": "123",
"forward": "",
"peer": {
"accountcode": "",
"caller": {
"name": "Test Phone",
"number": "123"
},
"connected": {
"name": "MyCallerId",
"number": ""
},
"creationtime": "2024-10-11T10:18:31.724-0400",
"dialplan": {
"app_data": "mytestapp,objectId={12850fc5-3698-4876-8c88-1ec2efca2a31}",
"app_name": "Stasis",
"context": "from-internal",
"exten": "s",
"priority": 1
},
"id": "br1ch1",
"language": "en",
"name": "PJSIP/123-00000010",
"protocol_id": "0217b166-604b-41fd-8abd-429f1c8e5be5",
"state": "Down"
},
"timestamp": "2024-10-11T10:18:31.747-0400",
"type": "Dial"
}
CHANNELHANGUPREQUEST MESSAGE:
{
"application": "mytestapp",
"asterisk_id": "54:b2:03:10:1f:3a",
"cause": 19,
"channel": {
"accountcode": "",
"caller": {
"name": "Test Phone",
"number": "123"
},
"connected": {
"name": "MyCallerId",
"number": ""
},
"creationtime": "2024-10-11T10:18:31.724-0400",
"dialplan": {
"app_data": "mytestapp,objectId={12850fc5-3698-4876-8c88-1ec2efca2a31}",
"app_name": "Stasis",
"context": "from-internal",
"exten": "s",
"priority": 1
},
"id": "br1ch1",
"language": "en",
"name": "PJSIP/123-00000010",
"protocol_id": "0217b166-604b-41fd-8abd-429f1c8e5be5",
"state": "Ringing"
},
"timestamp": "2024-10-11T10:18:34.628-0400",
"type": "ChannelHangupRequest"
}
There is a ChannelState change to RINGING, and then a DIal change to RINGING, then a DeviceState change to Ringing inbetween. Approximately 1 second after the device state changed to ringing, the ChannelHangupRequest appeared.