Never tried it from a dialplan although I'm sure it should work. But you should be able to do it through Lua etc.<br><br>Maybe you could apply a quick patch to originate in mod_commands to log the arguments it's being passed - perhaps it's being mangled somehow.<br>
<br>-Steve<br><br><br><div class="gmail_quote">On 21 July 2011 23:47, Kurtis Heimerl <span dir="ltr"><<a href="mailto:kheimerl@cs.berkeley.edu">kheimerl@cs.berkeley.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Unfortunately, I am not. I'm working on a system that causes dialplan<br>
actions when a chat is received by FS. That's what's going on here,<br>
basically. I want someone to text 9199 and have FS immediately call<br>
them back. I think "originate" is the right way to do that, as I need<br>
to create a brand new session, not bridge to an existing one.<br>
<br>
Anyhow, any other ideas on why this isn't working?<br>
<div><div></div><div class="h5"><br>
On Thu, Jul 21, 2011 at 1:23 AM, Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:<br>
> Are you trying to join the 2 calls together? If so, use bridge:<br>
> <a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge</a><br>
><br>
> -Steve<br>
><br>
><br>
> On 21 July 2011 07:37, Kurtis Heimerl <<a href="mailto:kheimerl@cs.berkeley.edu">kheimerl@cs.berkeley.edu</a>> wrote:<br>
>><br>
>> I'm now having a similar problem with using "originate" to create a<br>
>> new call inside a dialplan. This one is particularly perplexing (and<br>
>> small enough not to warrant pastebin)<br>
>><br>
>> Here's the important bits of the dialplan:<br>
>> <action application="log" data="(user/${username}<br>
>> ${destination_number})"/><br>
>> <action application="set"<br>
>> data="api_result=${originate(user/${username}<br>
>> ${destination_number})}"/><br>
>><br>
>> and the log output<br>
>> EXECUTE 9199 log((user/<a href="mailto:1304@192.168.1.144">1304@192.168.1.144</a> 9199))<br>
>> 2011-07-20 23:17:12.955419 [DEBUG] mod_dptools.c:1202 9199)<br>
>> EXECUTE 9199 set(api_result=-USAGE <call url><br>
>> <exten>|&<application_name>(<app_args>) [<dialplan>] [<context>]<br>
>> [<cid_name>] [<cid_num>] [<timeout_sec>]<br>
>> )<br>
>><br>
>> So it's somehow mangling the originate commands. If I run the<br>
>> originate command directly (with the arguments logged!) it works just<br>
>> fine.<br>
>> originate user/<a href="mailto:1304@192.168.1.144">1304@192.168.1.144</a> 9199<br>
>><br>
>> What am I missing here? This seems so simple... but I'm at my wit's end.<br>
>><br>
>> Thanks for any direction in advance!<br>
>><br>
>><br>
>> On Wed, Jul 20, 2011 at 7:11 PM, Kurtis Heimerl<br>
>> <<a href="mailto:kheimerl@cs.berkeley.edu">kheimerl@cs.berkeley.edu</a>> wrote:<br>
>> > Exactly what I was looking for. Thanks!<br>
>> ><br>
>> > On Wed, Jul 20, 2011 at 1:21 AM, Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>><br>
>> > wrote:<br>
>> >> Kurtis,<br>
>> >><br>
>> >> *Any* api can be run from the dialplan. It's just a slightly different<br>
>> >> syntax - the link Francois gave you will show you how.<br>
>> >><br>
>> >> Steve on iPhone<br>
>> >><br>
>> >> On 20 Jul 2011, at 09:14, François Delawarde<br>
>> >> <<a href="mailto:fdelawarde@wirelessmundi.com">fdelawarde@wirelessmundi.com</a>> wrote:<br>
>> >><br>
>> >>> Hi,<br>
>> >>><br>
>> >>> Take a look at:<br>
>> >>> <a href="http://wiki.freeswitch.org/wiki/Mod_commands#From_the_Dialplan" target="_blank">http://wiki.freeswitch.org/wiki/Mod_commands#From_the_Dialplan</a><br>
>> >>><br>
>> >>><br>
>> >>> François.<br>
>> >>><br>
>> >>> On Tue, 2011-07-19 at 23:00 -0700, Kurtis Heimerl wrote:<br>
>> >>>> I feel somewhat embarrassed, but I can't figure out how to cause a<br>
>> >>>> chat event to go off from the dialplan. I've tried:<br>
>> >>>><br>
>> >>>> <action application="chat"<br>
>> >>>><br>
>> >>>> data="sip|${username}|${destination_number}@${domain_name}|${msg_body}"/><br>
>> >>>><br>
>> >>>> and<br>
>> >>>><br>
>> >>>> <action application="eval" data="chat<br>
>> >>>> sip|${username}|${destination_number}@${domain_name}|${msg_body}"/><br>
>> >>>><br>
>> >>>> and neither worked. The wiki says it's part of the API<br>
>> >>>> (<a href="http://wiki.freeswitch.org/wiki/Mod_dptools" target="_blank">http://wiki.freeswitch.org/wiki/Mod_dptools</a>) but I'm pretty sure<br>
>> >>>> that's just a command-line API. Is there a way to run a command-line<br>
>> >>>> call from the dialplan?<br>
>> >>>><br>
>> >>>> Any direction would be appreciated.<br>
>> >>>><br>
>> >>>> _______________________________________________<br>
>> >>>> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
>> >>>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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>
>> >>>><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><br>
>> >>><br>
>> >>><br>
>> >>><br>
>> >>> _______________________________________________<br>
>> >>> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
>> >>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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>
>> >>><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><br>
>> >><br>
>> >> _______________________________________________<br>
>> >> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
>> >> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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>
>> >><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><br>
>> >><br>
>> ><br>
>><br>
>> _______________________________________________<br>
>> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
>> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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><br>
><br>
><br>
> _______________________________________________<br>
> Join us at ClueCon 2011, Aug 9-11, Chicago<br>
> <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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><br>
><br>
><br>
<br>
_______________________________________________<br>
Join us at ClueCon 2011, Aug 9-11, Chicago<br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a> 877-7-4ACLUE<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><br>
</div></div></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">
</div>