[SR-Users] Kamailio v4.0.2, iPhone, TCP connection and PJLIB

Roberto Fichera kernel at tekno-soft.it
Tue Jul 30 18:44:41 CEST 2013


Hi All,

Sorry for cross-posting this email to PJLIB, but maybe there are some things related.
Anyhow! I'm having problems on kamailio v4.0.2 under Fedora 18 64bit and TCP client like iPhone using PJSIP as SIP library.
Basically once the iPhone side in close the call (TCP->UDP) I'm getting the error below. Kamailio is running under a VPS
without
NATed network so it uses a real public address. Furthermore, note that tcp_main is answering to a 192.168.2.98 ip address
which is the iPhone client. This looks really strange to me since it should answer directly to the public/port used for
the registration
and not to a such kind of reserved address. The kamilio configuration is basically the default with a very few changes
like NAT, rtpproxy and postgresql backend.

This problems doesn't happen at all when using UDP->UDP calls. But I cannot use it because as you certain know UDP
connection under iPhone will not work when the application run in background mode.

Can someone suggest how to solve this issue or maybe suggest a TCP working solution for iPhone?

Thanks in advance.
Roberto Fichera.

Jul 30 16:21:53 proxy /usr/sbin/kamailio[9502]: ERROR: <core> [tcp_main.c:4432]: tcpconn_main_timeout(): connect
192.168.2.98:5060 failed (timeout)
Jul 30 16:21:55 proxy rtpproxy[2262]: DBUG:get_command: received command "9483_9 D
12d1d19926c4ff742a52f0c855b1bb83 at 94.94.x.x:5060 as74e0c388 GROahimCK6KTrl5CkYEg7nuoPIIXZ8cj"
Jul 30 16:21:55 proxy rtpproxy[2262]: INFO:handle_delete: forcefully deleting session 1 on ports 15604/17354
Jul 30 16:21:55 proxy rtpproxy[2262]: INFO:remove_session: RTP stats: 354 in from callee, 603 in from caller, 957
relayed, 0 dropped
Jul 30 16:21:55 proxy rtpproxy[2262]: INFO:remove_session: RTCP stats: 5 in from callee, 2 in from caller, 7 relayed, 0
dropped
Jul 30 16:21:55 proxy rtpproxy[2262]: INFO:remove_session: session on ports 15604/17354 is cleaned up
Jul 30 16:21:55 proxy rtpproxy[2262]: DBUG:doreply: sending reply "9483_9 0
Jul 30 16:21:55 proxy rtpproxy[2262]: "
Jul 30 16:22:04 proxy /usr/sbin/kamailio[9502]: ERROR: <core> [tcp_main.c:4432]: tcpconn_main_timeout(): connect
192.168.2.98:5060 failed (timeout)
Jul 30 16:22:14 proxy rtpproxy[2262]: DBUG:get_command: received command "9496_16 D
12d1d19926c4ff742a52f0c855b1bb83 at 94.94.x.x:5060 GROahimCK6KTrl5CkYEg7nuoPIIXZ8cj as74e0c388"
Jul 30 16:22:14 proxy rtpproxy[2262]: INFO:handle_command: delete request failed: session
12d1d19926c4ff742a52f0c855b1bb83 at 94.94.x.x:5060, tags GROahimCK6KTrl5CkYEg7nuoPIIXZ8cj/as74e0c388 not found
Jul 30 16:22:14 proxy rtpproxy[2262]: DBUG:doreply: sending reply "9496_16 E8
Jul 30 16:22:14 proxy rtpproxy[2262]: "




More information about the sr-users mailing list