<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-IN link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In case of issue manager event of BridgeDestroy does not come and as seen it never enters the destroy_bridge() function .</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>[Feb 20 15:33:07] DEBUG[25464] http.c: HTTP Request URI is /ari/bridges/1029<br>[Feb 20 15:33:07] DEBUG[25464] http.c: match request [ari/bridges/1029] with handler [httpstatus] len 10<br>[Feb 20 15:33:07] DEBUG[25464] http.c: match request [ari/bridges/1029] with handler [phoneprov] len 9<br>[Feb 20 15:33:07] DEBUG[25464] http.c: match request [ari/bridges/1029] with handler [static] len 6<br>[Feb 20 15:33:07] DEBUG[25464] http.c: match request [ari/bridges/1029] with handler [ari] len 3<br>[Feb 20 15:33:07] DEBUG[25464] http.c: Match made with [ari]<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c: Finding handler for bridges/1029<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c:   Finding handler for bridges<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c:         Checking ari applications:  Didn't match bridges<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c:         Checking ari deviceStates:  Didn't match bridges<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c:         Checking ari asterisk:  Didn't match bridges<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c:         Checking ari recordings:  Didn't match bridges<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c:         Checking ari sounds:  Didn't match bridges<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c:         Checking ari endpoints:  Didn't match bridges<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c:         Checking ari events:  Didn't match bridges<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c:         Checking ari playbacks:  Didn't match bridges<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c:         Checking ari bridges:  Explicit match with bridges<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c:   Finding handler for 1029<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c:         Checking bridges bridgeId:  Matched wildcard.<br>[Feb 20 15:33:07] DEBUG[25464] res_ari.c:   No explicit handler found for 1029.  Using wildcard bridgeId.<br>[Feb 20 15:33:07] DEBUG[25464] bridge.c: Bridge 1029: telling all channels to leave the party<br>[Feb 20 15:33:07] DEBUG[25464] bridge.c: Bridge 1029: dissolving bridge with cause 16(Normal Clearing)<br>[Feb 20 15:33:07] DEBUG[25464] bridge.c: Bridge 1029: queueing action type:13 sub:1001</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In case where it is successfully deleted </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>[Feb 20 15:34:30] DEBUG[29018] bridge.c: Bridge 1013: telling all channels to leave the party</p><p class=MsoNormal>[Feb 20 15:34:30] DEBUG[29018] bridge.c: Bridge 1013: dissolving bridge with cause 16(Normal Clearing)</p><p class=MsoNormal>[Feb 20 15:34:30] DEBUG[29018] bridge.c: Bridge 1013: queueing action type:13 sub:1001</p><p class=MsoNormal>[Feb 20 15:34:30] DEBUG[4070][C-000019bf] bridge.c: Bridge 1013: actually destroying stasis bridge, nobody wants it anymore</p><p class=MsoNormal>[Feb 20 15:34:30] DEBUG[29018] http.c: HTTP keeping session open.  status_code:204</p><p class=MsoNormal>[Feb 20 15:34:30] DEBUG[4070][C-000019bf] bridge.c: Bridge 1013: calling stasis bridge destructor</p><p class=MsoNormal>[Feb 20 15:34:30] DEBUG[4070][C-000019bf] bridge.c: Bridge 1013: calling simple_bridge technology stop</p><p class=MsoNormal>[Feb 20 15:34:30] DEBUG[4070][C-000019bf] bridge.c: Bridge 1013: calling simple_bridge technology destructor</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Regards,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Abhay Gupta<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal style='border:none;padding:0cm'><b>From: </b><a href="mailto:jcolp@sangoma.com">Joshua C. Colp</a><br><b>Sent: </b>19 February 2020 19:46<br><b>To: </b><a href="mailto:asterisk-dev@lists.digium.com">Asterisk Developers Mailing List</a><br><b>Subject: </b>Re: [asterisk-dev] Bridge not in Stasis application</p></div><p class=MsoNormal><o:p> </o:p></p><div><div><p class=MsoNormal>On Wed, Feb 19, 2020 at 10:08 AM Abhay Gupta <<a href="mailto:abhay@avissol.com">abhay@avissol.com</a>> wrote:</p></div><div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'>Hi,</p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'> </p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'>We are getting a problem where bridge get shows the bridge but on delete gives the message “Bridge not in Stasis application” and we cannot add any channels to the bridge .</p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'> </p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'>But when we issue the POST command again to create the bridge then it is successfully created  & we are able to successfully delete it . The logs are shown here :-</p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'> </p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'><span style='color:red'>Step 1:- try to delete an extension</span> <br><br> curl -X DELETE <a href="http://192.168.1.250:8088/ari/bridges/1014?api_key=asterisk:asterisk" target="_blank">http://192.168.1.250:8088/ari/bridges/1014?api_key=asterisk:asterisk</a><br>{"message":"Bridge not in Stasis application"}<br><br><span style='color:red'>Step 2:- try to check the extension </span><br><br>curl -X GET <a href="http://192.168.1.250:8088/ari/bridges/1014?api_key=asterisk:asterisk" target="_blank">http://192.168.1.250:8088/ari/bridges/1014?api_key=asterisk:asterisk</a><br>{"id":"1014","technology":"simple_bridge","bridge_type":"mixing","bridge_class":"stasis","creator":"Stasis","name":"","channels":[],"creationtime":"2020-02-18T09:30:59.528+0530","video_mode":"talker"}<br><br><span style='color:red'>Step 3:- try to add/create an extension <br></span><br>curl -X POST <a href="http://192.168.1.250:8088/ari/bridges/1014?api_key=asterisk:asterisk" target="_blank">http://192.168.1.250:8088/ari/bridges/1014?api_key=asterisk:asterisk</a><br>{"id":"1014","technology":"simple_bridge","bridge_type":"mixing","bridge_class":"stasis","creator":"Stasis","name":"","channels":[],"creationtime":"2020-02-19T17:37:14.624+0530","video_mode":"talker"}<br><br><span style='color:red'>Step 4:- try to delete extension after POST extension </span><br><br> curl -X DELETE <a href="http://192.168.1.250:8088/ari/bridges/1014?api_key=asterisk:asterisk" target="_blank">http://192.168.1.250:8088/ari/bridges/1014?api_key=asterisk:asterisk</a><br><br><span style='color:red'>Step 5:- try to check extension after delete extension </span><br><br>curl -X GET <a href="http://192.168.1.250:8088/ari/bridges/1014?api_key=asterisk:asterisk" target="_blank">http://192.168.1.250:8088/ari/bridges/1014?api_key=asterisk:asterisk</a><br>{"message":"Bridge not found"}</p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'> </p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:9.6pt'>I am not able to find the sequence of events that lead to this issue .</p></div></div></blockquote><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>You'd need to examine the Asterisk log with debug on to see the specific execution flow and when things are occurring and why. That would narrow down the scenario and what is going on. </p></div></div><div><p class=MsoNormal><o:p> </o:p></p></div><p class=MsoNormal>-- </p><div><div><div><div><div><div><div><div><div><div><p class=MsoNormal><span style='font-family:"Tahoma",sans-serif;color:#073763'>Joshua C. Colp</span><span style='font-family:"Tahoma",sans-serif'><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Tahoma",sans-serif;color:#073763'>Asterisk Technical Lead</span><span style='font-family:"Tahoma",sans-serif'><o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-family:"Tahoma",sans-serif;color:#073763'>Sangoma Technologies</span><span style='font-family:"Tahoma",sans-serif'><o:p></o:p></span></p></div></div></div></div></div></div></div></div></div></div></div><p class=MsoNormal><span style='font-family:"Tahoma",sans-serif;color:#073763'>Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></span><span style='font-family:"Tahoma",sans-serif'><o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>