Is a normal behavior for Asterisk to send <Reason: SIP;cause=200;text="Call completed elsewhere"> for unanswered calls? For example when I’m calling the Queue application with the following parameters:
Queue(“109,rtC,15”)
Asterisk is sending an INVITE to all members and if the caller is dropping the call, then Asterisk is sending Cancel with <Reason: SIP;cause=200;text=“Call completed elsewhere”> to all members, even if that call wasn’t answered at all:
-- Called SIP/11
-- SIP/IE-11-0000bf55 connected line has changed. Saving it until answer for
-- SIP/IE-11-0000bf55 is ringing
== Spawn extension (macro-Queue, s, 23) exited non-zero on '' in macro 'Queue'
Shouldn’t Asterisk send just Cancel without any reason in case if the call wasn’t answered by any member from the queue?
Ah, your initial information made it seem that way. Nothing else springs to mind, but I would suggest in the future providing full information and log at the start to provide a clearer picture.
I suspect it is done that way to stop people complaining about missed calls being reported on the phone, given that the queue system can call and cancel several times before successfully delivering a call.
its an option available to queues as well as ring groups in freepbx
for example if a queue call rang a phone but that phone didn’t answer the call however another queue member did, no missed call is displayed (the phone needs to support this as well)
Yes, I agree, that’s normal behavior when the call is answered by any of the members. But what if the call is coming into the queue - and none of the members are answering that call? This is a missed call, and in a normal case, I suppose that Asterisk should just send CANCEL without any reason. Shouldn’t?
Yes, that’s true. This option is set already <Queue(“109,rtC,15”)>, and Asterisk indeed is sending “Call completed elsewhere” header but the problem is that he is sending this header for all calls, no matter are they answered or not, I was expected to receive CANCEL with “Call completed elsewhere” just for answered calls. For abandoned calls, I expected to get a CANCEL message without a reason.