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

2013-08-30 Thread Roberto Fichera
On 08/16/2013 12:29 PM, Roberto Fichera wrote: > On 08/14/2013 09:58 PM, Vitaliy Aleksandrov wrote: >> On 08/14/2013 07:32 PM, Roberto Fichera wrote: >>> On 08/14/2013 04:36 PM, Vitaliy Aleksandrov wrote: If you won't be able to disable SIP ALG on your router you can fill $avp(received)

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

2013-08-16 Thread Roberto Fichera
On 08/14/2013 09:58 PM, Vitaliy Aleksandrov wrote: > On 08/14/2013 07:32 PM, Roberto Fichera wrote: >> On 08/14/2013 04:36 PM, Vitaliy Aleksandrov wrote: >>> If you won't be able to disable SIP ALG on your router you can fill >>> $avp(received) manually before calling save(): >>> $avp(receive

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

2013-08-14 Thread Vitaliy Aleksandrov
On 08/14/2013 07:32 PM, Roberto Fichera wrote: On 08/14/2013 04:36 PM, Vitaliy Aleksandrov wrote: If you won't be able to disable SIP ALG on your router you can fill $avp(received) manually before calling save(): $avp(received) = "sip:" + $si + ":" + $sp + ";transport=" + $proto; In this

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

2013-08-14 Thread Roberto Fichera
On 08/14/2013 04:36 PM, Vitaliy Aleksandrov wrote: > If you won't be able to disable SIP ALG on your router you can fill > $avp(received) manually before calling save(): > $avp(received) = "sip:" + $si + ":" + $sp + ";transport=" + $proto; > > In this case all user location records will have

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

2013-08-14 Thread Vitaliy Aleksandrov
If you won't be able to disable SIP ALG on your router you can fill $avp(received) manually before calling save(): $avp(received) = "sip:" + $si + ":" + $sp + ";transport=" + $proto; In this case all user location records will have the "received" attribut even if a UA isn't behind NAT, but

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

2013-08-14 Thread Roberto Fichera
On 08/14/2013 11:51 AM, Roberto Fichera wrote: > On 08/14/2013 11:31 AM, Daniel-Constantin Mierla wrote: > > Hi, > >> Hello, >> >> On 8/14/13 11:26 AM, Roberto Fichera wrote: >>> On 08/14/2013 11:20 AM, Daniel-Constantin Mierla wrote: >>> >>> Hi, >>> Hello, On 8/14/13 11:16 AM, Rober

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

2013-08-14 Thread Roberto Fichera
On 08/14/2013 11:31 AM, Daniel-Constantin Mierla wrote: Hi, > Hello, > > On 8/14/13 11:26 AM, Roberto Fichera wrote: >> On 08/14/2013 11:20 AM, Daniel-Constantin Mierla wrote: >> >> Hi, >> >>> Hello, >>> >>> On 8/14/13 11:16 AM, Roberto Fichera wrote: On 08/14/2013 10:19 AM, Daniel-Constanti

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

2013-08-14 Thread Daniel-Constantin Mierla
Hello, On 8/14/13 11:26 AM, Roberto Fichera wrote: On 08/14/2013 11:20 AM, Daniel-Constantin Mierla wrote: Hi, Hello, On 8/14/13 11:16 AM, Roberto Fichera wrote: On 08/14/2013 10:19 AM, Daniel-Constantin Mierla wrote: Hi, Hello, as you can see in the REGISTER, the phone give a public IP

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

2013-08-14 Thread Roberto Fichera
On 08/14/2013 11:20 AM, Daniel-Constantin Mierla wrote: Hi, > Hello, > > On 8/14/13 11:16 AM, Roberto Fichera wrote: >> On 08/14/2013 10:19 AM, Daniel-Constantin Mierla wrote: >> >> Hi, >> >>> Hello, >>> >>> as you can see in the REGISTER, the phone give a public IP where it can be >>> contacted

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

2013-08-14 Thread Daniel-Constantin Mierla
Hello, On 8/14/13 11:16 AM, Roberto Fichera wrote: On 08/14/2013 10:19 AM, Daniel-Constantin Mierla wrote: Hi, Hello, as you can see in the REGISTER, the phone give a public IP where it can be contacted and kamailio tries to deliver to that address sip:528@94.94.X.X:1274;transport=TCP REGI

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

2013-08-14 Thread Roberto Fichera
On 08/14/2013 10:19 AM, Daniel-Constantin Mierla wrote: Hi, > Hello, > > as you can see in the REGISTER, the phone give a public IP where it can be > contacted and kamailio tries to deliver to > that address sip:528@94.94.X.X:1274;transport=TCP > > REGISTER comes from another port, but that is a

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

2013-08-14 Thread Daniel-Constantin Mierla
Hello, as you can see in the REGISTER, the phone give a public IP where it can be contacted and kamailio tries to deliver to that address sip:528@94.94.X.X:1274;transport=TCP REGISTER comes from another port, but that is allowed in SIP. You should disable stun in the client and let the serve

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

2013-08-13 Thread Roberto Fichera
On 08/13/2013 03:32 PM, Roberto Fichera wrote: > On 08/13/2013 03:25 PM, Daniel-Constantin Mierla wrote: >> Can you get a ngrep trace for a registration as well (for the phone using >> tcp)? > Ok! I'll use pjsua from my local machine connecting in the same way as the > TCP client was doing. The TC

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

2013-08-13 Thread Roberto Fichera
On 08/13/2013 03:25 PM, Daniel-Constantin Mierla wrote: > Can you get a ngrep trace for a registration as well (for the phone using > tcp)? Ok! I'll use pjsua from my local machine connecting in the same way as the TCP client was doing. The TCP client it's an iPhone using the same pjlib library.

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

2013-08-13 Thread Roberto Fichera
On 08/13/2013 03:22 PM, Daniel-Constantin Mierla wrote: > The sip trace is incomplete, I don't see invite with credentials and then I > see an ACK sent via tcp on the right > connection. That means a negative response was received over tcp from the > callee. I think I'll restart from the default

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

2013-08-13 Thread Daniel-Constantin Mierla
Can you get a ngrep trace for a registration as well (for the phone using tcp)? Daniel On 8/13/13 3:23 PM, Roberto Fichera wrote: On 08/13/2013 03:15 PM, Roberto Fichera wrote: On 08/13/2013 02:33 PM, Daniel-Constantin Mierla wrote: Hello, On 8/13/13 1:10 PM, Roberto Fichera wrote: On 08/1

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

2013-08-13 Thread Roberto Fichera
On 08/13/2013 03:15 PM, Roberto Fichera wrote: > On 08/13/2013 02:33 PM, Daniel-Constantin Mierla wrote: >> Hello, >> >> On 8/13/13 1:10 PM, Roberto Fichera wrote: >>> On 08/13/2013 12:03 PM, Daniel-Constantin Mierla wrote: Hello, you should grab the ngrep for such call to understand

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

2013-08-13 Thread Daniel-Constantin Mierla
The sip trace is incomplete, I don't see invite with credentials and then I see an ACK sent via tcp on the right connection. That means a negative response was received over tcp from the callee. Daniel On 8/13/13 3:15 PM, Roberto Fichera wrote: On 08/13/2013 02:33 PM, Daniel-Constantin Mierla

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

2013-08-13 Thread Roberto Fichera
On 08/13/2013 02:33 PM, Daniel-Constantin Mierla wrote: > Hello, > > On 8/13/13 1:10 PM, Roberto Fichera wrote: >> On 08/13/2013 12:03 PM, Daniel-Constantin Mierla wrote: >>> Hello, >>> >>> you should grab the ngrep for such call to understand better what happens. >>> Also, dumping the location re

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

2013-08-13 Thread Daniel-Constantin Mierla
Hello, On 8/13/13 1:10 PM, Roberto Fichera wrote: On 08/13/2013 12:03 PM, Daniel-Constantin Mierla wrote: Hello, you should grab the ngrep for such call to understand better what happens. Also, dumping the location records will be useful (kamctl ul show). Also, be sure that tcp connection li

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

2013-08-13 Thread Roberto Fichera
On 08/13/2013 12:03 PM, Daniel-Constantin Mierla wrote: > Hello, > > you should grab the ngrep for such call to understand better what happens. > Also, dumping the location records will be > useful (kamctl ul show). > > Also, be sure that tcp connection lifetime is long enough to survive > re-reg

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

2013-08-13 Thread Daniel-Constantin Mierla
Hello, you should grab the ngrep for such call to understand better what happens. Also, dumping the location records will be useful (kamctl ul show). Also, be sure that tcp connection lifetime is long enough to survive re-registration. To avoid trying to open connections behind nat, use set_

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

2013-07-30 Thread Roberto Fichera
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 e