Re corded file as voicemail.
Is it possible to treat a recorded voice as voice mail? Assume that, I've recorded a conversation and I want this recorded file to be treated like voicemail. So, I could check it like voicemail!! -- View this message in context: http://www.nabble.com/Recorded-file-as-voicemail.-tp25751158p25751158.html Sent from the Freeswitch-users mailing list archive at Nabble.com.
http://wiki.freeswitch.org/wiki/Mod_voicemail#voicemail_inject On Oct 5, 2009, at 9:46 AM, Nagalenoj wrote:
Is it possible to treat a recorded voice as voice mail?
Assume that, I've recorded a conversation and I want this recorded file to be treated like voicemail. So, I could check it like voicemail!!
No, When I do voicemail_inject it is reporting the following error. 'Stereo is currently not supported, please downsample to mono.' Any other way to do this.?? Michael Jerris wrote:
http://wiki.freeswitch.org/wiki/Mod_voicemail#voicemail_inject
On Oct 5, 2009, at 9:46 AM, Nagalenoj wrote:
Is it possible to treat a recorded voice as voice mail?
Assume that, I've recorded a conversation and I want this recorded file to be treated like voicemail. So, I could check it like voicemail!!
_______________________________________________ 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
-- View this message in context: http://www.nabble.com/Recorded-file-as-voicemail.-tp25751158p25830785.html Sent from the Freeswitch-users mailing list archive at Nabble.com.
Nagalenoj <nagalenoj@gmail.com> wrote:
No, When I do voicemail_inject and check through voicemail, it is not playing the file instead reporting the following error.
'Stereo is currently not supported, please downsample to mono.'
This has been discussed on the list before. I think the solution was to use sox to convert the files to mono. You might need a script to do this before injecting them into the voicemail.
Yes, it's discussed before. http://wiki.freeswitch.org/wiki/Channel_Variables#RECORD_STEREO set that var to false before you record. 2009/10/10 Jason White <jason@jasonjgw.net>
Nagalenoj <nagalenoj@gmail.com> wrote:
No, When I do voicemail_inject and check through voicemail, it is not
playing
the file instead reporting the following error.
'Stereo is currently not supported, please downsample to mono.'
This has been discussed on the list before. I think the solution was to use sox to convert the files to mono. You might need a script to do this before injecting them into the voicemail.
_______________________________________________ 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 can play back stereo files it'll just mux them down to mono before playing... can you elaborate on the error you're getting? /b On Oct 10, 2009, at 12:40 AM, Seven Du wrote:
Yes, it's discussed before.
http://wiki.freeswitch.org/wiki/Channel_Variables#RECORD_STEREO
set that var to false before you record.
got 2009-10-12 01:41:30.349961 [WARNING] switch_core_file.c:133 File has 2 channels, muxing to mono will occur. 2009-10-12 01:41:30.349961 [ERR] switch_core_codec.c:431 Stereo is currently unsupported. please downsample audio source to mono. freeswitch@internal> freeswitch@internal> version FreeSWITCH Version 1.0.trunk (14696) originate {ignore_early_media=true,RECORD_STEREO=true}sofia/gateway/xx/xx &bridge(sofia/gateway/yy/yy) uuid_record uuid start /tmp/a.wav play by sox: Input File : 'a.wav' Sample Size : 16-bit (2 bytes) Sample Encoding: signed (2's complement) Channels : 2 Sample Rate : 8000 full logs here: freeswitch@internal> originate {ignore_early_media=true}sofia/gateway/skype/seven1240 &playback(/tmp/a.wav) +OK dcbd971e-c570-481d-843a-0c5582669c69 2009-10-12 01:41:26.89775 [DEBUG] switch_ivr_originate.c:1043 variable string 0 = [ignore_early_media=true] freeswitch@internal> 2009-10-12 01:41:26.89775 [NOTICE] switch_channel.c:602 New Channel sofia/eqenglish/seven1240 [dcbd971e-c570-481d-843a-0c5582669c69] 2009-10-12 01:41:26.89775 [DEBUG] mod_sofia.c:2867 (sofia/eqenglish/seven1240) State Change CS_NEW -> CS_INIT 2009-10-12 01:41:26.89775 [DEBUG] switch_core_session.c:932 Send signal sofia/eqenglish/seven1240 [BREAK] 2009-10-12 01:41:26.89775 [DEBUG] switch_core_state_machine.c:398 (sofia/eqenglish/seven1240) Running State Change CS_INIT 2009-10-12 01:41:26.89775 [DEBUG] switch_core_state_machine.c:481 (sofia/eqenglish/seven1240) State INIT 2009-10-12 01:41:26.89775 [DEBUG] mod_sofia.c:83 sofia/eqenglish/seven1240 SOFIA INIT 2009-10-12 01:41:26.89775 [DEBUG] mod_sofia.c:111 (sofia/eqenglish/seven1240) State Change CS_INIT -> CS_ROUTING 2009-10-12 01:41:26.89775 [DEBUG] switch_core_session.c:932 Send signal sofia/eqenglish/seven1240 [BREAK] 2009-10-12 01:41:26.89775 [DEBUG] switch_core_state_machine.c:481 (sofia/eqenglish/seven1240) State INIT going to sleep 2009-10-12 01:41:26.89775 [DEBUG] switch_core_state_machine.c:398 (sofia/eqenglish/seven1240) Running State Change CS_ROUTING 2009-10-12 01:41:26.89775 [DEBUG] switch_core_state_machine.c:484 (sofia/eqenglish/seven1240) State ROUTING 2009-10-12 01:41:26.89775 [DEBUG] mod_sofia.c:130 sofia/eqenglish/seven1240 SOFIA ROUTING 2009-10-12 01:41:26.89775 [DEBUG] switch_ivr_originate.c:63 (sofia/eqenglish/seven1240) State Change CS_ROUTING -> CS_CONSUME_MEDIA 2009-10-12 01:41:26.89775 [DEBUG] switch_core_session.c:932 Send signal sofia/eqenglish/seven1240 [BREAK] 2009-10-12 01:41:26.89775 [DEBUG] switch_core_state_machine.c:484 (sofia/eqenglish/seven1240) State ROUTING going to sleep 2009-10-12 01:41:26.89775 [DEBUG] switch_core_state_machine.c:398 (sofia/eqenglish/seven1240) Running State Change CS_CONSUME_MEDIA 2009-10-12 01:41:26.89775 [DEBUG] switch_core_state_machine.c:503 (sofia/eqenglish/seven1240) State CONSUME_MEDIA 2009-10-12 01:41:26.89775 [DEBUG] sofia.c:3302 Channel sofia/eqenglish/seven1240 entering state [calling][0] 2009-10-12 01:41:26.169828 [DEBUG] sofia.c:3302 Channel sofia/eqenglish/seven1240 entering state [calling][0] 2009-10-12 01:41:28.700782 [DEBUG] sofia.c:3302 Channel sofia/eqenglish/seven1240 entering state [proceeding][180] 2009-10-12 01:41:28.700782 [NOTICE] sofia.c:3366 Ring-Ready sofia/eqenglish/seven1240! 2009-10-12 01:41:30.330095 [DEBUG] sofia.c:3302 Channel sofia/eqenglish/seven1240 entering state [ready][200] 2009-10-12 01:41:30.330095 [DEBUG] sofia.c:3309 Remote SDP: v=0 o=FreeSWITCH 1255290734 1255290735 IN IP4 67.228.224.149 s=FreeSWITCH c=IN IP4 127.0.0.1 t=0 0 m=audio 20956 RTP/AVP 0 101 13 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=fmtp:101 0-16 a=rtpmap:13 CN/8000 a=ptime:20 2009-10-12 01:41:30.330095 [DEBUG] sofia_glue.c:3132 Audio Codec Compare [PCMU:0:8000:20]/[PCMU:0:8000:20] 2009-10-12 01:41:30.330095 [DEBUG] sofia_glue.c:2090 Set Codec sofia/eqenglish/seven1240 PCMU/8000 20 ms 160 samples 2009-10-12 01:41:30.330095 [DEBUG] sofia_glue.c:3092 Set 2833 dtmf payload to 101 2009-10-12 01:41:30.330095 [DEBUG] sofia_glue.c:2324 AUDIO RTP [sofia/eqenglish/seven1240] 67.228.224.149 port 24862 -> 127.0.0.1 port 20956 codec: 0 ms: 20 2009-10-12 01:41:30.330095 [DEBUG] switch_rtp.c:1139 Starting timer [soft] 160 bytes per 20ms 2009-10-12 01:41:30.339941 [DEBUG] sofia_glue.c:2503 Set comfort noise payload to 13 2009-10-12 01:41:30.339941 [NOTICE] sofia.c:3807 Channel [sofia/eqenglish/seven1240] has been answered 2009-10-12 01:41:30.339941 [DEBUG] switch_channel.c:182 sofia/eqenglish/seven1240 receive message [AUDIO_SYNC] 2009-10-12 01:41:30.339941 [NOTICE] switch_cpp.cpp:1130 ==DebugVar== gateway_name: skype 2009-10-12 01:41:30.349961 [DEBUG] switch_ivr_originate.c:2089 Originate Resulted in Success: [sofia/eqenglish/seven1240] 2009-10-12 01:41:30.349961 [DEBUG] switch_channel.c:182 sofia/eqenglish/seven1240 receive message [AUDIO_SYNC] 2009-10-12 01:41:30.349961 [DEBUG] mod_commands.c:2334 (sofia/eqenglish/seven1240) State Change CS_CONSUME_MEDIA -> CS_EXECUTE 2009-10-12 01:41:30.349961 [DEBUG] switch_core_session.c:932 Send signal sofia/eqenglish/seven1240 [BREAK] 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:503 (sofia/eqenglish/seven1240) State CONSUME_MEDIA going to sleep 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:398 (sofia/eqenglish/seven1240) Running State Change CS_EXECUTE 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:491 (sofia/eqenglish/seven1240) State EXECUTE 2009-10-12 01:41:30.349961 [DEBUG] mod_sofia.c:173 sofia/eqenglish/seven1240 SOFIA EXECUTE 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:151 sofia/eqenglish/seven1240 Standard EXECUTE EXECUTE sofia/eqenglish/seven1240 playback(/tmp/a.wav) 2009-10-12 01:41:30.349961 [WARNING] switch_core_file.c:133 File has 2 channels, muxing to mono will occur. 2009-10-12 01:41:30.349961 [ERR] switch_core_codec.c:431 Stereo is currently unsupported. please downsample audio source to mono. 2009-10-12 01:41:30.349961 [DEBUG] switch_ivr_play_say.c:1113 Raw Codec Activation Failed L16@8000hz 2 channels 20ms 2009-10-12 01:41:30.349961 [NOTICE] switch_core_state_machine.c:179 Hangup sofia/eqenglish/seven1240 [CS_EXECUTE] [NORMAL_CLEARING] 2009-10-12 01:41:30.349961 [DEBUG] switch_channel.c:1715 Send signal sofia/eqenglish/seven1240 [KILL] 2009-10-12 01:41:30.349961 [DEBUG] switch_core_session.c:932 Send signal sofia/eqenglish/seven1240 [BREAK] 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:491 (sofia/eqenglish/seven1240) State EXECUTE going to sleep 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:398 (sofia/eqenglish/seven1240) Running State Change CS_HANGUP 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:434 (sofia/eqenglish/seven1240) State HANGUP 2009-10-12 01:41:30.349961 [DEBUG] mod_sofia.c:338 Channel sofia/eqenglish/seven1240 hanging up, cause: NORMAL_CLEARING 2009-10-12 01:41:30.349961 [DEBUG] mod_sofia.c:376 Sending BYE to sofia/eqenglish/seven1240 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:46 sofia/eqenglish/seven1240 Standard HANGUP, cause: NORMAL_CLEARING 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:434 (sofia/eqenglish/seven1240) State HANGUP going to sleep 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:476 (sofia/eqenglish/seven1240) State Change CS_HANGUP -> CS_REPORTING 2009-10-12 01:41:30.349961 [DEBUG] switch_core_session.c:932 Send signal sofia/eqenglish/seven1240 [BREAK] 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:398 (sofia/eqenglish/seven1240) Running State Change CS_REPORTING 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:613 (sofia/eqenglish/seven1240) State REPORTING 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:53 sofia/eqenglish/seven1240 Standard REPORTING, cause: NORMAL_CLEARING 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:613 (sofia/eqenglish/seven1240) State REPORTING going to sleep 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:411 (sofia/eqenglish/seven1240) State Change CS_REPORTING -> CS_DESTROY 2009-10-12 01:41:30.349961 [DEBUG] switch_core_session.c:932 Send signal sofia/eqenglish/seven1240 [BREAK] 2009-10-12 01:41:30.349961 [DEBUG] switch_core_session.c:1068 Session 2178 (sofia/eqenglish/seven1240) Locked, Waiting on external entities 2009-10-12 01:41:30.349961 [NOTICE] switch_core_session.c:1086 Session 2178 (sofia/eqenglish/seven1240) Ended 2009-10-12 01:41:30.349961 [NOTICE] switch_core_session.c:1088 Close Channel sofia/eqenglish/seven1240 [CS_DESTROY] 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:556 (sofia/eqenglish/seven1240) Running State Change CS_DESTROY 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:565 (sofia/eqenglish/seven1240) State DESTROY 2009-10-12 01:41:30.349961 [DEBUG] mod_sofia.c:255 sofia/eqenglish/seven1240 SOFIA DESTROY 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:60 sofia/eqenglish/seven1240 Standard DESTROY 2009-10-12 01:41:30.349961 [DEBUG] switch_core_state_machine.c:565 (sofia/eqenglish/seven1240) State DESTROY going to sleep 2009-10-12 01:41:30.349961 [NOTICE] switch_cpp.cpp:1130 ==DebugVar== gateway_name: skype 2009/10/12 Brian West <brian@freeswitch.org>
FreeSWITCH can play back stereo files it'll just mux them down to mono before playing... can you elaborate on the error you're getting? /b
On Oct 10, 2009, at 12:40 AM, Seven Du wrote:
Yes, it's discussed before.
http://wiki.freeswitch.org/wiki/Channel_Variables#RECORD_STEREO
set that var to false before you record.
_______________________________________________ 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
I set to true because brian said it can play stereo files but no lucky for me. 2009/10/12 Jason White <jason@jasonjgw.net>
Seven Du <dujinfang@gmail.com> wrote:
originate {ignore_early_media=true,RECORD_STEREO=true}sofia/gateway/xx/xx &bridge(sofia/gateway/yy/yy)
Shouldn't that be record_stereo=false for mono recording?
_______________________________________________ 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
Please open a jira please this did work but a recent change in switch_core_codec caused this to appear I usually test this regularly but haven't run thru a full run of tests lately. /b On Oct 11, 2009, at 9:27 PM, Seven Du wrote:
I set to true because brian said it can play stereo files but no lucky for me.
Is it possible to play a stereo file ?!!! whats the conclusion.?! Brian West-3 wrote:
Please open a jira please this did work but a recent change in switch_core_codec caused this to appear I usually test this regularly but haven't run thru a full run of tests lately. /b
On Oct 11, 2009, at 9:27 PM, Seven Du wrote:
I set to true because brian said it can play stereo files but no lucky for me.
_______________________________________________ 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
-- View this message in context: http://www.nabble.com/Recorded-file-as-voicemail.-tp25751158p25850181.html Sent from the Freeswitch-users mailing list archive at Nabble.com.
It was possible but we have a regression in the code that isn't letting that happen right now... hence the reason i said Open a jira so we could fix it. IS THAT not clear? /b On Oct 11, 2009, at 10:46 PM, Nagalenoj wrote:
Whats the conclusion.?!
http://jira.freeswitch.org/browse/MODCODEC-15 Is it ok I assigned to you ? Thanks. 2009/10/12 Brian West <brian@freeswitch.org>
It was possible but we have a regression in the code that isn't letting that happen right now... hence the reason i said Open a jira so we could fix it.
IS THAT not clear?
/b
On Oct 11, 2009, at 10:46 PM, Nagalenoj wrote:
Whats the conclusion.?!
_______________________________________________ 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
Perfect! Thanks. /b On Oct 12, 2009, at 1:15 AM, Seven Du wrote:
http://jira.freeswitch.org/browse/MODCODEC-15
Is it ok I assigned to you ?
Thanks.
Fixed... svn up. /b On Oct 12, 2009, at 1:15 AM, Seven Du wrote:
http://jira.freeswitch.org/browse/MODCODEC-15
Is it ok I assigned to you ?
Thanks.
I won't try until I need that, but I believe it works. Thanks Brian. 2009/10/13 Brian West <brian@freeswitch.org>
Fixed... svn up. /b
On Oct 12, 2009, at 1:15 AM, Seven Du wrote:
http://jira.freeswitch.org/browse/MODCODEC-15
Is it ok I assigned to you ?
Thanks.
_______________________________________________ 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
It was a problem and has been fixed in the last trunk. Just update to the latest code should be ok. btw, the developers using jira to track bugs, so feel free to report one (as you see http://jira.freeswitch.org/browse/FSCORE-463) if you think it's a bug next time. 2009/10/12 Nagalenoj <nagalenoj@gmail.com>
Whats the conclusion.?!
Brian West-3 wrote:
Please open a jira please this did work but a recent change in switch_core_codec caused this to appear I usually test this regularly but haven't run thru a full run of tests lately. /b
not sure I said this but open a jira... its a bug thats recent... usually it will mux them to mono and the codec engine is trying to open L16 with two channels so something has changed to cause this regression. Expect a fix sometime tomorrow. /b On Oct 11, 2009, at 9:27 PM, Seven Du wrote:
I set to true because brian said it can play stereo files but no lucky for me.
2009/10/12 Jason White <jason@jasonjgw.net> Seven Du <dujinfang@gmail.com> wrote:
originate {ignore_early_media=true,RECORD_STEREO=true}sofia/ gateway/xx/xx &bridge(sofia/gateway/yy/yy)
Shouldn't that be record_stereo=false for mono recording?
participants (5)
-
Brian West
-
Jason White
-
Michael Jerris
-
Nagalenoj
-
Seven Du