Hi
I have two network interfaces on my system in which one interface is connected to my office WAN/LAN and other is connected to SIP private network connected to PSTN.
Now, I want to access sip server using the internal IP of our office LAN as proxy.
*192.168.6.2 (Office LAN IP as proxy) -> 10.50.185.2 (SIP)*
So on machine 192.168.6.2, I setup kamailio as SIP proxy server so that our office LAN machine can connect to SIP server directly via SIP proxy.
I used config defined in - *https://github.com/kamailio/kamailio/blob/master/misc/examples/mixed/kamaili... https://github.com/kamailio/kamailio/blob/master/misc/examples/mixed/kamailio-minimal-proxy.cfg and I changed the local domain alias with SIP IP -* 10.50.185.2*.
When I try to connect to SIP via proxy using *linphone* (UDP) I got below errors in* /var/log/syslog* and shows *connection in progress* every time.
Nov 23 15:15:49 ubantudesk /usr/sbin/kamailio[25784]: WARNING: {1 20 REGISTER ek82LguQ6z} sanity [sanity.c:585]: check_cl(): content length header missing in request Nov 23 15:15:53 ubantudesk /usr/sbin/kamailio[25785]: WARNING: {1 20 REGISTER ek82LguQ6z} sanity [sanity.c:585]: check_cl(): content length header missing in request Nov 23 15:15:57 ubantudesk /usr/sbin/kamailio[25784]: WARNING: {1 20 REGISTER ek82LguQ6z} sanity [sanity.c:585]: check_cl(): content length header missing in request Nov 23 15:16:01 ubantudesk /usr/sbin/kamailio[25785]: WARNING: {1 20 REGISTER ek82LguQ6z} sanity [sanity.c:585]: check_cl(): content length header missing in request Nov 23 15:16:05 ubantudesk /usr/sbin/kamailio[25784]: WARNING: {1 20 REGISTER ek82LguQ6z} sanity [sanity.c:585]: check_cl(): content length header missing in request
Can you help me what I should do?
If your clients will be registering/calling from a private net, then you need to add that interface, i.e.:
listen=udp:192.168.6.2:5060 listen=udp:10.50.185.2:5060
alias=192.168.6.2 alias=10.50.185.2
this will allow kamailio to serve requests on both interfaces.
But this is not all you need, you also need to install and configure an rtpproxy that will proxy the RTP streams.
Hope that helps
Regards,
David Villasmil email: david.villasmil.work@gmail.com phone: +34669448337
On Sun, Nov 24, 2019 at 9:18 AM Ashwini Kumar < ashwinikumar@industrybuying.com> wrote:
Hi
I have two network interfaces on my system in which one interface is connected to my office WAN/LAN and other is connected to SIP private network connected to PSTN.
Now, I want to access sip server using the internal IP of our office LAN as proxy.
*192.168.6.2 (Office LAN IP as proxy) -> 10.50.185.2 (SIP)*
So on machine 192.168.6.2, I setup kamailio as SIP proxy server so that our office LAN machine can connect to SIP server directly via SIP proxy.
I used config defined in - *https://github.com/kamailio/kamailio/blob/master/misc/examples/mixed/kamaili... https://github.com/kamailio/kamailio/blob/master/misc/examples/mixed/kamailio-minimal-proxy.cfg and I changed the local domain alias with SIP IP -* 10.50.185.2*.
When I try to connect to SIP via proxy using *linphone* (UDP) I got below errors in* /var/log/syslog* and shows *connection in progress* every time.
Nov 23 15:15:49 ubantudesk /usr/sbin/kamailio[25784]: WARNING: {1 20 REGISTER ek82LguQ6z} sanity [sanity.c:585]: check_cl(): content length header missing in request Nov 23 15:15:53 ubantudesk /usr/sbin/kamailio[25785]: WARNING: {1 20 REGISTER ek82LguQ6z} sanity [sanity.c:585]: check_cl(): content length header missing in request Nov 23 15:15:57 ubantudesk /usr/sbin/kamailio[25784]: WARNING: {1 20 REGISTER ek82LguQ6z} sanity [sanity.c:585]: check_cl(): content length header missing in request Nov 23 15:16:01 ubantudesk /usr/sbin/kamailio[25785]: WARNING: {1 20 REGISTER ek82LguQ6z} sanity [sanity.c:585]: check_cl(): content length header missing in request Nov 23 15:16:05 ubantudesk /usr/sbin/kamailio[25784]: WARNING: {1 20 REGISTER ek82LguQ6z} sanity [sanity.c:585]: check_cl(): content length header missing in request
Can you help me what I should do?
--
*Thanks & Regards,*
*Ashwini Kumar | Technology |*
www.industrybuying.com |
Ghitorni, Delhi - 110030 | India |
È*+91-8802137782* | * ashwinikumar@industrybuying.com |
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users