<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px"><div>Even when using the U option just issuing the Answer does not seem to always work. I end up having to play a prompt of some sort to force the answer.. There has to be some kind of bug going on here.</div>
<div> </div>
<div>Thanks<br />
<br />
Bryant </div>
<div> </div>
<hr align="center" size="2" width="100%" />
<div><span style="font-family: tahoma,arial,sans-serif; font-size: 10pt;"><b>From</b>: "Bryant Zimmerman" <BryantZ@zktech.com><br />
<b>Sent</b>: Thursday, March 31, 2016 6:54 PM<br />
<b>To</b>: bryantz@zktech.com, "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com><br />
<b>Subject</b>: re: [asterisk-users] Asterisk 13 - Call Bridge issue.</span>
<div> </div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></div>
<span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<hr align="center" size="2" width="100%" /><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span>
<div>
<blockquote>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: tahoma,arial,sans-serif; font-size: 10pt;"><b>From</b>: "Bryant Zimmerman" <BryantZ@zktech.com><br />
<b>Sent</b>: Thursday, March 31, 2016 6:33 PM<br />
<b>To</b>: asterisk-users@lists.digium.com<br />
<b>Subject</b>: [asterisk-users] Asterisk 13 - Call Bridge issue.</span></span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">I have the following scenario.</span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Call file calls 1st party.</span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">When connected give called party option to connect to second party.</span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Issue Dial to second party. Caller answers and the two are bridged together.</span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">My issue is that 4 out of 5 calls fail to bridge the audio.</span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Am I missing something or is there some kind of bug? Here is my test dialplan </span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">;Dialer Base Code Files.<br />
;Variables are sent in from .call file<br />
[calluser-intake]<br />
exten => s,1,NoOp(Start Call Intake)<br />
exten => s,2,NoOp(Setup any vars)<br />
exten => s,n,Set(_g_pmtPath=/vapp/dialerprompts/)<br />
exten => s,n,NoOp(What is Path = ${g_pmtPath})<br />
exten => s,n,NoOp(Read Call File Vars)<br />
exten => s,n,NoOp(Dial To - ${l_DialTo})<br />
exten => s,n,NoOp(Proxy - Proxy.${l_Proxy})<br />
exten => s,n,NoOp(Carrier Trunk - ${l_Carrier})<br />
exten => s,n,Set(_l_CallerIDnum=${CALLERID(num)})<br />
exten => s,n,Set(CALLERID(num)=${g_SIPUser})<br />
exten => s,n,Dial(<a href="mailto:PJSIP/${l_DialTo}@proxy_${l_Proxy},30,b(dialer-header^s^1)G(dialer-playmsg^s^1">PJSIP/${l_DialTo}@proxy_${l_Proxy},30,b(dialer-header^s^1)G(dialer-playmsg^s^1</a>))</span></span></p>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">[dialer-header]<br />
exten => s,1,Set(PJSIP_HEADER(add,X-Carrier)=${l_Carrier})<br />
same => n,Set(PJSIP_HEADER(add,X-CallerID)=${l_CallerIDnum})<br />
same => n,NoOp(X-Carrier = ${PJSIP_HEADER(read,X-Carrier)})<br />
same => n,Set(CONNECTEDLINE(number,i)=vap_002)<br />
same => n,DumpChan(1)<br />
same => n,Return()</span></span></p>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">[dialer-playmsg]<br />
exten => s,1,Goto(hold,1)<br />
same => n,NoOp(Enter Play Message)<br />
same => n,NoOp(Path = ${g_pmtPath})<br />
same => n,SayAlpha(${g_SIPUser})<br />
same => n,BackGround(${g_pmtPath}Intro)<br />
same => n,WaitExten(60)</span></span></p>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">exten => 2,1,NoOp(Dial Through)<br />
same => n,Set(_l_CallerIDnum=6168310000)<br />
same => n,Set(_l_Carrier=0001)<br />
same => n,Set(l_DialTo=6167761066)<br />
same => n,Set(l_Proxy=002)<br />
same => n,Dial(<a href="mailto:PJSIP/${l_DialTo}@proxy_001,30,b(dialer-header^s^1">PJSIP/${l_DialTo}@proxy_001,30,b(dialer-header^s^1</a>))</span></span></p>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">exten => _X,1,NoOp(Digit Entry)<br />
exten => _X,n,NoOp(Log Response)<br />
exten => _X,n,Playback(${g_pmtPath}YouPressed)<br />
exten => _X,n,SayNumber(${EXTEN})</span></span></p>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">exten => hold,1,NoOp(Park Called)<br />
exten => hold,n,While($[1 < 5])<br />
exten => hold,n,Wait(90)<br />
exten => hold,n,EndWhile</span></span></p>
</div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Any ideas on why the media would not flowing after it sates they bridge has completed</span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Another point. If I use a b option in the second dial. to call another context on connect of the second call. I get audio played on that both caller and callee channels.</span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></span></div>
<p><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></p>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Thanks<br />
<br />
Bryant </span></span></div>
</blockquote>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Ok it appears that the channel is not answering when it bridges the two calls together. </span></span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">If I use the U option to gosub to a context to force an Answer() before the bridge then things seem to work. I also tried the lower case "a" option to force the answer and nothing happens with it appears to be ignored. .. So the U option with a gosub to an Answer seems to be the only way to get this to work...</span></span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">This seems like a bug. Should the called channel answer when a call is made with the Dial() function? Can anyone chime in on this one. </span></span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Note: Current systems are on </span>Asterisk 13.5.0 (So if this was a bug has it been fixed in the latest release.) I did not see anything in the change logs that I would attribute to this.</span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"> </span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Thanks </span></span></div>
<div><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;"><span style="font-family: Arial, Helvetica, Sans-Serif; font-size: 12px;">Bryant</span></span></div>
</div>
</div></span>