Try using lua<br><div class="gmail_quote"><div dir="ltr">On Thu, Nov 3, 2016 at 2:47 AM Dimitry Nagorny &lt;<a href="mailto:dimitry.nagorny@gmx.de">dimitry.nagorny@gmx.de</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg"><div class="gmail_quote gmail_msg">Am 2. November 2016 15:18:05 MEZ, schrieb Brian West &lt;<a href="mailto:brian@freeswitch.org" class="gmail_msg" target="_blank">brian@freeswitch.org</a>&gt;:<blockquote class="gmail_quote gmail_msg" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr" class="gmail_msg"><span style="font-family:calibri,sans-serif;font-size:14.6667px" class="gmail_msg">bgapi originate {variable=foo,baz=bar}sofia/external/user@pbx &amp;socket(...)</span><br class="gmail_msg"><div class="gmail_msg"><span style="font-family:calibri,sans-serif;font-size:14.6667px" class="gmail_msg"><br class="gmail_msg"></span></div><div class="gmail_msg"><span style="font-family:calibri,sans-serif;font-size:14.6667px" class="gmail_msg">You set the variables you wish to influence the sip leg inside the {}</span></div><div class="gmail_msg"><span style="font-family:calibri,sans-serif;font-size:14.6667px" class="gmail_msg"><br class="gmail_msg"></span></div><div class="gmail_msg"><font face="calibri, sans-serif" class="gmail_msg"><span style="font-size:14.6667px" class="gmail_msg">/b</span></font></div></div><div class="gmail_extra gmail_msg"><br class="gmail_msg"><div class="gmail_quote gmail_msg">On Wed, Nov 2, 2016 at 2:24 AM, Dimitry Nagorny <span dir="ltr" class="gmail_msg">&lt;<a href="mailto:dimitry.nagorny@gmx.de" class="gmail_msg" target="_blank">dimitry.nagorny@gmx.de</a>&gt;</span> wrote:<br class="gmail_msg"><blockquote class="gmail_quote gmail_msg" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_msg"><div style="font-family:Verdana;font-size:12.0px" class="gmail_msg"><div class="gmail_msg">
<div class="m_5912037674900067519m_3849771658504750531_rp_S3 m_5912037674900067519m_3849771658504750531ms-font-weight-regular m_5912037674900067519m_3849771658504750531ms-font-color-neutralDark gmail_msg">
<div class="gmail_msg">
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0" class="gmail_msg"><span lang="de" class="gmail_msg"><font face="Calibri,sans-serif" size="2" class="gmail_msg"><span style="font-size:11pt" class="gmail_msg">Good morning all,</span></font></span></div>

<div style="margin:0" class="gmail_msg"><span lang="de" class="gmail_msg"><font face="Calibri,sans-serif" size="2" class="gmail_msg"><span style="font-size:11pt" class="gmail_msg"> </span></font></span></div>

<div style="margin:0" class="gmail_msg"><span lang="de" class="gmail_msg"><font face="Calibri,sans-serif" size="2" class="gmail_msg"><span style="font-size:11pt" class="gmail_msg">I have a quick question: Is it possible that a received command through mod_event_socket can be send through a (default) dialplan?</span></font></span></div>

<div style="margin:0" class="gmail_msg"><span lang="de" class="gmail_msg"><font face="Calibri,sans-serif" size="2" class="gmail_msg"><span style="font-size:11pt" class="gmail_msg"> </span></font></span></div>

<div style="margin:0" class="gmail_msg"><span lang="de" class="gmail_msg"><font face="Calibri,sans-serif" size="2" class="gmail_msg"><span style="font-size:11pt" class="gmail_msg">Like „bgapi originate /sofia/external/user@pbx &amp;socket(...)“ goes before the INVITE through the dialplan to get details from DB.</span></font></span></div>

<div style="margin:0" class="gmail_msg"><span lang="de" class="gmail_msg"><font face="Calibri,sans-serif" size="2" class="gmail_msg"><span style="font-size:11pt" class="gmail_msg"> </span></font></span></div>

<div style="margin:0" class="gmail_msg"><span lang="de" class="gmail_msg"><font face="Calibri,sans-serif" size="2" class="gmail_msg"><span style="font-size:11pt" class="gmail_msg">Why I want this? I want to enrich the sip of the INVITE with some additional information. I already searched the wiki/Confluence and couldn’t find an answer.</span></font></span></div>

<div style="margin:0" class="gmail_msg"><span lang="de" class="gmail_msg"><font face="Calibri,sans-serif" size="2" class="gmail_msg"><span style="font-size:11pt" class="gmail_msg"> </span></font></span></div>

<div style="margin:0" class="gmail_msg"><span lang="de" class="gmail_msg"><font face="Calibri,sans-serif" size="2" class="gmail_msg"><span style="font-size:11pt" class="gmail_msg"> </span></font></span></div>

<div style="margin:0" class="gmail_msg"><span lang="de" class="gmail_msg"><font face="Calibri,sans-serif" size="2" class="gmail_msg"><span style="font-size:11pt" class="gmail_msg">Best Regards</span></font></span></div><span class="m_5912037674900067519HOEnZb gmail_msg"><font color="#888888" class="gmail_msg">

</font><div style="margin:0" class="gmail_msg"><font color="#888888" class="gmail_msg"><span lang="de" class="gmail_msg"><font face="Calibri,sans-serif" size="2" class="gmail_msg"><span style="font-size:11pt" class="gmail_msg"><b class="gmail_msg">Dimitry Nagorny</b></span></font></span></font></div>
</span></div>
</div>
</div>
</div>
</div></div></div>

<br class="gmail_msg">_________________________________________________________________________<br class="gmail_msg">
Professional FreeSWITCH Consulting Services:<br class="gmail_msg">
<a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg">
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg">
<br class="gmail_msg">
Official FreeSWITCH Sites<br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
<a href="http://confluence.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg">
<a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
<br class="gmail_msg">
FreeSWITCH-users mailing list<br class="gmail_msg">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg"></blockquote></div><br class="gmail_msg"><br clear="all" class="gmail_msg"><div class="gmail_msg"><br class="gmail_msg"></div>-- <br class="gmail_msg"><div class="m_5912037674900067519gmail_signature gmail_msg" data-smartmail="gmail_signature"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg"><div class="gmail_msg"><div dir="ltr" class="gmail_msg">







<p class="gmail_msg"><font face="courier new, monospace" class="gmail_msg"><b class="gmail_msg"><i class="gmail_msg"><font size="4" class="gmail_msg">Brian West</font></i></b><br class="gmail_msg"><span style="font-size:x-small" class="gmail_msg"><a href="mailto:brian@freeswitch.org" class="gmail_msg" target="_blank">brian@freeswitch.org</a></span></font></p>
<p class="gmail_msg"><font size="1" face="courier new, monospace" class="gmail_msg"><img src="http://billing.freeswitch.org/templates/default/img/whmcslogo.png" class="gmail_msg"><br class="gmail_msg"></font></p><p class="gmail_msg"><font size="2" face="monospace, monospace" class="gmail_msg"><b class="gmail_msg"><i class="gmail_msg">Twitter: @FreeSWITCH , @briankwest</i></b><br class="gmail_msg"><a href="http://www.freeswitchbook.com" class="gmail_msg" target="_blank">http://www.freeswitchbook.com</a> (50% Discount using code FreeSwitch50)<br class="gmail_msg"><a href="http://www.freeswitchcookbook.com" class="gmail_msg" target="_blank">http://www.freeswitchcookbook.com</a> </font><span style="font-family:monospace,monospace;font-size:small" class="gmail_msg">(50% Discount using code FreeSwitch50)</span><font size="2" face="monospace, monospace" class="gmail_msg"><br class="gmail_msg"></font><a href="https://www.gofundme.com/freeswitch_ubuntu" style="font-size:12.8px" class="gmail_msg" target="_blank"><font face="monospace, monospace" class="gmail_msg">https://www.gofundme.com/freeswitch_ubuntu</font></a></p><p class="gmail_msg"><font face="monospace, monospace" class="gmail_msg">Got Bugs? Report them <a href="https://freeswitch.org/jira" class="gmail_msg" target="_blank">here</a>! | Reddit: <a href="https://www.reddit.com/r/freeswitch" class="gmail_msg" target="_blank">/r/freeswitch</a></font></p>
<p class="gmail_msg"><font size="2" face="monospace, monospace" class="gmail_msg"><b class="gmail_msg">T:</b>+19184209001 | <b class="gmail_msg">F:</b>+19184209002 | <b class="gmail_msg">M:</b>+1918424WEST (9378)<br class="gmail_msg"><b class="gmail_msg">iNUM:</b>+883 5100 1420 9001 | <b class="gmail_msg">ISN:</b>410*543 | <b class="gmail_msg">Skype:</b>briankwest</font></p></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>
<p style="margin-top:2.5em;margin-bottom:1em;border-bottom:1px solid #000" class="gmail_msg"></p><pre class="m_5912037674900067519k9mail gmail_msg"><hr class="gmail_msg"><br class="gmail_msg">Professional FreeSWITCH Consulting Services: <br class="gmail_msg"><a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg"><a href="http://www.freeswitchsolutions.com" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg"><br class="gmail_msg">Official FreeSWITCH Sites<br class="gmail_msg"><a href="http://www.freeswitch.org" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg"><a href="http://confluence.freeswitch.org" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg"><a href="http://www.cluecon.com" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg"><br class="gmail_msg">FreeSWITCH-users mailing list<br class="gmail_msg"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg"><a href="http://www.freeswitch.org" class="gmail_msg" target="_blank">http://www.freeswitch.org</a></pre></blockquote></div><br clear="all" class="gmail_msg"></div><div class="gmail_msg">Thanks you for your answer Brian but maybe my question was wrong.<br class="gmail_msg">
<br class="gmail_msg">
I try to do something like <br class="gmail_msg">
bgapi sofia/default/user &amp;socket (...)<br class="gmail_msg">
but this throws Invalid Profile. So instead of external/gateway I want it to go to dialplan &quot;default&quot;. <br class="gmail_msg">
<br class="gmail_msg">
Or something similar that gives me the opperrunity to open a DB connection for a recieved request on the event_socket. I can&#39;t grab this info from within the third party system which sends the request.<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
Thanks</div><div class="gmail_msg"><br class="gmail_msg">
Dimitry<br class="gmail_msg">
-- <br class="gmail_msg">
Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.</div>_________________________________________________________________________<br class="gmail_msg">
Professional FreeSWITCH Consulting Services:<br class="gmail_msg">
<a href="mailto:consulting@freeswitch.org" class="gmail_msg" target="_blank">consulting@freeswitch.org</a><br class="gmail_msg">
<a href="http://www.freeswitchsolutions.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitchsolutions.com</a><br class="gmail_msg">
<br class="gmail_msg">
Official FreeSWITCH Sites<br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a><br class="gmail_msg">
<a href="http://confluence.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://confluence.freeswitch.org</a><br class="gmail_msg">
<a href="http://www.cluecon.com" rel="noreferrer" class="gmail_msg" target="_blank">http://www.cluecon.com</a><br class="gmail_msg">
<br class="gmail_msg">
FreeSWITCH-users mailing list<br class="gmail_msg">
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" class="gmail_msg" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br class="gmail_msg">
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br class="gmail_msg">
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br class="gmail_msg">
<a href="http://www.freeswitch.org" rel="noreferrer" class="gmail_msg" target="_blank">http://www.freeswitch.org</a></blockquote></div>