mod_event_socket with Dialplan Interaction
bgapi originate {variable=foo,baz=bar}sofia/external/user@pbx &socket(...) You set the variables you wish to influence the sip leg inside the {} /b On Wed, Nov 2, 2016 at 2:24 AM, Dimitry Nagorny <dimitry.nagorny@gmx.de> wrote:
Good morning all,
I have a quick question: Is it possible that a received command through mod_event_socket can be send through a (default) dialplan?
Like „bgapi originate /sofia/external/user@pbx &socket(...)“ goes before the INVITE through the dialplan to get details from DB.
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.
Best Regards *Dimitry Nagorny*
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com (50% Discount using code FreeSwitch50) http://www.freeswitchcookbook.com (50% Discount using code FreeSwitch50) https://www.gofundme.com/freeswitch_ubuntu Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Am 2. November 2016 15:18:05 MEZ, schrieb Brian West <brian@freeswitch.org>:
bgapi originate {variable=foo,baz=bar}sofia/external/user@pbx &socket(...)
You set the variables you wish to influence the sip leg inside the {}
/b
On Wed, Nov 2, 2016 at 2:24 AM, Dimitry Nagorny <dimitry.nagorny@gmx.de> wrote:
Good morning all,
I have a quick question: Is it possible that a received command through mod_event_socket can be send through a (default) dialplan?
Like „bgapi originate /sofia/external/user@pbx &socket(...)“ goes before the INVITE through the dialplan to get details from DB.
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.
Best Regards *Dimitry Nagorny*
_________________________________________________________________________
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com (50% Discount using code FreeSwitch50) http://www.freeswitchcookbook.com (50% Discount using code FreeSwitch50) https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
------------------------------------------------------------------------
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks you for your answer Brian but maybe my question was wrong. I try to do something like bgapi sofia/default/user &socket (...) but this throws Invalid Profile. So instead of external/gateway I want it to go to dialplan "default". Or something similar that gives me the opperrunity to open a DB connection for a recieved request on the event_socket. I can't grab this info from within the third party system which sends the request. Thanks Dimitry -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet.
Try using lua On Thu, Nov 3, 2016 at 2:47 AM Dimitry Nagorny <dimitry.nagorny@gmx.de> wrote:
Am 2. November 2016 15:18:05 MEZ, schrieb Brian West <brian@freeswitch.org
:
bgapi originate {variable=foo,baz=bar}sofia/external/user@pbx &socket(...)
You set the variables you wish to influence the sip leg inside the {}
/b
On Wed, Nov 2, 2016 at 2:24 AM, Dimitry Nagorny <dimitry.nagorny@gmx.de> wrote:
Good morning all,
I have a quick question: Is it possible that a received command through mod_event_socket can be send through a (default) dialplan?
Like „bgapi originate /sofia/external/user@pbx &socket(...)“ goes before the INVITE through the dialplan to get details from DB.
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.
Best Regards *Dimitry Nagorny*
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com (50% Discount using code FreeSwitch50) http://www.freeswitchcookbook.com (50% Discount using code FreeSwitch50) https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
------------------------------
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Thanks you for your answer Brian but maybe my question was wrong.
I try to do something like bgapi sofia/default/user &socket (...) but this throws Invalid Profile. So instead of external/gateway I want it to go to dialplan "default".
Or something similar that gives me the opperrunity to open a DB connection for a recieved request on the event_socket. I can't grab this info from within the third party system which sends the request.
Thanks
Dimitry -- Diese Nachricht wurde von meinem Android-Mobiltelefon mit K-9 Mail gesendet. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Brian West
-
David Villasmil
-
Dimitry Nagorny