<div dir="ltr"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div style="font-size:12.8px">I am using outbound socket in dailplan as in <a href="https://wiki.freeswitch.org/wiki/Event_socket_outbound#Examples" target="_blank">https://wiki.freeswitch.org/wiki/Event_socket_outbound#Examples</a></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">After issuing a connect\n\n, I have tried getvar.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">getvar only returns value if I give a defined variable such</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">getvar sip_contact_host\n\n<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">which returns</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>Content-Type: command/reply</div><div>Reply-Text: 192.168.2.82</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">If I try to set a variable: </div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><pre style="white-space:pre-wrap">sendmsg
call-command: set
execute-app-name: foo=bar</pre></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">getvar foo</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">returns<br></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><div>Content-Type: command/reply</div><div>Reply-Text: -ERR command not found</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><br></div><span style="font-size:12.8px">Thank you,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Valter</div></div></div></div></div>
</div>