Hi,
What should be the correct behaviour of using Dial() if the callee declines to answer? Currently the caller is still left on the call but the on-hold wait music is stopped.
-- Executing [xx@fromvoipfone:4] Dial("SIP/sip-phone-0000007b", "SIP/xx@voipfone,,mhNCg") in new stack
== Using SIP RTP CoS mark 5
-- Called SIP/xx@voipfone
-- Started music on hold, class 'default', on channel 'SIP/sip-phone-0000007b'
> 0x7f6fc400c320 -- Strict RTP learning complete - Locking on source address xx
> 0x7f6f880063f0 -- Strict RTP learning after remote address set to: xx
-- SIP/voipfone-0000007c is making progress passing it to SIP/sip-phone-0000007b
> 0x7f6f880063f0 -- Strict RTP learning after remote address set to: xx
-- SIP/voipfone-0000007c answered SIP/sip-phone-0000007b
-- Stopped music on hold on SIP/sip-phone-0000007b
-- Channel SIP/voipfone-0000007c joined 'simple_bridge' basic-bridge <fd74ae46-a547-4088-9810-781a4d15e94d>
-- Channel SIP/sip-phone-0000007b joined 'simple_bridge' basic-bridge <fd74ae46-a547-4088-9810-781a4d15e94d>
-- Channel SIP/sip-phone-0000007b left 'simple_bridge' basic-bridge <fd74ae46-a547-4088-9810-781a4d15e94d>
-- Channel SIP/voipfone-0000007c left 'simple_bridge' basic-bridge <fd74ae46-a547-4088-9810-781a4d15e94d>
== Spawn extension (fromvoipfone, xx, 4) exited non-zero on 'SIP/sip-phone-0000007b'
When the log says ‘Stopped music on’ this is when the callee declines the incoming call. But as you can see both parties still join ‘simple_bridge’. The ‘left’ statements occur when the caller hangups.
Surely Dial should return if the callee declines?