I'm talking of the time when I hit the dial button to the phone 3 ft away starting to ring
Regards, -----Original Message----- From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael Collins Sent: 17 February 2009 20:28 To: freeswitch-users@lists.freeswitch.org Subject: Re: [Freeswitch-users] Big delays in playing audio files On Tue, Feb 17, 2009 at 12:11 PM, Nik Middleton <nik.middle...@noblesolutions.co.uk> wrote: > Pretty much > > I haven't included the on-event hooks as it never gets to the point > where they're called. > > Only other thing is the dial it's self, attached below. However, I > notice in the default dial plan, if I call extension 1001 from 1000 it > takes about 2-3 seconds for the phone to ring. Is that normal? By "ring" do you mean caller hears ringback tone or target phone audibly rings? I haven't noticed a long delay when dialing but I haven't been looking for one either. > > > //build dial string > var dial_string = "{absolute_codec_string=PCMA," + > "accountcode=" + account_code > + > ",ignore_early_media=true" > + > " > ,origination_caller_id_number=" + > caller_id > + > ",originate_timeout=25}" > + > "sofia/gateway/" > + > "mygateway/" > + > dial_num + "' " > > var first_session = new Session(dial_string); > > // Trap for call failure > if (!first_session.ready()) { > consoleLog("err", "Disposition: " + first_session.cause > + "\n"); > if (first_session.cause == "USER_BUSY") { > Disposition = "BUSY"; > } > else if (first_session.cause == > "NO_ROUTE_DESTINATION") { > Disposition = "DCN"; > } > > else if (first_session.cause == "NO_ANSWER") { > Disposition = "NA"; > } > > disp_call() > exit(); > } > > > //set the on_hangup function to be called when this session is > hungup > first_session.setHangupHook(on_hangup,"hup"); > > Can I just say how much I hate JavaScript for stuff like this? :) I can't test this right now but I will lab it up as soon as I can. In the meantime I would have you turn on debugging and capture the results from start to finish for a successful call. Save that for future reference. Then try to recreate the symptoms, also with debug turned on, capturing output. It will be A LOT of output, so you might want to consider rolling log files. (see the "Reporting Bugs" wiki page for hints on how to do that and more) Has anybody else out there used js for something like this, or otherwise have any input on why js seems to be acting up in this case? -MC _______________________________________________ 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 _______________________________________________ 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