<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><extension name="netcat"></div><div> <condition field="context" expression="public"/></div><div> <condition field="destination_number" expression="^netcat$"></div><div> <action application="log" data="INFO extension netcat"/></div><div> <action application="socket" data="127.0.0.1:8085 async full"/></div><div> </condition></div><div></extension></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 </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: 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>