[OpenSER-Devel] another media-relay problem

Juha Heinanen jh at tutpro.com
Thu Jun 5 12:01:51 CEST 2008


after adding

 echo 1 > /proc/sys/net/ipv4/ip_forward

to /etc/init.d/mediaproxy-relay start case media-relay started at boot.

when i made the fist test call i got the errors below.  after restarting
relay and dispatcher, the test call worked without problems.

-- juha

Jun  5 12:46:37 localhost media-dispatcher[5812]: [OpenSERControlProtocol,0,] Issuing "update" command to relay at 127.0.0.1
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client] Received new SDP offer
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client] Traceback (most recent call last):
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/relay.py", line 119, in lineReceived
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]     response = self.factory.parent.got_command(self.factory.host, self.command, self.headers)
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/relay.py", line 306, in got_command
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]     local_media = self.session_manager.update_session(dispatcher, **headers)
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/mediacontrol.py", line 609, in update_session
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]     session = self.sessions[(call_id, from_tag)] = Session(self, dispatcher, call_id, from_tag, from_uri, to_tag, to_uri, cseq, user_agent, media, is_downstream, is_caller_cseq)
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/mediacontrol.py", line 348, in __init__
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]     self.update_media(cseq, to_tag, user_agent, media_list, is_downstream, is_caller_cseq)
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/mediacontrol.py", line 389, in update_media
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]     stream = MediaStream(self, media_type, media_ip, media_port, party, media_direction)
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/mediacontrol.py", line 245, in __init__
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]     self.caller = MediaParty(self)
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/mediacontrol.py", line 223, in __init__
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]     self.listener_rtp = reactor.listenUDP(port_rtp, StreamListenerProtocol(), interface=default_host_ip)
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py", line 388, in listenUDP
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]     p.startListening()
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/usr/lib/python2.5/site-packages/twisted/internet/udp.py", line 84, in startListening
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]     self._bindSocket()
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/usr/lib/python2.5/site-packages/twisted/internet/udp.py", line 90, in _bindSocket
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]     skt.bind((self.interface, self.port))
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client]   File "<string>", line 1, in bind
Jun  5 12:46:37 localhost media-relay[5825]: [RelayClientProtocol,client] TypeError: coercing to Unicode: need string or buffer, NoneType found
Jun  5 12:46:37 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error: Traceback: <type 'exceptions.TypeError'>: int argument required
Jun  5 12:46:37 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     /usr/lib/python2.5/site-packages/twisted/protocols/basic.py:149:dataReceived
Jun  5 12:46:37 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     /var/lib/python-support/python2.5/mediaproxy/dispatcher.py:223:lineReceived
Jun  5 12:46:37 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     /usr/lib/python2.5/site-packages/twisted/internet/defer.py:261:errback
Jun  5 12:46:37 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     /usr/lib/python2.5/site-packages/twisted/internet/defer.py:304:_startRunCallbacks
Jun  5 12:46:37 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     --- <exception caught here> ---
Jun  5 12:46:37 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     /usr/lib/python2.5/site-packages/twisted/internet/defer.py:317:_runCallbacks
Jun  5 12:46:37 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     /var/lib/python-support/python2.5/mediaproxy/dispatcher.py:334:_relay_error
Jun  5 12:46:37 localhost /usr/sbin/openser[5959]: ERROR:mediaproxy:use_media_proxy: mediaproxy returned error 
Jun  5 12:46:54 localhost media-dispatcher[5812]: [OpenSERControlProtocol,1,] Issuing "update" command to relay at 127.0.0.1
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client] Received new SDP offer
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client] Traceback (most recent call last):
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/relay.py", line 119, in lineReceived
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]     response = self.factory.parent.got_command(self.factory.host, self.command, self.headers)
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/relay.py", line 306, in got_command
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]     local_media = self.session_manager.update_session(dispatcher, **headers)
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/mediacontrol.py", line 609, in update_session
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]     session = self.sessions[(call_id, from_tag)] = Session(self, dispatcher, call_id, from_tag, from_uri, to_tag, to_uri, cseq, user_agent, media, is_downstream, is_caller_cseq)
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/mediacontrol.py", line 348, in __init__
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]     self.update_media(cseq, to_tag, user_agent, media_list, is_downstream, is_caller_cseq)
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/mediacontrol.py", line 389, in update_media
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]     stream = MediaStream(self, media_type, media_ip, media_port, party, media_direction)
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/mediacontrol.py", line 245, in __init__
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]     self.caller = MediaParty(self)
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/var/lib/python-support/python2.5/mediaproxy/mediacontrol.py", line 223, in __init__
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]     self.listener_rtp = reactor.listenUDP(port_rtp, StreamListenerProtocol(), interface=default_host_ip)
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py", line 388, in listenUDP
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]     p.startListening()
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/usr/lib/python2.5/site-packages/twisted/internet/udp.py", line 84, in startListening
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]     self._bindSocket()
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]   File "/usr/lib/python2.5/site-packages/twisted/internet/udp.py", line 90, in _bindSocket
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]     skt.bind((self.interface, self.port))
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client]   File "<string>", line 1, in bind
Jun  5 12:46:54 localhost media-relay[5825]: [RelayClientProtocol,client] TypeError: coercing to Unicode: need string or buffer, NoneType found
Jun  5 12:46:54 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error: Traceback: <type 'exceptions.TypeError'>: int argument required
Jun  5 12:46:54 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     /usr/lib/python2.5/site-packages/twisted/protocols/basic.py:149:dataReceived
Jun  5 12:46:54 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     /var/lib/python-support/python2.5/mediaproxy/dispatcher.py:223:lineReceived
Jun  5 12:46:54 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     /usr/lib/python2.5/site-packages/twisted/internet/defer.py:261:errback
Jun  5 12:46:54 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     /usr/lib/python2.5/site-packages/twisted/internet/defer.py:304:_startRunCallbacks
Jun  5 12:46:54 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     --- <exception caught here> ---
Jun  5 12:46:54 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     /usr/lib/python2.5/site-packages/twisted/internet/defer.py:317:_runCallbacks
Jun  5 12:46:54 localhost media-dispatcher[5812]: [RelayServerProtocol,0,127.0.0.1] error:     /var/lib/python-support/python2.5/mediaproxy/dispatcher.py:334:_relay_error
Jun  5 12:46:54 localhost /usr/sbin/openser[5962]: ERROR:mediaproxy:use_media_proxy: mediaproxy returned error 
Jun  5 12:46:55 localhost /usr/sbin/openser[5959]: INFO: Routing in-dialog ACK from <sip:jh at test.fi> to <sip:+35832345671 at 192.168.1.2:59319> 
Jun  5 12:47:34 localhost media-dispatcher[5812]: [OpenSERControlProtocol,0,] error: Error processing request: Non-update command received from OpenSER for unknown session
Jun  5 12:47:34 localhost /usr/sbin/openser[5959]: INFO: Routing in-dialog BYE from <sip:2345671 at test.fi> to <sip:jh at 192.98.101.10:5074> 



More information about the Devel mailing list