[Freeswitch-users] Freeswitch is crashing when httapi playback application is executed

Srigo ksrigo at gmail.com
Thu Nov 29 20:40:14 MSK 2012


Hello,

I'm using Httapi for dynamic application service. The problem, I'm getting
is when im using httapi with the application "playback", freeswitch is
crashing.

Seems the crashed is caused by the parameter of "file" in playback. Thats
mean when i'm getting a file from a remote server
(http://xxxxxx.com/test.wav) its crashing but when using a local wav file
everthing is fine.

here is the httapi xml:

<document type="xml/freeswitch-httapi">
<params/>
<variables>
<sou>someval</sou>
</variables>
<work>
<execute application="flush_dtmf"/>
<execute application="set"
data="${http_prefetch(http://xxxxxxx.com/test.wav)}"></execute>
<execute application="info"/>
<playback name="user_entry" file="http://xxxxxxx.com/test.wav" loops="3"
digit-timeout="1000" input-timeout="1000">
<bind strip="#">~\d+</bind>
</playback>
</work>
</document>


Here the log before the freeswitch crash:

freeswitch: src/switch_event.c:710: switch_event_get_header_ptr: Assertion
`event' failed.


I try to use http_cache to try to resolve the prob:

<playback name="user_entry" file="${http_get(http://xxxxxxx.com/test.wav)}"
loops="3" digit-timeout="1000" input-timeout="1000">
<bind strip="#">~\d+</bind>
</playback>

but i'm getting the following error in the log:

2012-11-23 19:06:10.015936 [ERR] switch_core_file.c:112 Unknown file Format
[$]

Finally i try the following idea:

- set a variable (<execute application="set"
data="play=${http_get(http://xxxxxxx.com/test.wav)}"></execute>

then use in playback parameter the variable ${play} but the variable is not
parsed!

2012-11-23 17:30:09.855933 [ERR] mod_native_file.c:74 Error opening
/usr/share/freeswitch/sounds/en/us/callie/${play}.PCMA


Could anyone please tell me where i did the mistake ?

thx a lot



--
View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Freeswitch-is-crashing-when-httapi-playback-application-is-executed-tp7585041.html
Sent from the freeswitch-users mailing list archive at Nabble.com.



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list