<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 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Courier New";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
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=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>From <a href="http://lists.freeswitch.org/pipermail/freeswitch-users/2011-October/077209.html">http://lists.freeswitch.org/pipermail/freeswitch-users/2011-October/077209.html</a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>“if you want to control an incoming call (a call that hits an extension managed by freeswitch) you'll be better served by using a socket outbound connection. Off course this is from a design perspective, not because there are limitations when using an inbound connection.”<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Is he wrong?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Is there any documentation this way or the other?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Changing to outbound is really a last resort, as this would disallow me to just connect to any arbitrary freeswitch instance at will<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>But rather requires freeswitch having precise knowledge of my application<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>While im considering outbound, I see that I have in my event_socket file:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'><</span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white'>configuration</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white'>name</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>=</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>event_socket.conf</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white'>description</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>=</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>Socket Client</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>></span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> <</span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white'>settings</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>></span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> <</span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white'>param</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white'>name</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>=</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>nat-map</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white'>value</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>=</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>false</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>/></span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> <</span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white'>param</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white'>name</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>=</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>listen-ip</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white'>value</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>=</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>0.0.0.0</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>/></span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> <</span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white'>param</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white'>name</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>=</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>listen-port</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white'>value</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>=</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>8021</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>/></span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> <</span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white'>param</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white'>name</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>=</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>password</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> </span><span style='font-size:9.5pt;font-family:Consolas;color:red;background:white;mso-highlight:white'>value</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>=</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>mypass</span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'>"</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>/></span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> <!--</span><span style='font-size:9.5pt;font-family:Consolas;color:green;background:white;mso-highlight:white'> <param name="apply-inbound-acl" value="lan"/> </span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>--></span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'> </</span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white'>settings</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>></span><span style='font-size:9.5pt;font-family:Consolas;color:black;background:white;mso-highlight:white'><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'></</span><span style='font-size:9.5pt;font-family:Consolas;color:#A31515;background:white;mso-highlight:white'>configuration</span><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'>><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:9.5pt;font-family:Consolas;color:blue;background:white;mso-highlight:white'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:white;mso-highlight:white'>Could this be confusing freeswitch to think I’m using outbound?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#0F243E'>Sincerely,<o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#0F243E'>Yisroel M. Olewski <o:p></o:p></span></i></p><p class=MsoNormal><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#0F243E'>CEO<o:p></o:p></span></i></p><p class=MsoNormal align=center style='text-align:center'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=280 height=69 id="Picture_x0020_2" src="cid:image001.png@01CF02F9.D4409BF0"><o:p></o:p></span></p><p class=MsoNormal align=center style='text-align:center'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>+1 (718) 514-2721<o:p></o:p></span></p><p class=MsoNormal align=center style='text-align:center'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>+972 (52) 764-9971</span><span lang=HE dir=RTL style='font-size:11.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p></o:p></span></p><p class=MsoNormal align=center style='text-align:center'><b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Websites </span></b><b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>·</span></b><b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> CRM </span></b><b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>·</span></b><b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> ERP </span></b><b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>·</span></b><b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> Telephony </span></b><b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>·</span></b><b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> Inventory </span></b><b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>·</span></b><b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> Content Management</span></b><b><span lang=HE dir=RTL style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D'><o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Duvid Rottenberg [mailto:adrottenberg@gmail.com] <br><b>Sent:</b> Thursday, December 26, 2013 4:50 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] answer via .net esl is getting ignored<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal>If you are trying to handle incoming calls you probably will have to use outbound socket, otherwise Freeswitch will finish running the dialplan and hangup before your ESL client has a chance to send it any commands. As you can see from the log there are no dialplan matches found so FS responds with a 480. When using outbound mode you put the socket app in the dialplan so that FS knows to hand over the call handling to your ESL client.<o:p></o:p></p></div><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Thu, Dec 26, 2013 at 7:15 AM, Yisroel M. Olewski <<a href="mailto:yisroel@machshevet.com" target="_blank">yisroel@machshevet.com</a>> wrote:<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks fellows</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Sorry for the delay, we were a bit busy here lately</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I’m attaching the fs log. I don’t even see a the word “answer” there. </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>It seems fs is totally ignoring the incoming commands</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>if there’s a way to use inbound (which should be according to the docs) I’d rather not switch around the whole architecture just right now</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If there won’t be any other choice, I guess I’ll try that</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thank again</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#0F243E'>Sincerely,</span></i><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#0F243E'>Yisroel M. Olewski </span></i><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><i><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#0F243E'>CEO</span></i><o:p></o:p></p><p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><img border=0 width=280 height=69 id="_x0000_i1025" src="cid:image002.png@01CF02F9.D4409BF0"></span><o:p></o:p></p><p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="tel:%2B1%20%28718%29%20514-2721" target="_blank">+1 (718) 514-2721</a></span><o:p></o:p></p><p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><a href="tel:%2B972%20%2852%29%20764-9971" target="_blank">+972 (52) 764-9971</a></span><o:p></o:p></p><p class=MsoNormal align=center style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;text-align:center'><b><span style='font-size:10.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Websites · CRM · ERP · Telephony · Inventory · Content Management</span></b><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Duvid Rottenberg [mailto:<a href="mailto:adrottenberg@gmail.com" target="_blank">adrottenberg@gmail.com</a>] <br><b>Sent:</b> Tuesday, December 24, 2013 8:51 PM<br><b>To:</b> FreeSWITCH Users Help<br><b>Subject:</b> Re: [Freeswitch-users] answer via .net esl is getting ignored</span><o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Try using ESL Outbound mode, I am not sure why it would make a difference, but I have recently used outbound mode and I was able to answer the call. See the mod_event_socket wiki page and the sample code in the managed_esl project for more information.<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Duvid Rottenberg<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div></div><div><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'> <o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Tue, Dec 24, 2013 at 10:47 AM, Moishe Grunstein <<a href="mailto:max@nysolutions.com" target="_blank">max@nysolutions.com</a>> wrote:<o:p></o:p></p><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#1F497D'>What are you seeing in the logs?</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#1F497D'> </span><o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#1F497D'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399'>Thanks,</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399'> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399'>Moishe Grunstein</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399'>Tornado Computer Systems, Inc.</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399'><a href="tel:212.400.7650" target="_blank">212.400.7650</a> <a href="http://888.IPPBX.US" target="_blank">888.IPPBX.US</a><br></span><b><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#76923C'>Service Request Email: <a href="mailto:support@nysolutions.com" target="_blank">support@nysolutions.com</a> </span></b><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:7.5pt;font-family:"Verdana","sans-serif";color:#333399'>Polycom Certified VAR<br>Microsoft Small Business Specialist, Cisco SMB Select Certified</span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><a href="http://www.nysolutions.com/" target="_blank"><span style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#1F497D;text-decoration:none'><img border=0 width=147 height=68 id="_x0000_i1026" src="cid:image003.jpg@01CF02F9.D4409BF0" alt="cid:image001.jpg@01C72F94.9EE45D60"></span></a><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:8.0pt;color:#C0504D'>Computer Networking * Managed Services * IP Video Surveillance * Network Assessments * Web Solutions * Voice over IP * Disaster Recovery * Network Security * Site Surveys * CMS</span><o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='color:#1F497D'> </span><o:p></o:p></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>] <b>On Behalf Of </b>Yisroel M. Olewski<br><b>Sent:</b> Tuesday, December 24, 2013 4:23 AM<br><b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br><b>Subject:</b> [Freeswitch-users] answer via .net esl is getting ignored</span><o:p></o:p></p></div></div><div><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hello everyone<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>This is my first posting via the mailing list<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I’m trying my hand at freeswitch esl with .net<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I’ve managed to get a hold of all incoming events, but can’t seem to "pick up the phone"<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>my first goal is to pick up the phone and read out some text via tts<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I’ve scoured the web, tried everything I can find or think of but no luck<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>here’s my code<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span dir=RTL></span><span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span><span dir=RTL></span> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Private Sub winMain_Loaded(sender As Object, e As RoutedEventArgs) Handles Me.Loaded<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> ThreadPool.QueueUserWorkItem(New WaitCallback(Sub(stateInfo)<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> FreeSwitch = New ESLconnection("10.0.0.1", 8021, "mypass")<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Dim eslEvent = FreeSwitch.SendRecv("event plain ALL")<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> FreeSwitch.SendRecv("event plain DTMF")<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> If eslEvent IsNot Nothing Then<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> AddEvent(eslEvent)<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> While FreeSwitch.Connected<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> eslEvent = FreeSwitch.RecvEvent<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> AddEvent(eslEvent)<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> End While<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> End If<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> End Sub))<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> End Sub<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Private Sub AddEvent(e As ESLevent)<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Dim dd = TextCollection(e.Serialize(""), ": ", vbLf)<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Dim eventname = dd("event-name")<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> 'Dim uid = dd("Unique-ID")<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Dim uid = dd("Channel-Call-UUID")<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> If dd("Caller-Network-Addr") <> "" Then<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Dim dcx = DBEntities()<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Dim ses = dcx.Sessions.SingleOrDefault(Function(x) x.ServerCode = uid)<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Dim ChannelState = dd("Channel-State")<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Dim ChannelCallState = dd("Channel-Call-State").ToLower<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Select Case eventname<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Case "CHANNEL_STATE"<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> If ses Is Nothing Then<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> ses = New Session<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> dcx.Sessions.AddObject(ses)<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> End If<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> ses.CallerHost = dd("Caller-Network-Addr")<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> ses.CallerName = UrlDecoded(dd("Caller-Caller-ID-Name"))<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> ses.CallerPhone = dd("Caller-Caller-ID-Number")<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> ses.CallerUser = dd("Caller-Username")<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> ses.CalleeUser = dd("Caller-Destination-Number")<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> ses.ServerCode = uid<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> If {"cs_destroy", "cs_hangup"}.Contains(ChannelState) Then ses.HungUpOn = Now<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Case "CHANNEL_CALLSTATE"<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> If ChannelCallState = "ringing" Then<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Dim evn = FreeSwitch.Execute("answer", String.Empty, uid)<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Dim res = evn.Serialize("")<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> End If<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> Case "CHANNEL_DESTROY"<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> If ses IsNot Nothing Then ses.HungUpOn = Now<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> End Select<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> dcx.SaveChanges()<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> End If<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> End Sub<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>the answer line is getting reached, and the result is "+OK" but the phone still keeps ringing<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>please note that I’m unsure which is the correct uuid, but trying both of them gave me identical results<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>As per advise from Nuwan Wijerathne, I put the “answer” action in the dialplan, and tried just the playback from code (just a wav file), but the result is the same. Freeswitch ignores entirely my commands.<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>It picks up, and immediately hangs up because it has finished the whole dialplan<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I’d appreciate your help. I’m pretty new to freeswitch and esl<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Please advise<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><i><span style='color:#0F243E'>Sincerely,</span></i><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><i><span style='color:#0F243E'>ymo</span></i><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span dir=RTL></span><span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span><span dir=RTL></span> </span><o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div></div></div><p class=MsoNormal style='mso-margin-top-alt:auto;margin-bottom:12.0pt'><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p></div></div></div></div></div><p class=MsoNormal style='margin-bottom:12.0pt'><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br><a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br><br>Official FreeSWITCH Sites<br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br><a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br><a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br><br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><o:p></o:p></p></div><p class=MsoNormal><o:p> </o:p></p></div></div></body></html>