<div dir="ltr">Hello,<br><br>We have a strange situation (asterisk 1.6.2.14), where we get a result for DIALSTATUS for BUSY and No-ANSWER, but nothing for CANCEL.<br><br>This is the (relevant) test dialplan:<br>--------------------------------<br>
[incoming-private]<br>exten => _X., n, Dial(SIP/1001,30)<br>exten => _X., n, NoOp(${DIALSTATUS})<br>exten => _X., n, Gosub(incoming-status,s-${DIALSTATUS},1)<br><br>[incoming-status]<br>exten => s-CANCEL,1, NoOp()<br>
exten => s-CANCEL,n, Return()<br>exten => s-NOANSWER,1, NoOp()<br>exten => s-NOANSWER,n, Return()<br>exten => s-BUSY,1, NoOp()<br>exten => s-BUSY,n, Return()<br><br><br>This is what we get on a BUSY call:<br>
-----------------------------------<br> -- Executing [11111111@incoming-private:3] Dial("SIP/Proxy-0000002b", "SIP/1001,50") in new stack<br> == Using SIP RTP CoS mark 5<br> == Using SIP VRTP CoS mark 6<br>
== Using UDPTL CoS mark 5<br> -- Called 1001<br> -- Got SIP response 486 "Busy Here" back from 10.0.0.1<br> -- SIP/1001-0000002c is busy<br> == Everyone is busy/congested at this time (1:1/0/0)<br> -- Executing [11111111@incoming-private:4] NoOp("SIP/Proxy-0000002b", "BUSY") in new stack<br>
-- Executing [11111111@incoming-private:5] Gosub("SIP/Proxy-0000002b", "incoming-status,s-BUSY,1") in new stack<br><br>This is what we get on a NO ANSWER call:<br>---------------------------------------<br>
-- Executing [11111111@incoming-private:3] Dial("SIP/Proxy-0000002f", "SIP/1001,30") in new stack<br> == Using SIP RTP CoS mark 5<br> == Using SIP VRTP CoS mark 6<br> == Using UDPTL CoS mark 5<br>
-- Called 1001<br> -- SIP/1001-00000030 is ringing<br> -- Nobody picked up in 30000 ms<br> -- Executing [11111111@incoming-private:4] NoOp("SIP/Proxy-0000002f", "NOANSWER") in new stack<br>
-- Executing [11111111@incoming-private:5] Gosub("SIP/Proxy-0000002f", "incoming-status,s-NOANSWER,1") in new stack<br><br>This is what we get on a CANCEL call:<br>-------------------------------------<br>
-- Executing [11111111@incoming-private:3] Dial("SIP/Proxy-00000031", "SIP/1001,30") in new stack<br> == Using SIP RTP CoS mark 5<br> == Using SIP VRTP CoS mark 6<br> == Using UDPTL CoS mark 5<br>
-- Called 1001<br> -- SIP/1001-00000032 is ringing<br> == Spawn extension (incoming-private, 11111111, 3) exited non-zero on 'SIP/Proxy-00000031'<br><br>There's no event indicating that a DIALSTATUS is generated and the call simply doesn't go to the next step in the dialplan. Unless I'm missing something, it seems to me that it might be a bug.<br>
<br>I would be happy to get feedback from other users of the DIALSTATUS value (or Digium), especially in the CANCEL scenario.<br><br>Thank you,<br><br>Michael<br></div>