[Freeswitch-users] Portaudio troubles

Jakob freeswitch at orresta.no-ip.com
Mon Jan 21 23:55:22 MSK 2013


Hi,

I'm trying to get working a line into en external PA system

Whenever i run this extension

               <condition field="destination_number" expression="^3031$" 
break="on-true">
                         <action application="bridge" 
data="portaudio/endpoint/out-right"/>
                 </condition>

Freeswitch coredumps and has to be restarted.

The log for the last call in the console before it goes dead follows

EXECUTE sofia/external/1050 at rshaninge.mress.se 
bridge(portaudio/endpoint/out-right)
2013-01-21 21:46:45.057266 [DEBUG] switch_ivr_originate.c:2022 Parsing 
global variables
2013-01-21 21:46:45.576716 [DEBUG] mod_portaudio.c:2362 Created shared 
audio stream alpha: 48000 channels 2
2013-01-21 21:46:45.576716 [NOTICE] switch_channel.c:968 New Channel 
portaudio/endpoint-out-right [d9f50f6b-ea97-47a9-b721-659c1a40af14]
2013-01-21 21:46:45.576716 [DEBUG] mod_portaudio.c:1272 
(portaudio/endpoint-out-right) State Change CS_NEW -> CS_INIT
2013-01-21 21:46:45.576716 [DEBUG] switch_core_session.c:1283 Send 
signal portaudio/endpoint-out-right [BREAK]
2013-01-21 21:46:45.576716 [DEBUG] mod_portaudio.c:804 
portaudio/endpoint-out-right CHANNEL KILL
2013-01-21 21:46:45.576716 [DEBUG] switch_core_state_machine.c:415 
(portaudio/endpoint-out-right) Running State Change CS_INIT
2013-01-21 21:46:45.576716 [DEBUG] switch_core_state_machine.c:454 
(portaudio/endpoint-out-right) State INIT
2013-01-21 21:46:45.576716 [DEBUG] mod_portaudio.c:286 
(portaudio/endpoint-out-right) State Change CS_INIT -> CS_ROUTING
2013-01-21 21:46:45.576716 [DEBUG] switch_core_session.c:1283 Send 
signal portaudio/endpoint-out-right [BREAK]
2013-01-21 21:46:45.576716 [DEBUG] mod_portaudio.c:804 
portaudio/endpoint-out-right CHANNEL KILL
2013-01-21 21:46:45.576716 [DEBUG] switch_core_state_machine.c:454 
(portaudio/endpoint-out-right) State INIT going to sleep
2013-01-21 21:46:45.576716 [DEBUG] switch_core_state_machine.c:415 
(portaudio/endpoint-out-right) Running State Change CS_ROUTING
2013-01-21 21:46:45.576716 [DEBUG] switch_channel.c:2003 
(portaudio/endpoint-out-right) Callstate Change DOWN -> RINGING
2013-01-21 21:46:45.576716 [DEBUG] switch_core_state_machine.c:470 
(portaudio/endpoint-out-right) State ROUTING
2013-01-21 21:46:45.576716 [DEBUG] mod_portaudio.c:666 Added call 1
2013-01-21 21:46:45.576716 [DEBUG] switch_channel.c:3395 
(portaudio/endpoint-out-right) Callstate Change RINGING -> ACTIVE
2013-01-21 21:46:45.576716 [DEBUG] switch_channel.c:3407 Send signal 
sofia/external/1050 at rshaninge.mress.se [BREAK]
2013-01-21 21:46:45.576716 [NOTICE] mod_portaudio.c:360 Channel 
[portaudio/endpoint-out-right] has been answered
2013-01-21 21:46:45.576716 [DEBUG] sofia_glue.c:3351 AUDIO RTP 
[sofia/external/1050 at rshaninge.mress.se] 81.216.195.38 port 24486 -> 
10.171.149.115 port 21000 codec: 9 ms: 20
2013-01-21 21:46:45.576716 [DEBUG] switch_rtp.c:1940 Starting timer 
[soft] 160 bytes per 20ms
2013-01-21 21:46:45.576716 [DEBUG] sofia_glue.c:3615 Set 2833 dtmf send 
payload to 101
2013-01-21 21:46:45.576716 [DEBUG] sofia_glue.c:3621 Set 2833 dtmf 
receive payload to 101
2013-01-21 21:46:45.576716 [DEBUG] sofia_glue.c:3648 
sofia/external/1050 at rshaninge.mress.se Set rtp dtmf delay to 40
2013-01-21 21:46:45.576716 [DEBUG] mod_sofia.c:856 Local SDP 
sofia/external/1050 at rshaninge.mress.se:
v=0
o=FreeSWITCH 1358776719 1358776720 IN IP4 81.216.195.38
s=FreeSWITCH
c=IN IP4 81.216.195.38
t=0 0
m=audio 24486 RTP/AVP 9 101
a=rtpmap:9 G722/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

2013-01-21 21:46:45.576716 [DEBUG] switch_core_session.c:830 Send signal 
sofia/external/1050 at rshaninge.mress.se [BREAK]
2013-01-21 21:46:45.576716 [DEBUG] switch_channel.c:3395 
(sofia/external/1050 at rshaninge.mress.se) Callstate Change RINGING -> ACTIVE
2013-01-21 21:46:45.576716 [NOTICE] switch_ivr_originate.c:3378 Channel 
[sofia/external/1050 at rshaninge.mress.se] has been answered
2013-01-21 21:46:45.576716 [DEBUG] switch_ivr_originate.c:3435 Originate 
Resulted in Success: [portaudio/endpoint-out-right]
2013-01-21 21:46:45.576716 [DEBUG] switch_ivr_bridge.c:1268 
(portaudio/endpoint-out-right) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2013-01-21 21:46:45.576716 [DEBUG] switch_core_session.c:1283 Send 
signal portaudio/endpoint-out-right [BREAK]
2013-01-21 21:46:45.576716 [DEBUG] mod_portaudio.c:804 
portaudio/endpoint-out-right CHANNEL KILL
2013-01-21 21:46:45.576716 [DEBUG] switch_core_session.c:830 Send signal 
portaudio/endpoint-out-right [BREAK]
2013-01-21 21:46:45.576716 [DEBUG] mod_portaudio.c:804 
portaudio/endpoint-out-right CHANNEL KILL
2013-01-21 21:46:45.576716 [DEBUG] switch_core_session.c:830 Send signal 
sofia/external/1050 at rshaninge.mress.se [BREAK]
2013-01-21 21:46:45.576716 [DEBUG] switch_ivr_bridge.c:1370 
(portaudio/endpoint-out-right) State Change CS_CONSUME_MEDIA -> 
CS_EXCHANGE_MEDIA
2013-01-21 21:46:45.576716 [DEBUG] switch_core_session.c:1283 Send 
signal portaudio/endpoint-out-right [BREAK]
2013-01-21 21:46:45.576716 [DEBUG] mod_portaudio.c:804 
portaudio/endpoint-out-right CHANNEL KILL
2013-01-21 21:46:45.576716 [DEBUG] switch_core_session.c:975 Send signal 
sofia/external/1050 at rshaninge.mress.se [BREAK]
2013-01-21 21:46:45.576716 [DEBUG] sofia.c:5599 Channel 
sofia/external/1050 at rshaninge.mress.se entering state [completed][200]
2013-01-21 21:46:45.636815 [DEBUG] switch_core_session.c:975 Send signal 
sofia/external/1050 at rshaninge.mress.se [BREAK]
2013-01-21 21:46:45.636815 [DEBUG] switch_core_session.c:975 Send signal 
sofia/external/1050 at rshaninge.mress.se [BREAK]
2013-01-21 21:46:45.636815 [DEBUG] switch_core_session.c:975 Send signal 
sofia/external/1050 at rshaninge.mress.se [BREAK]
2013-01-21 21:46:45.636815 [DEBUG] sofia.c:5599 Channel 
sofia/external/1050 at rshaninge.mress.se entering state [ready][200]
2013-01-21 21:46:46.576712 [DEBUG] mod_portaudio.c:429 
portaudio/endpoint-out-right CHANNEL ROUTING
2013-01-21 21:46:46.576712 [DEBUG] switch_core_state_machine.c:470 
(portaudio/endpoint-out-right) State ROUTING going to sleep
2013-01-21 21:46:46.576712 [DEBUG] switch_core_state_machine.c:415 
(portaudio/endpoint-out-right) Running State Change CS_EXCHANGE_MEDIA
2013-01-21 21:46:46.576712 [DEBUG] switch_core_state_machine.c:480 
(portaudio/endpoint-out-right) State EXCHANGE_MEDIA
2013-01-21 21:46:46.576712 [DEBUG] mod_portaudio.c:817 CHANNEL LOOPBACK
2013-01-21 21:46:46.576712 [DEBUG] switch_core_session.c:892 Send signal 
portaudio/endpoint-out-right [BREAK]
2013-01-21 21:46:46.576712 [DEBUG] mod_portaudio.c:804 
portaudio/endpoint-out-right CHANNEL KILL
2013-01-21 21:46:46.576712 [DEBUG] switch_core_session.c:892 Send signal 
sofia/external/1050 at rshaninge.mress.se [BREAK]


Am I missing something in the log that helps in tracking this down.

Best Regards
Jakob Sundberg



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list