Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] How to stop the playback files


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
velu.technical at gmai...
Guest





PostPosted: Wed Oct 28, 2009 3:43 am    Post subject: [Freeswitch-users] How to stop the playback files Reply with quote

Dear All,
     I have played the list of voice files in playback like the following by using ESL perl module,

      $conn->execute("set","playback_delimiter=!");
      $conn->execute("set","playback_sleep_val=100");
 $conn->playback($sound_path."ivr/ivr-welcome_to_freeswitch.wav!ivr/ivr-this_ivr_will_let_you_test_features.wav!ivr/ivr-you_may_exit_by_hanging_up.wav");

 In a loop I am checking the DTMF event, if that event comes I should stop the above palyback. How can I do it?

Regards,
Velusamy.
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Oct 28, 2009 4:07 am    Post subject: [Freeswitch-users] How to stop the playback files Reply with quote

http://wiki.freeswitch.org/wiki/Channel_Variables#playback_terminators

Are you using sync or async socket?

/b

On Oct 28, 2009, at 3:29 AM, velusamy velu wrote:

Quote:
Dear All,
I have played the list of voice files in playback like the
following by using ESL perl module,

$conn->execute("set","playback_delimiter=!");
$conn->execute("set","playback_sleep_val=100");
$conn->playback($sound_path."ivr/ivr-welcome_to_freeswitch.wav!ivr/
ivr-this_ivr_will_let_you_test_features.wav!ivr/ivr-
you_may_exit_by_hanging_up.wav");

In a loop I am checking the DTMF event, if that event comes I
should stop the above palyback. How can I do it?

Regards,
Velusamy.

_______________________________________________
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
Back to top
velu.technical at gmai...
Guest





PostPosted: Wed Oct 28, 2009 4:37 am    Post subject: [Freeswitch-users] How to stop the playback files Reply with quote

I am using async socket. Shall I set the regular expression for palyback_terminators?

On Wed, Oct 28, 2009 at 2:26 PM, Brian West <brian@freeswitch.org (brian@freeswitch.org)> wrote:
Quote:
http://wiki.freeswitch.org/wiki/Channel_Variables#playback_terminators

Are you using sync or async socket?

/b


On Oct 28, 2009, at 3:29 AM, velusamy velu wrote:

Quote:
Dear All,
     I have played the list of voice files in playback like the
following by using ESL perl module,

      $conn->execute("set","playback_delimiter=!");
      $conn->execute("set","playback_sleep_val=100");
 $conn->playback($sound_path."ivr/ivr-welcome_to_freeswitch.wav!ivr/
ivr-this_ivr_will_let_you_test_features.wav!ivr/ivr-
you_may_exit_by_hanging_up.wav");

 In a loop I am checking the DTMF event, if that event comes I
should stop the above palyback. How can I do it?

Regards,
Velusamy.




Quote:
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (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 (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


Back to top
delianspam at gmail.com
Guest





PostPosted: Wed Oct 28, 2009 6:05 am    Post subject: [Freeswitch-users] How to stop the playback files Reply with quote

Hello Velusamy!

You may also be interested in using the method:
http://wiki.freeswitch.org/wiki/Mod_lua#session:playAndGetDigits
It play a file, gets DTMFs and can be terminated if the maximum number of
digits is reached (i.e. 1 digit).

Delian Tashev

-----Original Message-----
From: Brian West [mailto:brian@freeswitch.org]
Sent: Wednesday, October 28, 2009 10:57
To: freeswitch-users@lists.freeswitch.org
Subject: Re: [Freeswitch-users] How to stop the playback files

http://wiki.freeswitch.org/wiki/Channel_Variables#playback_terminators

Are you using sync or async socket?

/b

On Oct 28, 2009, at 3:29 AM, velusamy velu wrote:

Quote:
Dear All,
I have played the list of voice files in playback like the
following by using ESL perl module,

$conn->execute("set","playback_delimiter=!");
$conn->execute("set","playback_sleep_val=100");
$conn->playback($sound_path."ivr/ivr-welcome_to_freeswitch.wav!ivr/
ivr-this_ivr_will_let_you_test_features.wav!ivr/ivr-
you_may_exit_by_hanging_up.wav");

In a loop I am checking the DTMF event, if that event comes I
should stop the above palyback. How can I do it?

Regards,
Velusamy.

_______________________________________________
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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services