[OpenSIPS-Users] Info about rtpproxy and opensips working together on different hosts...

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Apr 28 11:29:08 CEST 2010


Hi Roberto,

I checked the RTPproxy code and the only case where you get the 
"ERR:handle_command: can't create listener " error without any previous 
error is for cases:
    - the system user you are running rtpproxy as, does not have 
permission to bind on the listening IP (- l option in rtpproxy)
    - you already have another application (like Asterisk) already using 
the same listening IP and port range as configured in RTPProxy.

Regards,
Bogdan

Roberto Ovani wrote:
> Il giovedì 22/04/10 18.37, Laszlo ha scritto:
>>
>>
>> 2010/4/22 Roberto Ovani <roberto.ebay at gmail.com 
>> <mailto:roberto.ebay at gmail.com>>
>>
>>     Il mercoledì 21/04/10 14.30, Laszlo ha scritto:
>>>
>>>
>>>     2010/4/21 Roberto Ovani <roberto.ebay at gmail.com
>>>     <mailto:roberto.ebay at gmail.com>>
>>>
>>>         Il mercoledì 21/04/10 13.49, Laszlo ha scritto:
>>>>         gcc -v
>>>         _The host with OPENSIPS :
>>>         _Using built-in specs.
>>>         Target: i486-linux-gnu
>>>         Configured with: ../src/configure -v
>>>         --with-pkgversion='Ubuntu 4.4.1-4ubuntu9'
>>>         --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
>>>         --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
>>>         --enable-shared --enable-multiarch --enable-linker-build-id
>>>         --with-system-zlib --libexecdir=/usr/lib
>>>         --without-included-gettext --enable-threads=posix
>>>         --with-gxx-include-dir=/usr/include/c++/4.4
>>>         --program-suffix=-4.4 --enable-nls --enable-clocale=gnu
>>>         --enable-libstdcxx-debug --enable-objc-gc
>>>         --enable-targets=all --disable-werror --with-arch-32=i486
>>>         --with-tune=generic --enable-checking=release
>>>         --build=i486-linux-gnu --host=i486-linux-gnu
>>>         --target=i486-linux-gnu
>>>         Thread model: posix
>>>         gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu9)
>>>         _
>>>         The host with RTPPROXY : _
>>>         Using built-in specs.
>>>         Target: i486-linux-gnu
>>>         Configured with: ../src/configure -v
>>>         --with-pkgversion='Ubuntu 4.3.2-1ubuntu11'
>>>         --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs
>>>         --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr
>>>         --enable-shared --with-system-zlib --libexecdir=/usr/lib
>>>         --without-included-gettext --enable-threads=posix
>>>         --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3
>>>         --program-suffix=-4.3 --enable-clocale=gnu
>>>         --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr
>>>         --enable-targets=all --enable-checking=release
>>>         --build=i486-linux-gnu --host=i486-linux-gnu
>>>         --target=i486-linux-gnu
>>>         Thread model: posix
>>>         gcc version 4.3.2 (Ubuntu 4.3.2-1ubuntu11) _
>>>
>>>         _Thanks in advance
>>>         Roberto
>>>
>>>
>>>     By default it will compile with -O2 optimization. Can you
>>>     recompile it with -O0
>>>     Please run CFLAGS=-O0 ./configure, then make and make install
>>>     and restart rtpproxy.
>>>
>>>     -Laszlo
>>>
>>>      
>>>
>>
>>
>>     I'm having problems with all: opensips-rtpproxy etc...
>>     so, I'm trying to show my system  :
>>     *
>>     1st LOCATION *:
>>     Wan Side : opensips.roberto.org <http://opensips.roberto.org> 
>>     (it's not real, but for example)
>>     Lan Side, there are:
>>     - opensips server (i forwarded 5060 udp to Opensips-server's lan
>>     address)
>>     - a sip client on a laptop, user 1003 (sjphone for mac)
>>
>>     *2nd LOCATION* :
>>     Wan Side : rtpproxy.roberto.org <http://rtpproxy.roberto.org>
>>     Lan side, there are :
>>     - RtpProxy server (i forwarderd 7890udp to RTPPRoxy-Server's lan
>>     address, and also the range between udp 10000 and udp 64999, to
>>     be sure)
>>     - a sip client, user 1002 (X-Lite for windows)
>>
>>     *3rd LOCATION (home-sweet-home)* :
>>     In the Lan, there's a Sip client, user 1000 (Sjphone on my macbook)
>>
>>     In attachment, there's my opensips.cfg.
>>
>>     I need to create a system that can make call everyone to
>>     everyother (independently from WHERE the clients ARE, if in the
>>     same lan as servers, or behind nats, etc... )
>>
>>     Could you please tell me some example cfg code for this purpose?
>>
>>     If you need, I also have logs from Opensips-server-host and from
>>     RTPProxy-host (var/log/syslog) and a bit of tcpdump. This log
>>     refers to a call from 1000 to 1003 and from 1003 to 1000.
>>
>>     I used the one from Gonçalves' Book (about opensips 1.6), but I'm
>>     having problems.... I'm also a newbie, so it's still a bit hard
>>     for me to have a complete vision of everything in this voip
>>     system....
>>
>>
>>     Thanks in advance
>>     Roberto
>>
>>
>> Did you recompile rtpproxy like how I mentioned?
>> BTW, I have found something, maybe it can be interesting for you 
>> too(and can be related to your problem):
>>
>> http://www.mail-archive.com/users@rtpproxy.org/msg00113.html
>>
>> -Laszlo
>>
>>
> Sorry, I didn't answer your last question.
> So... yes, i recompiled wit the flags you mentioned, but the problem 
> is still the same. Same logs.
> I'll read your link, thanks in advance :)
>
> Bye
> roberto
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list