Hi guys, I'm new to Freeswitch and am currently looking to setup a dialplan that basically does the following: Ring an extension for 10 secs if not answered, play media file. After that has played, go to voice mail. This doesn't seem to work though, it goes straight from ringing the extension to voicemail and misses out the media file. If you setup the dialplan to just play the media file it plays fine, just not when its in the middle of a dialplan. <include> <extension name="public_did"> <condition field="destination_number" expression="number"> <action application="set" data="domain_name=$${domain}"/> <action application="set" data="call_timeout=10"/> <action application="set" data="continue_on_fail=true"/> <action application="bridge" data="sofia/internal/1000@<IP_ADDRESS>"/> <action application="answer"/> <action application="set" data="continue_on_fail=true"/> <action application="playback" data="/usr/local/freeswitch/sounds/<FILE_NAME>.wav"/> <action application="voicemail" data="default <IP_ADDRESS> 1000"/> </condition> </extension> </include> If you could point me in the right direction, that would be great. Thanks
On 16/01/12 14:29, dan@subformat.net wrote:
If you could point me in the right direction, that would be great.
Can you provide a log of the call from FreeSWITCH, on http://pastebin.freeswitch.org/ for us to look at, please? Regards,
On Mon, Jan 16, 2012 at 11:21 AM, Paul Cupis <paul@cupis.co.uk> wrote:
On 16/01/12 14:29, dan@subformat.net wrote:
If you could point me in the right direction, that would be great.
Can you provide a log of the call from FreeSWITCH, on http://pastebin.freeswitch.org/ for us to look at, please?
Also, you might want to add an action right after the answer: <action application="sleep" data="1500"/> Sometimes it takes a moment for media to "come up" and your playback could occur before media is happily flowing. If you sleep for a short period of time usually that helps. Try making the sleep duration longer or shorter to see what happens. -MC
Thanks MC, Tried that but sleep doesn't appear to be having any effect? I have pasted my log here: http://pastebin.freeswitch.org/18143 As you can see in the log the ext is not registered, but the dial plan should continue on fail? to the media file etc. Thanks Dan.
On Mon, Jan 16, 2012 at 11:21 AM, Paul Cupis <paul@cupis.co.uk> wrote:
On 16/01/12 14:29, dan@subformat.net wrote:
If you could point me in the right direction, that would be great.
Can you provide a log of the call from FreeSWITCH, on http://pastebin.freeswitch.org/ for us to look at, please?
Also, you might want to add an action right after the answer: <action application="sleep" data="1500"/>
Sometimes it takes a moment for media to "come up" and your playback could occur before media is happily flowing. If you sleep for a short period of time usually that helps. Try making the sleep duration longer or shorter to see what happens.
-MC _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Oops, you forgot to enable debug. It looks like you're capturing right from the console instead of using fs_cli. If you're at the console then type this before doing a test call: console loglevel debug Note: if you use fs_cli to connect to FS you'll automatically be at loglevel debug. Anyway, turn on debug level output and pastebin a new log. -MC On Tue, Jan 17, 2012 at 2:34 AM, <dan@subformat.net> wrote:
Thanks MC, Tried that but sleep doesn't appear to be having any effect?
I have pasted my log here: http://pastebin.freeswitch.org/18143
As you can see in the log the ext is not registered, but the dial plan should continue on fail? to the media file etc.
Thanks
Dan.
On Mon, Jan 16, 2012 at 11:21 AM, Paul Cupis <paul@cupis.co.uk> wrote:
On 16/01/12 14:29, dan@subformat.net wrote:
If you could point me in the right direction, that would be great.
Can you provide a log of the call from FreeSWITCH, on http://pastebin.freeswitch.org/ for us to look at, please?
Also, you might want to add an action right after the answer: <action application="sleep" data="1500"/>
Sometimes it takes a moment for media to "come up" and your playback could occur before media is happily flowing. If you sleep for a short period of time usually that helps. Try making the sleep duration longer or shorter to see what happens.
-MC _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Aaah sorry! That shows just how new I am to FS. Heres the rather large log: http://pastebin.freeswitch.org/18151 Thanks again. Dan.
Oops, you forgot to enable debug. It looks like you're capturing right from the console instead of using fs_cli. If you're at the console then type this before doing a test call:
console loglevel debug
Note: if you use fs_cli to connect to FS you'll automatically be at loglevel debug. Anyway, turn on debug level output and pastebin a new log.
-MC
On Tue, Jan 17, 2012 at 2:34 AM, <dan@subformat.net> wrote:
Thanks MC, Tried that but sleep doesn't appear to be having any effect?
I have pasted my log here: http://pastebin.freeswitch.org/18143
As you can see in the log the ext is not registered, but the dial plan should continue on fail? to the media file etc.
Thanks
Dan.
On Mon, Jan 16, 2012 at 11:21 AM, Paul Cupis <paul@cupis.co.uk> wrote:
On 16/01/12 14:29, dan@subformat.net wrote:
If you could point me in the right direction, that would be great.
Can you provide a log of the call from FreeSWITCH, on http://pastebin.freeswitch.org/ for us to look at, please?
Also, you might want to add an action right after the answer: <action application="sleep" data="1500"/>
Sometimes it takes a moment for media to "come up" and your playback could occur before media is happily flowing. If you sleep for a short period of time usually that helps. Try making the sleep duration longer or shorter to see what happens.
-MC _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
On Tue, Jan 17, 2012 at 2:03 PM, <dan@subformat.net> wrote:
Aaah sorry! That shows just how new I am to FS.
Heres the rather large log: http://pastebin.freeswitch.org/18151
Thanks again.
Dan.
Well, no new info there. I would confirm that the sound files themselves are not broken. You might want to clean out the sounds directory and then re-run "make cd-sounds-install" -MC
The sound file does work, as i can just set the dial plan to go straight to play the media and it plays fine. Its only when the play media is in the middle of the dial plan that it doesnt seem to work. Should this work? Or should i be achieving this from a different setup/dialplan? For instance, maybe specifying the voicemail file (wav) to play for a certain extension number? Thanks Dan.
On Tue, Jan 17, 2012 at 2:03 PM, <dan@subformat.net> wrote:
Aaah sorry! That shows just how new I am to FS.
Heres the rather large log: http://pastebin.freeswitch.org/18151
Thanks again.
Dan.
Well, no new info there. I would confirm that the sound files themselves are not broken. You might want to clean out the sounds directory and then re-run "make cd-sounds-install"
-MC _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
This is a strange one. I'd update to latest git and re-test. If you can consistently reproduce these symptoms after updating I would open a Jira ticket. -MC On Wed, Jan 18, 2012 at 3:35 AM, <dan@subformat.net> wrote:
The sound file does work, as i can just set the dial plan to go straight to play the media and it plays fine. Its only when the play media is in the middle of the dial plan that it doesnt seem to work.
Should this work? Or should i be achieving this from a different setup/dialplan? For instance, maybe specifying the voicemail file (wav) to play for a certain extension number?
Thanks
Dan.
On Tue, Jan 17, 2012 at 2:03 PM, <dan@subformat.net> wrote:
Aaah sorry! That shows just how new I am to FS.
Heres the rather large log: http://pastebin.freeswitch.org/18151
Thanks again.
Dan.
Well, no new info there. I would confirm that the sound files themselves are not broken. You might want to clean out the sounds directory and then re-run "make cd-sounds-install"
-MC _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Thanks MC, will do. So I take it this sort of functionality should work then? Im not trying to do something out of the ordinary? Is there anyway to specify a different voicemail greeting per extension? Might be able to get round it that way. Thanks Dan.
This is a strange one. I'd update to latest git and re-test. If you can consistently reproduce these symptoms after updating I would open a Jira ticket.
-MC
On Wed, Jan 18, 2012 at 3:35 AM, <dan@subformat.net> wrote:
The sound file does work, as i can just set the dial plan to go straight to play the media and it plays fine. Its only when the play media is in the middle of the dial plan that it doesnt seem to work.
Should this work? Or should i be achieving this from a different setup/dialplan? For instance, maybe specifying the voicemail file (wav) to play for a certain extension number?
Thanks
Dan.
On Tue, Jan 17, 2012 at 2:03 PM, <dan@subformat.net> wrote:
Aaah sorry! That shows just how new I am to FS.
Heres the rather large log: http://pastebin.freeswitch.org/18151
Thanks again.
Dan.
Well, no new info there. I would confirm that the sound files themselves are not broken. You might want to clean out the sounds directory and then re-run "make cd-sounds-install"
-MC _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Each extension can record and select his/her own greeting from the advanced options menu. -MC On Thu, Jan 19, 2012 at 9:08 AM, <dan@subformat.net> wrote:
Thanks MC, will do.
So I take it this sort of functionality should work then? Im not trying to do something out of the ordinary?
Is there anyway to specify a different voicemail greeting per extension? Might be able to get round it that way.
Thanks
Dan.
This is a strange one. I'd update to latest git and re-test. If you can consistently reproduce these symptoms after updating I would open a Jira ticket.
-MC
On Wed, Jan 18, 2012 at 3:35 AM, <dan@subformat.net> wrote:
The sound file does work, as i can just set the dial plan to go straight to play the media and it plays fine. Its only when the play media is in the middle of the dial plan that it doesnt seem to work.
Should this work? Or should i be achieving this from a different setup/dialplan? For instance, maybe specifying the voicemail file (wav) to play for a certain extension number?
Thanks
Dan.
On Tue, Jan 17, 2012 at 2:03 PM, <dan@subformat.net> wrote:
Aaah sorry! That shows just how new I am to FS.
Heres the rather large log: http://pastebin.freeswitch.org/18151
Thanks again.
Dan.
Well, no new info there. I would confirm that the sound files themselves are not broken. You might want to clean out the sounds directory and then re-run "make cd-sounds-install"
-MC
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
participants (3)
-
dan@subformat.net
-
Michael Collins
-
Paul Cupis