<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'><span style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;">Hi.</span><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;"><span>We call an extension called "netcat" which is configured in this way:</span></div><div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;"><div>&lt;extension name="netcat"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="context" expression="public"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number" expression="^netcat$"&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="log" data="INFO extension netcat"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;action application="socket" data="127.0.0.1:8085 async full"/&gt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &lt;/condition&gt;</div><div>&lt;/extension&gt;</div></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;">The inbound call is correctly routed to a netcat socket listening on localhost:8085.</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;">When I get the socket connect, I issue the following commands:</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;">connect</div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;">...</div><div><div><font face="Arial">sendmsg</font></div><div><font face="Arial">call-command: execute</font></div><div><font face="Arial">execute-app-name: answer</font></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;">...</div></div><div style="color: rgb(0, 0, 0); font-family: Arial; font-size: 12pt;"><br></div><div><div><font face="Arial">sendmsg</font></div><div><font face="Arial">call-command: execute</font></div><div><font face="Arial">execute-app-name: bridge</font></div><div><font face="Arial">execute-app-arg: sofia/external/external_number@external_domain</font></div><div><font face="Arial"><br></font></div><div><font face="Arial">The bridge is done correctly but the media stream is not bidirectional:</font></div><div><ul><li><font face="Arial">Aleg can listen Bleg</font></li><li><font face="Arial">Bleg can speak but doesn't hear Aleg</font></li></ul><div><font face="Arial">The strange thing is that if I put on hold and unhold Aleg with:</font></div></div><div><font face="Arial"><div><br></div><div>sendmsg</div><div>call-command: execute</div><div>execute-app-name: hold</div><div>..</div><div><div>sendmsg&nbsp;</div><div>call-command: execute</div><div>execute-app-name: unhold</div><div><br></div></div><div>the media stream is recovered correctly: Aleg and Bleg can speak/listen each other.</div><div><br></div><div>I attach pastebin for completeness:</div><div><ul><li>Freeswitch log: http://pastebin.freeswitch.org/pastebin.php?dl=20656</li><li>Outbound socket log:&nbsp;http://pastebin.freeswitch.org/pastebin.php?dl=20657</li></ul></div><div><br></div><div>Thank you for your help.</div><div>Denis Gasparin</div></font></div></div></div></div></body></html>