[Freeswitch-users] Re corded file as voicemail.

Seven Du dujinfang at gmail.com
Sun Oct 11 18:45:46 PDT 2009


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 at internal>
freeswitch at 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 at 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 at 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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20091012/4199f3d8/attachment-0002.html 


More information about the FreeSWITCH-users mailing list