<html xmlns:v="urn:schemas-microsoft-com:vml" 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=us-ascii"><meta name=Generator content="Microsoft Word 12 (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";
color:#1F497D;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Texte de bulles Car";
margin:0cm;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:#1F497D;}
span.TextedebullesCar
{mso-style-name:"Texte de bulles Car";
mso-style-priority:99;
mso-style-link:"Texte de bulles";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hello,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I have developed an endpoint which I call X1. Its objective is sending audio to / receiving audio from an external system.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I originate a call, bridging extension 7550 with X1:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>bgapi originate <a href="mailto:%7borigination_caller_id_number=00000002%7dsofia/external/7550@192.168.1.200">{origination_caller_id_number=00000002}sofia/external/7550@192.168.1.200</a> &bridge(X1/00000002)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Extension 7550 is ringing and I answer it.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New"'>[...]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New"'>91407aa0-792a-4f10-bc4e-40d143dfc2e2 2017-11-27 14:44:42.971030 [DEBUG] switch_core_state_machine.c:643 (X1/83688055) State ROUTING going to sleep<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New"'>91407aa0-792a-4f10-bc4e-40d143dfc2e2 2017-11-27 14:44:42.971030 [DEBUG] switch_core_state_machine.c:584 (X1/83688055) Running State Change CS_CONSUME_MEDIA (Cur 2 Tot 4)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New"'>91407aa0-792a-4f10-bc4e-40d143dfc2e2 2017-11-27 14:44:42.971030 [DEBUG] switch_core_state_machine.c:662 (X1/83688055) State CONSUME_MEDIA<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New"'>91407aa0-792a-4f10-bc4e-40d143dfc2e2 2017-11-27 14:44:42.971030 [DEBUG] switch_core_state_machine.c:662 (X1/83688055) State CONSUME_MEDIA going to sleep<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New"'>2017-11-27 14:44:43.001033 [DEBUG] switch_rtp.c:7229 Correct audio ip/port confirmed.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Here the audio sent to FreeSwitch is perfectly reproduced at the ext. 7550, while one received is more or less broken (there are many missing frames).<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>I try to execute:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>switch_channel_t *channel = switch_core_session_get_channel(session);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>switch_channel_answer(channel);<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>... but it has no effect at all.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Exactly after 60s FreeSwitch hangs up.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New"'>91407aa0-792a-4f10-bc4e-40d143dfc2e2 2017-11-27 14:45:42.000933 [NOTICE] switch_ivr_originate.c:3605 Hangup X1/83688055 [CS_CONSUME_MEDIA] [NO_ANSWER]<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:8.0pt;font-family:"Courier New"'><o:p> </o:p></span></p><p class=MsoNormal><span lang=PL>What do I do wrong?<o:p></o:p></span></p><p class=MsoNormal><span lang=PL><o:p> </o:p></span></p><p class=MsoNormal><span lang=PL>May be I should originate a call to the extension 7550, then originate a call to my endpoint X1 and then bridge both?<o:p></o:p></span></p><p class=MsoNormal><span lang=PL><o:p> </o:p></span></p><p class=MsoNormal><span lang=PL>I'll appreciate very much any hint.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=PL>Adrian.</span><o:p></o:p></p></div></body></html>