Hi Guys,<div><br></div><div>I am calling out 416-999-1111 on Channel 1 of PRI and then calling 416-999-2222 on Channel 2 of PRI. When the two channels are going to be ZAP native bridged, both channels hangup and CLI show PRI cause (16).</div>
<div><br></div><div>Asterisk Verbose <b>(Channel 1 already connected to party)</b>:</div><div><div>    -- Requested transfer capability: 0x00 - SPEECH</div><div>    -- Called g0/4169992222</div><div>    -- Zap/2-1 is proceeding passing it to Zap/1-1</div>
<div>    -- Zap/2-1 is ringing</div><div>    -- Zap/2-1 answered Zap/1-1</div><div>    -- Native bridging Zap/1-1 and Zap/2-1</div><div>    -- Channel 0/1, span 1 got hangup request, cause 16</div><div>    -- Hungup &#39;Zap/2-1&#39;</div>
<div>  == Spawn extension (zap-bridge, s, 8) exited non-zero on &#39;Zap/1-1&#39;</div><div>    -- Hungup &#39;Zap/1-1&#39;</div><div><br></div><div>Here is PRI debug, starting just before Channel two is connected until both channels are disconnected <b>(maybe FACILITY 98 is of interest?!)</b>:</div>
<div><br></div></div><div><div>&lt; Message type: CONNECT (7)</div><div>q931.c:3626 q931_receive: call 32865 on channel 2 enters state 10 (Active)</div><div>&gt; Protocol Discriminator: Q.931 (8)  len=5</div><div>&gt; Call Ref: len= 2 (reference 97/0x61) (Originator)</div>
<div>&gt; Message type: CONNECT ACKNOWLEDGE (15)</div><div>    -- Zap/2-1 answered Zap/1-1</div><div>    -- Native bridging Zap/1-1 and Zap/2-1</div><div>&gt; Protocol Discriminator: Q.931 (8)  len=27</div><div>&gt; Call Ref: len= 2 (reference 96/0x60) (Originator)</div>
<div>&gt; Message type: FACILITY (98)</div><div>&gt; [1c 14 91 a1 11 02 01 06 06 07 2a 86 48 ce 15 00 08 30 03 02 01 61]</div><div>&gt; Facility (len=22, codeset=0) [ 0x91, 0xA1, 0x11, 0x02, 0x01, 0x06, 0x06, 0x07, &#39;*&#39;, 0x86, &#39;H&#39;, 0xCE, 0x15, 0x00, 0x08, &#39;0&#39;, 0x03, 0x02, 0x01, &#39;a&#39; ]</div>
<div>PROTOCOL 11</div><div>A1 0011 (CONTEXT SPECIFIC [1])</div><div>  02 0001 06 (INTEGER: 6)</div><div>  06 0007 2A 86 48 CE 15 00 08 (OBJECTIDENTIFIER: 2a 86 48 ce 15 00 08)</div><div>  30 0003 (SEQUENCE)</div><div>    02 0001 61 (INTEGER: 97)</div>
<div>&lt; Protocol Discriminator: Q.931 (8)  len=9</div><div>&lt; Call Ref: len= 2 (reference 96/0x60) (Terminator)</div><div>&lt; Message type: DISCONNECT (69)</div><div>&lt; [08 02 80 90]</div><div>&lt; Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: User (0)</div>
<div>&lt;                  Ext: 1  Cause: Normal Clearing (16), class = Normal Event (1) ]</div><div>-- Processing IE 8 (cs0, Cause)</div><div>q931.c:3826 q931_receive: call 32864 on channel 1 enters state 12 (Disconnect Indication)</div>
<div>    -- Channel 0/1, span 1 got hangup request, cause 16</div><div>NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Active, peerstate Connect Request</div><div>q931.c:3015 q931_disconnect: call 32865 on channel 2 enters state 11 (Disconnect Request)</div>
<div>&gt; Protocol Discriminator: Q.931 (8)  len=9</div><div>&gt; Call Ref: len= 2 (reference 97/0x61) (Originator)</div><div>&gt; Message type: DISCONNECT (69)</div><div>&gt; [08 02 81 90]</div><div>&gt; Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Private network serving the local user (1)</div>
<div>&gt;                  Ext: 1  Cause: Normal Clearing (16), class = Normal Event (1) ]</div><div><div>NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Disconnect Indication, peerstate Disconnect Request</div><div>q931.c:2967 q931_release: call 32864 on channel 1 enters state 19 (Release Request)</div>
<div>&gt; Protocol Discriminator: Q.931 (8)  len=9</div><div>&gt; Call Ref: len= 2 (reference 96/0x60) (Originator)</div><div>&gt; Message type: RELEASE (77)</div><div>&gt; [08 02 81 90]</div><div>&gt; Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Private network serving the local user (1)</div>
<div>&gt;                  Ext: 1  Cause: Normal Clearing (16), class = Normal Event (1) ]</div><div>    -- Hungup &#39;Zap/1-1&#39;</div><div>&lt; Protocol Discriminator: Q.931 (8)  len=5</div><div>&lt; Call Ref: len= 2 (reference 96/0x60) (Terminator)</div>
<div>&lt; Message type: RELEASE COMPLETE (90)</div><div>q931.c:3766 q931_receive: call 32864 on channel 1 enters state 0 (Null)</div><div>NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null</div><div>NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null</div>
<div>&lt; Protocol Discriminator: Q.931 (8)  len=5</div><div>&lt; Call Ref: len= 2 (reference 97/0x61) (Terminator)</div><div>&lt; Message type: RELEASE (77)</div><div>q931.c:3801 q931_receive: call 32865 on channel 2 enters state 0 (Null)</div>
<div>NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Release Request</div><div>&gt; Protocol Discriminator: Q.931 (8)  len=9</div><div>&gt; Call Ref: len= 2 (reference 97/0x61) (Originator)</div><div>&gt; Message type: RELEASE COMPLETE (90)</div>
<div>&gt; [08 02 81 90]</div><div>&gt; Cause (len= 4) [ Ext: 1  Coding: CCITT (ITU) standard (0)  Spare: 0  Location: Private network serving the local user (1)</div><div>&gt;                  Ext: 1  Cause: Normal Clearing (16), class = Normal Event (1) ]</div>
<div>NEW_HANGUP DEBUG: Calling q931_hangup, ourstate Null, peerstate Null</div><div>NEW_HANGUP DEBUG: Destroying the call, ourstate Null, peerstate Null</div></div></div><div><br></div><div><br></div><div>System Info:</div>
<div><b>Bell Canada PRI</b></div><div><b>Asterisk 1.4.21.2 </b></div><div><b>Lib PRI 1.4.10</b></div><div><br></div><div>Is this my patch?</div><div><a href="https://issues.asterisk.org/view.php?id=7494">https://issues.asterisk.org/view.php?id=7494</a></div>
<div><br></div><div><br></div><div>Thanks,</div><div>Bruce</div>