Hi Srigo,<br><br>It looks like you're new to the list, so let me welcome you to the community!<br><br>In a case like this, any time there is a crash, we need the user to open a jira. You've already collected most of the necessary data. Go to <a href="http://jira.freeswitch.org">jira.freeswitch.org</a>, open an account, and then add this data to a new jira ticket. If you need help on how to file a jira then join us in #freeswitch on <a href="http://irc.freenode.net">irc.freenode.net</a>. Also, our wiki has some good information here:<br>
<br><a href="http://wiki.freeswitch.org/wiki/Reporting_Bugs">http://wiki.freeswitch.org/wiki/Reporting_Bugs</a><br><br>Also, make sure you test with the latest git version because our devs work fast and sometimes they've caught and fixed bugs before you finish opening your jira ticket. :)<br>
<br>-MC<br><br><div class="gmail_quote">On Thu, Nov 29, 2012 at 9:40 AM, Srigo <span dir="ltr"><<a href="mailto:ksrigo@gmail.com" target="_blank">ksrigo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I'm using Httapi for dynamic application service. The problem, I'm getting<br>
is when im using httapi with the application "playback", freeswitch is<br>
crashing.<br>
<br>
Seems the crashed is caused by the parameter of "file" in playback. Thats<br>
mean when i'm getting a file from a remote server<br>
(<a href="http://xxxxxx.com/test.wav" target="_blank">http://xxxxxx.com/test.wav</a>) its crashing but when using a local wav file<br>
everthing is fine.<br>
<br>
here is the httapi xml:<br>
<br>
<document type="xml/freeswitch-httapi"><br>
<params/><br>
<variables><br>
<sou>someval</sou><br>
</variables><br>
<work><br>
<execute application="flush_dtmf"/><br>
<execute application="set"<br>
data="${http_prefetch(<a href="http://xxxxxxx.com/test.wav)" target="_blank">http://xxxxxxx.com/test.wav)</a>}"></execute><br>
<execute application="info"/><br>
<playback name="user_entry" file="<a href="http://xxxxxxx.com/test.wav" target="_blank">http://xxxxxxx.com/test.wav</a>" loops="3"<br>
digit-timeout="1000" input-timeout="1000"><br>
<bind strip="#">~\d+</bind><br>
</playback><br>
</work><br>
</document><br>
<br>
<br>
Here the log before the freeswitch crash:<br>
<br>
freeswitch: src/switch_event.c:710: switch_event_get_header_ptr: Assertion<br>
`event' failed.<br>
<br>
<br>
I try to use http_cache to try to resolve the prob:<br>
<br>
<playback name="user_entry" file="${http_get(<a href="http://xxxxxxx.com/test.wav)" target="_blank">http://xxxxxxx.com/test.wav)</a>}"<br>
loops="3" digit-timeout="1000" input-timeout="1000"><br>
<bind strip="#">~\d+</bind><br>
</playback><br>
<br>
but i'm getting the following error in the log:<br>
<br>
2012-11-23 19:06:10.015936 [ERR] switch_core_file.c:112 Unknown file Format<br>
[$]<br>
<br>
Finally i try the following idea:<br>
<br>
- set a variable (<execute application="set"<br>
data="play=${http_get(<a href="http://xxxxxxx.com/test.wav)" target="_blank">http://xxxxxxx.com/test.wav)</a>}"></execute><br>
<br>
then use in playback parameter the variable ${play} but the variable is not<br>
parsed!<br>
<br>
2012-11-23 17:30:09.855933 [ERR] mod_native_file.c:74 Error opening<br>
/usr/share/freeswitch/sounds/en/us/callie/${play}.PCMA<br>
<br>
<br>
Could anyone please tell me where i did the mistake ?<br>
<br>
thx a lot<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/Freeswitch-is-crashing-when-httapi-playback-application-is-executed-tp7585041.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/Freeswitch-is-crashing-when-httapi-playback-application-is-executed-tp7585041.html</a><br>
Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<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><br>
</blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>