Re: [SR-Users] TCP connection select problem

2016-03-31 Thread Daniel-Constantin Mierla
Finally, after releasing Kamailio 4.4.0, I got some time to look at the sip trace you sent me. It is only from port 8000 to outside. I need to see also the traffic towards the internal network. Seeing only what is sent out doesn't help, because I need to see what kamailio receives from internal net

Re: [SR-Users] TCP connection select problem

2016-03-23 Thread 张顺通
have a nice trip, :). 2016-03-23 19:23 GMT+08:00 Daniel-Constantin Mierla : > Had to go in a trip -- will look at it when I get the first chance. > > Daniel > > > On 23/03/16 11:53, 张顺通 wrote: > > Have provided Callid, thanks. > > register callid > 2bbadd72-d733-434e-bd06-45d9ddb5289b > a7fa5d8f-

Re: [SR-Users] TCP connection select problem

2016-03-23 Thread Daniel-Constantin Mierla
Had to go in a trip -- will look at it when I get the first chance. Daniel On 23/03/16 11:53, 张顺通 wrote: > Have provided Callid, thanks. > > register callid > 2bbadd72-d733-434e-bd06-45d9ddb5289b > a7fa5d8f-1e46-4605-9a6e-08751bc75fee > > call > 626fec11-684b-1234-d0b9-ecf4bbde9ef8 > > 2016-03-21

Re: [SR-Users] TCP connection select problem

2016-03-23 Thread 张顺通
Have provided Callid, thanks. register callid 2bbadd72-d733-434e-bd06-45d9ddb5289b a7fa5d8f-1e46-4605-9a6e-08751bc75fee call 626fec11-684b-1234-d0b9-ecf4bbde9ef8 2016-03-21 18:34 GMT+08:00 张顺通 : > Have provided Callid, thanks. > > register callid > 2bbadd72-d733-434e-bd06-45d9ddb5289b > a7fa5d8

Re: [SR-Users] TCP connection select problem

2016-03-21 Thread 张顺通
Have provided Callid, thanks. register callid 2bbadd72-d733-434e-bd06-45d9ddb5289b a7fa5d8f-1e46-4605-9a6e-08751bc75fee call 626fec11-684b-1234-d0b9-ecf4bbde9ef8 2016-03-21 16:45 GMT+08:00 Daniel-Constantin Mierla : > Quickly looked at the file and I see several calls there. All of them are > e

Re: [SR-Users] TCP connection select problem

2016-03-21 Thread Daniel-Constantin Mierla
Quickly looked at the file and I see several calls there. All of them are exposing the issue? Or can you give the call-id of the call that didn't work fine? I don't want to lose time looking at all the calls, knowing one that is wrong is enough... Cheers, Daniel On 21/03/16 03:50, 张顺通 wrote: > I

Re: [SR-Users] TCP connection select problem

2016-03-20 Thread 张顺通
I Send you pcap Separatly. Sorry, can't send pcap to mail list. Thanks 2016-03-15 16:08 GMT+08:00 Daniel-Constantin Mierla : > Can you attach a pcap with such situation, which includes the REGISTER, > replies and the call showing the issue? > > Cheers, > Daniel > > > On 15/03/16 03:36, 张顺通 wrot

Re: [SR-Users] TCP connection select problem

2016-03-15 Thread Daniel-Constantin Mierla
Can you attach a pcap with such situation, which includes the REGISTER, replies and the call showing the issue? Cheers, Daniel On 15/03/16 03:36, 张顺通 wrote: > sorry,I have not expressed clearly. > > kamailio will recive two REGISTER at a time.In first 200 OK to > REGISTER, Server will tell Linpho

Re: [SR-Users] TCP connection select problem

2016-03-14 Thread 张顺通
sorry,I have not expressed clearly. kamailio will recive two REGISTER at a time.In first 200 OK to REGISTER, Server will tell Linphone the Linphone Nat Ip and Port. like this: Via:SIP/2.0/TCP 30.9.2.1:50691 ;received=42.1.7.1;alias;branch=z9hG4bK.kmhC2L9Rf;rport=33746 and Linphone will know it's o

Re: [SR-Users] TCP connection select problem

2016-03-14 Thread Daniel-Constantin Mierla
Indeed, the ports are different, that's why adding received is important in this situation. While local ip and local port are in most of the cases also unique for devices behind a nat router, it is not 100% true, because there can be many layers of NATs, which can result in seeing same local ip/po

Re: [SR-Users] TCP connection select problem

2016-03-14 Thread 张顺通
source IP is same, But port is different。 like INVITE sip:Linphone_nat_Ip:Linphone_nat_port;tcp; 2016-03-14 18:26 GMT+08:00 Daniel-Constantin Mierla : > Adding received information to Path helps to identify properly the > connection to be used. Because both devices are behind the same NAT, > p

Re: [SR-Users] TCP connection select problem

2016-03-14 Thread Daniel-Constantin Mierla
Adding received information to Path helps to identify properly the connection to be used. Because both devices are behind the same NAT, practically they show the same source IP when they send traffic to server. Cheers, Daniel On 14/03/16 04:05, 张顺通 wrote: > KA_EDGE have two IP,external public IP

Re: [SR-Users] TCP connection select problem

2016-03-13 Thread 张顺通
KA_EDGE have two IP,external public IP and internal IP. I add modparam("path", "use_received", 1) and replace add_path() to add_path_received() in edge server. add modparam("registrar", "path_use_received", 1) in KA_REGISTER server. DB path info --> This kind of situation very little,It is not

Re: [SR-Users] TCP connection select problem

2016-03-09 Thread Daniel Tryba
On Wed, Mar 09, 2016 at 10:05:11PM +0800, 张顺通 wrote: > Yes,Use Path in DB. like > KA_REGISTER wile the path info in DB. Should not be a problem if you use the use_received options in http://kamailio.org/docs/modules/stable/modules/path.html#idp135216 and http://kamailio.org/docs/modules/stable/mo

Re: [SR-Users] TCP connection select problem

2016-03-09 Thread 张顺通
Yes,Use Path in DB. like KA_REGISTER wile the path info in DB. Linphone behind the same NAT router. 2016-03-09 14:49 GMT+08:00 Daniel-Constantin Mierla : > Are you using Path with received parameter on KA Edge? > > Are bot Linphone behind the same NAT router? > > Cheers, > Daniel > > > On 08/03

Re: [SR-Users] TCP connection select problem

2016-03-08 Thread Daniel-Constantin Mierla
Are you using Path with received parameter on KA Edge? Are bot Linphone behind the same NAT router? Cheers, Daniel On 08/03/16 08:08, 张顺通 wrote: > my program structure is > > LinPhone--TCP--KA_EDGE--UDP--KA_REGISTER--UDP--FS > > KA_EDGE:all clients TCP connection is in t

Re: [SR-Users] TCP connection select problem

2016-03-08 Thread 张顺通
Someone had this problem? Or It's a bug that has been resolved 2016-03-08 15:17 GMT+08:00 张顺通 : > kamailio version is 4.2.1 > > 2016-03-08 15:08 GMT+08:00 张顺通 : > >> my program structure is >> >> LinPhone--TCP--KA_EDGE--UDP--KA_REGISTER--UDP--FS >> >> KA_EDGE:all clients T

Re: [SR-Users] TCP connection select problem

2016-03-07 Thread 张顺通
kamailio version is 4.2.1 2016-03-08 15:08 GMT+08:00 张顺通 : > my program structure is > > LinPhone--TCP--KA_EDGE--UDP--KA_REGISTER--UDP--FS > > KA_EDGE:all clients TCP connection is in this server > KS_REGSITER:all register info is process here > > when User A want to use p

[SR-Users] TCP connection select problem

2016-03-07 Thread 张顺通
my program structure is LinPhone--TCP--KA_EDGE--UDP--KA_REGISTER--UDP--FS KA_EDGE:all clients TCP connection is in this server KS_REGSITER:all register info is process here when User A want to use program,Linphone send SIP REGISTER to KA_EDGE by TCP(and TCP is always pre