Simone Cittadini
2007-Mar-16 03:44 UTC
[asterisk-users] transfer=mediaonly : can't hear nothing
I've setup this simple configuration to test the new mediaonly iax
feature in 1.4 :
Input (client) -> Server (routing) -> Termination
transfer=no transfer=mediaonly transfer=no
all the machines are in the same 192.168.0.x net
the routing Server in the middle has iaxusers realtime backend on mysql
the call is originated with a sip phone registered on the Input client
Server's credentials are hardcoded in iax.conf on the Termination server
codecs allowed are alaw and gsm, I see all the traffic as alaw
( Ooh, voice format changed to 8 )
with Server's transfer=no all works ok
with Server's transfer=yes all works "ok" I can hear, some seconds
(~12)
after the call is answered the Server spits a
-- Channel 'IAX2/[Termination IP]:4569-2' ready to transfer
-- Channel 'IAX2/[Client IP]:4569-1' ready to transfer
and inserts the cdr (in mysql), I can still hear
(of course the cdr is shorter than the actual call, or we would'nt be
testing mediaonly :)
with Server's transfer=mediaonly I have quite immediatly the 'ready to
transfer' message but cant' hear nothing (I see udp activity on I and T
anyway)
10% of the tryes the transfer is not so immediate and I can hear a
couple of seconds of monkey screams
(the cdr works ok, billing the entire call)
client I extensions.conf
[paps]
exten => _X.,1,Dial(IAX2/${LOGIN}:${PWD}@${SERVER}/${EXTEN})
exten => _X.,n,Hangup
routing server S extensions.conf
[default]
exten => _X.,n,Dial(IAX2/server:pwd@192.168.0.95/${EXTEN})
exten => _X.,n,Hangup
termination server T extensions.conf
[incoming]
exten => _X.,1,Answer
exten => _X.,n,Playback(tt-monkeys) <-- .gsm
exten => _X.,n,Echo
exten => _X.,n,Hangup
Kevin P. Fleming
2007-Mar-16 08:40 UTC
[asterisk-users] transfer=mediaonly : can't hear nothing
Simone Cittadini wrote:> I've setup this simple configuration to test the new mediaonly iax > feature in 1.4 :What version of Asterisk exactly?> Input (client) -> Server (routing) -> Termination > transfer=no transfer=mediaonly transfer=noThis doesn't make any sense; the 'Server' is going to have two 'friend' entries for the other systems. Are you saying that you have transfer=mediaonly set for both 'friends'? The transfer settings on the endpoints are not going to matter; only the server(s) in the middle of the call path will pay attention to them.> with Server's transfer=mediaonly I have quite immediatly the 'ready to > transfer' message but cant' hear nothing (I see udp activity on I and T > anyway) > 10% of the tryes the transfer is not so immediate and I can hear a > couple of seconds of monkey screams > (the cdr works ok, billing the entire call)Once you have answered the questions above we can help you debug this more thoroughly.