<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>1, OK,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>2. Right now I have a php script calling
bgapi via and event socket with the call parameters. Is that what you mean?
If not, can you give me a pointer? I had assumed that every time I called
bgapi it with the script in it, it would get it’s own copy.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Regards,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Anthony Minessale<br>
<b><span style='font-weight:bold'>Sent:</span></b> 17 February 2009 20:38<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">freeswitch-users@lists.freeswitch.org</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Freeswitch-users]
Big delays in playing audio files</span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>1) turn off crash
protection.<br>
2) you cant manipulate more that one call per script, design the script to be
run from the application interface so you originate the call with the api
interface and transfer the call to the script so each one has it's own copy of
the script.<br>
<br>
<br>
<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Tue, Feb 17, 2009 at 2:30 PM, <st1:PersonName w:st="on">Nik
Middleton</st1:PersonName> <<a
href="mailto:nik.middleton@noblesolutions.co.uk">nik.middleton@noblesolutions.co.uk</a>>
wrote:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>I'm starting to think it's a thread/DTMF issue. Ran 15 lines to
my<br>
office number (using latest trunk)<br>
<br>
2009-02-17 20:19:38 [CRIT] switch_core_state_machine.c:259<br>
handle_fatality() Caught signal 11 for unmapped thread!Aborted (core<br>
dumped)<br>
<br>
Also then I had tone detect on, I'd often get this<br>
<br>
freeswitch: src/switch_ivr_async.c:1328: switch_ivr_tone_detect_session:<br>
Assertion `read_codec != ((void *)0)' failed.<br>
<br>
Hardware, HP DL360 G4. Centos 5.2, 4 GB ram.<o:p></o:p></span></font></p>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><o:p></o:p></span></font></p>
</div>
<div>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>]
On Behalf Of Nik<br>
Middleton<br>
Sent: 17 February 2009 20:11<br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Subject: Re: [Freeswitch-users] Big delays in playing audio files<br>
<br>
Pretty much<br>
<br>
I haven't included the on-event hooks as it never gets to the point<br>
where they're called.<br>
<br>
Only other thing is the dial it's self, attached below. However, I<br>
notice in the default dial plan, if I call extension 1001 from 1000 it<br>
takes about 2-3 seconds for the phone to ring. Is that normal?<br>
<br>
<br>
//build dial string<br>
var dial_string = "{absolute_codec_string=PCMA,"
+<br>
"accountcode=" + account_code<br>
+<br>
",ignore_early_media=true"<br>
+<br>
"<br>
,origination_caller_id_number=" +<br>
caller_id<br>
+<br>
",originate_timeout=25}"<br>
+<br>
"sofia/gateway/"<br>
+<br>
"mygateway/"<br>
+<br>
dial_num +
"' "<br>
<br>
var first_session = new Session(dial_string);<br>
<br>
// Trap for call failure<br>
if (!first_session.ready()) {<br>
consoleLog("err", "Disposition: " +
first_session.cause<br>
+ "\n");<br>
if (first_session.cause
== "USER_BUSY") {<br>
Disposition =
"BUSY";<br>
}<br>
else if (first_session.cause ==<br>
"NO_ROUTE_DESTINATION") {<br>
Disposition =
"DCN";<br>
}<br>
<br>
else if (first_session.cause == "NO_ANSWER") {<br>
Disposition =
"NA";<br>
}<br>
<br>
disp_call()<br>
exit();<br>
}<br>
<br>
<br>
//set the on_hangup function to be called when this
session is<br>
hungup<br>
first_session.setHangupHook(on_hangup,"hup");<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>
[mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>]
On Behalf Of<br>
Michael Collins<br>
Sent: 17 February 2009 19:25<br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
Subject: Re: [Freeswitch-users] Big delays in playing audio files<br>
<br>
Is this the entire script?!<br>
-MC<br>
<br>
On Tue, Feb 17, 2009 at 11:05 AM, <st1:PersonName w:st="on">Nik Middleton</st1:PersonName><br>
<<a href="mailto:nik.middleton@noblesolutions.co.uk">nik.middleton@noblesolutions.co.uk</a>>
wrote:<br>
> if (first_session.ready()) {<br>
><br>
>
console_log("notice","Session state=[" +<br>
> first_session.state + "] \n");<br>
><br>
><br>
><br>
>
consoleLog("NOTICE", "ready: Start DTMF\n");<br>
><br>
><br>
><br>
>
first_session.execute("start_dtmf");<br>
><br>
>
first_session.answer( );<br>
><br>
><br>
><br>
>
Disposition = "ANS";<br>
><br>
><br>
><br>
>
first_session.sleep(1500);<br>
><br>
>
console_log("notice", "Playing message: " +<br>
> recording + "\n");<br>
><br>
>
first_session.streamFile(recording, on_event);<br>
><br>
><br>
><br>
> if (first_session.ready()) {<br>
><br>
>
consoleLog("err", "ready: Waiting for<br>
input\n");<br>
><br>
>
first_session.streamFile("4.wav",on_event,<br>
"dtmf");<br>
><br>
>
consoleLog("err", "ready: Timeout on<br>
input\n");<br>
><br>
>
first_session.execute("stop_tone_detect");<br>
><br>
><br>
><br>
> //disp_call()<br>
><br>
>
first_session.hangup()<br>
><br>
>
first_session.execute("sleep", "2000");<br>
><br>
>
consoleLog("NOTICE", "EXITING\n");<br>
><br>
>
exit();<br>
><br>
> }<br>
><br>
> }<br>
><br>
><br>
><br>
> ________________________________<br>
><br>
> From: <a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a><br>
> [mailto:<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>]
On Behalf Of<br>
Anthony<br>
> Minessale<br>
> Sent: 17 February 2009 18:34<br>
> To: <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
> Subject: Re: [Freeswitch-users] Big delays in playing audio files<br>
><br>
><br>
><br>
> we would need to see your script.<br>
><br>
> On Tue, Feb 17, 2009 at 12:23 PM, <st1:PersonName w:st="on">Nik Middleton</st1:PersonName><br>
> <<a href="mailto:nik.middleton@noblesolutions.co.uk">nik.middleton@noblesolutions.co.uk</a>>
wrote:<br>
><br>
> Having spent the last week developing a small js app, I ran some tests<br>
> today. With just 5 calls going on, I'm seeing huge delays from when<br>
the call<br>
> is answered to when the audio file is played. Sometimes it doesn't<br>
even<br>
> play at all!!<br>
><br>
><br>
><br>
> Example 3 calls and the matching playbacks<br>
><br>
><br>
><br>
> 2009-02-17 15:41:04 [NOTICE] voice.js:1 console_log() ready: Start<br>
DTMF<br>
><br>
> 2009-02-17 15:41:08 [NOTICE] voice.js:1 console_log() ready: Start<br>
DTMF<br>
><br>
> 2009-02-17 15:41:22 [NOTICE] voice.js:1 console_log() ready: Start<br>
DTMF<br>
><br>
><br>
><br>
> 2009-02-17 15:41:26 [NOTICE] voice.js:1 console_log() Playing message:<br>
> message.wav<br>
><br>
> 2009-02-17 15:41:26 [NOTICE] voice.js:1 console_log() Playing message:<br>
> message.wav<br>
><br>
> 2009-02-17 15:41:26 [NOTICE] voice.js:1 console_log() Playing message:<br>
> message.wav<br>
><br>
><br>
><br>
> That's 22 seconds for the first one!!<br>
><br>
><br>
><br>
> Anyone any ideas as to what's going on here?<br>
><br>
><br>
><br>
> Regards<br>
><br>
><br>
><br>
><br>
><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>
> Anthony Minessale II<br>
><br>
> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
><br>
> AIM: anthm<br>
> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a>
#freeswitch<br>
><br>
> FreeSWITCH Developer Conference<br>
> <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
> <a href="http://iax:guest@conference.freeswitch.org/888" target="_blank">iax:guest@conference.freeswitch.org/888</a><br>
> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
> pstn:213-799-1400<br>
><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>
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>
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>
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><o:p></o:p></span></font></p>
</div>
</div>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<br clear=all>
<br>
-- <br>
Anthony Minessale II<br>
<br>
FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>
ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
<br>
AIM: anthm<br>
<a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br>
<br>
FreeSWITCH Developer Conference<br>
<a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
<a href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
<a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<o:p></o:p></span></font></p>
</div>
</body>
</html>