Hello. For those who have the same problem i have found a "work-around" solution.
In the pyhton file, for example mediaproxy.py, there is a #! at the beggining of the file with the route to the bin. You have to change this for :
[prompt %]which pyhton2.3 /usr/local/bin/python2.3
this path is replaced in the mediaproxy.py file :
#!/usr/local/bin/python2.3
'''Provides a RTP Proxy server to be used in conjunction with SER's mediaproxy module. MediaProxy stands in between the 2 SIP clients participating in a VoIP conversation and forwards the RTP and RTCP streams between them, allowing the SIP clients to work behind NAT without special settings on their behalf. MediaProxy must have a public IP. ''' ....
at least that works for me ! Goos Luck.
Ricardo Javier Martinez Ogalde Ingeniero de Desarrollo VOISS NET S.A. Cisco Certified Network Associate * : (56 2) 240 81 96 * : (56 2) 245 74 95 * : rmartinez@redvoiss.net
-----Mensaje original----- De: Ricardo Martinez [mailto:rmartinez@redvoiss.net] Enviado el: Martes, 08 de Febrero de 2005 13:03 Para: 'serusers@lists.iptel.org' Asunto: [Serusers] Question on How Start MEDIAPROXY.
Hello list. I have a question on How to Start Mediaproxy server. When i start mediaproxy from the console i obtain the following error:
[root@sipproxy mediaproxy]# ./mediaproxy.py File "./mediaproxy.py", line 84 print >>sys.stderr, "Mediaproxy error: %s. Exiting." % why ^ SyntaxError: invalid syntax
however i have installed Python2.3 [root@sipproxy mediaproxy]# python python python1.5 python2 python2.2 python2.3
When i start mediaproxy with the next lines it works ok :
[root@sipproxy mediaproxy]# python2.3 mediaproxy.py
So i made a test and i started mediaproxy with the original python.
[root@sipproxy mediaproxy]# python mediaproxy.py File "mediaproxy.py", line 84 print >>sys.stderr, "Mediaproxy error: %s. Exiting." % why ^ SyntaxError: invalid syntax
And i obtained the same initial error. My question is : Is there a way to force mediaproxy to start with the pyhton2.3? and therefore make mediaproxy start with %./mediaproxy.py and pyhton2.3
Hope that someone can help me here.
Thanks in advance,
Ricardo Martinez.-
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers