Dial command, callee declines so caller left with connected call


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?

However log shows that call was answered.

–Satish Barot

What kind of device are you calling?

How are you declining the call?

I’m testing the configuration using a soft phone, and Dialing my mobile. I simply decline the call.

Unfortunately I’m unable to test using an actual phone and the number provided by voipfone due to my companies firewall configurations.

OK, so next question.

What happens if someone calls your mobile phone and you decline the call?

Does it go to Voicemail at your mobile phone provider?

I’m betting when you decline the call your PBX is being connected to Voicemail.

1 Like


Thanks for help. Yes, you are correct it does go to voicemail. So everything is working as expected. Again it was issues with firewalls blocking any sound.