Wangji,
Not sure, but normally you need to force_rport and fix_nated_contact at registration, before you save to DB.
Jaime
From: jimmy way jimway71@yahoo.com on 01/12/2003 04:15
To: serusers@lists.iptel.org cc:
Subject: Re: [Serusers] nathelper question
I use Ser verion 0.8.12-0 (rpm). System use redhat linux 7.2 --- jimmy way jimway71@yahoo.com wrote:
Hi all, The problem is I can't register two SIP UAs to SER server.
This is my environment: Internet | router (X.X.X.163) | |Fiber |---- Ser server (X.X.X.166) | | Switch------|---- Trunk Gateway (X.X.X.167) | |---- Other servers | |---- Router( cisco 26xx) (X.X.X.163) | Switch | _____________________|_________________ Users SIP UA1(172.16.2.11) SIP UA2(172.16.2.23)
My ser.cfg like: route{ if ( msg:len > max_len ) {
sl_send_reply("513", "Message too
big"); break; }; record_route(); if (loose_route()) { t_relay(); break; };
if (!method=="BYE") { force_rport(); fix_nated_contact(); };
if (method=="REGISTER") { if (!www_authorize("novsky.com",
"subscriber")) { www_challenge("novsky.com", "1"); break; }; save("location"); break; };
if (method=="INVITE") {
if(!proxy_authorize("novsky.com","subscriber")) {
proxy_challenge("novsky.com","1"); break; }; };
if(uri=~"^sip:6169[0-9]*@[0-9|\.]*") { if(!lookup("location")) { sl_send_reply("404", "Not
Found"); break; }; }else { forward(172.16.255.2,6050); break; }; if (!t_relay()) { sl_reply_error(); }; } I use ethereal to look the packet, first UA1 send REGISTER to SER server, on NAT it use 5060 port, and SER return to corrent address/port. When UA2 send REGISTER to SER server, on NAT it use 1027 port, but SER return to NAT:5060 port and the packet transfered to UA1. So UA2 can't register. I can see the NAT table on route, like udp x.x.x.165:5060 172.16.2.11:5060 x.x.x.165:5060 x.x.x.x.165:5060 udp x.x.x.165:5060 172.16.2.23:5060 x.x.x.165:1025 x.x.x.x.165:1025
Wangji 12/1/03
Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
******************************************************************************* Important. Confidentiality: This communication is intended for the above-named person and may be confidential and/or legally privileged. Any opinions expressed in this communication are not necessarily those of the company. If it has come to you in error you must take no action based on it, nor must you copy or show it to anyone; please delete/destroy and inform the sender immediately.
Monitoring/Viruses Orange may monitor all incoming and outgoing emails in line with current legislation. Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.
Orange PCS Limited is a subsidiary of Orange SA and is registered in England No 2178917, with its address at St James Court, Great Park Road, Almondsbury Park, Bradley Stoke, Bristol BS32 4QJ. *******************************************************************************
Jaime, I have do it, buf still fail. By the way, I really want to see the SIP packets SER sended, recieved and the packets after changed. maybe can see what wrong with it. But I can't do it.
Wangji --- jaime.gil@orange.co.uk wrote:
Wangji,
Not sure, but normally you need to force_rport and fix_nated_contact at registration, before you save to DB.
Jaime
From: jimmy way jimway71@yahoo.com on 01/12/2003 04:15
To: serusers@lists.iptel.org cc:
Subject: Re: [Serusers] nathelper question
I use Ser verion 0.8.12-0 (rpm). System use redhat linux 7.2 --- jimmy way jimway71@yahoo.com wrote:
Hi all, The problem is I can't register two SIP UAs to SER server.
This is my environment: Internet | router (X.X.X.163) | |Fiber |---- Ser server (X.X.X.166) | | Switch------|---- Trunk Gateway (X.X.X.167) | |---- Other servers | |---- Router( cisco 26xx)
(X.X.X.163)
| Switch | _____________________|_________________ Users SIP UA1(172.16.2.11) SIP
UA2(172.16.2.23)
My ser.cfg like: route{ if ( msg:len > max_len ) {
sl_send_reply("513", "Message too
big"); break; }; record_route(); if (loose_route()) { t_relay(); break; };
if (!method=="BYE") { force_rport(); fix_nated_contact(); };
if (method=="REGISTER") { if (!www_authorize("novsky.com",
"subscriber")) { www_challenge("novsky.com", "1"); break; }; save("location"); break; };
if (method=="INVITE") {
if(!proxy_authorize("novsky.com","subscriber")) {
proxy_challenge("novsky.com","1"); break; }; };
if(uri=~"^sip:6169[0-9]*@[0-9|\.]*") { if(!lookup("location")) { sl_send_reply("404",
"Not
Found"); break; }; }else { forward(172.16.255.2,6050); break; }; if (!t_relay()) { sl_reply_error(); }; } I use ethereal to look the packet, first UA1 send REGISTER to SER server, on NAT it use 5060 port,
and
SER return to corrent address/port. When UA2 send REGISTER to SER server, on NAT it
use
1027 port, but SER return to NAT:5060 port and the packet transfered to UA1. So UA2 can't register. I can see the NAT table on route, like udp x.x.x.165:5060 172.16.2.11:5060 x.x.x.165:5060 x.x.x.x.165:5060 udp x.x.x.165:5060 172.16.2.23:5060 x.x.x.165:1025 x.x.x.x.165:1025
Wangji 12/1/03
Do you Yahoo!? Protect your identity with Yahoo! Mail
AddressGuard
http://antispam.yahoo.com/whatsnewfree
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
*******************************************************************************
Important. Confidentiality: This communication is intended for the above-named person and may be confidential and/or legally privileged. Any opinions expressed in this communication are not necessarily those of the company. If it has come to you in error you must take no action based on it, nor must you copy or show it to anyone; please delete/destroy and inform the sender immediately.
Monitoring/Viruses Orange may monitor all incoming and outgoing emails in line with current legislation. Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.
Orange PCS Limited is a subsidiary of Orange SA and is registered in England No 2178917, with its address at St James Court, Great Park Road, Almondsbury Park, Bradley Stoke, Bristol BS32 4QJ.
*******************************************************************************
__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
Please send us SIP message dumps. You can make them by ngrep or ethereal.
Jan.
On 01-12 02:04, jimmy way wrote:
Jaime, I have do it, buf still fail. By the way, I really want to see the SIP packets SER sended, recieved and the packets after changed. maybe can see what wrong with it. But I can't do it.
Wangji --- jaime.gil@orange.co.uk wrote:
Wangji,
Not sure, but normally you need to force_rport and fix_nated_contact at registration, before you save to DB.
Jaime
From: jimmy way jimway71@yahoo.com on 01/12/2003 04:15
To: serusers@lists.iptel.org cc:
Subject: Re: [Serusers] nathelper question
I use Ser verion 0.8.12-0 (rpm). System use redhat linux 7.2 --- jimmy way jimway71@yahoo.com wrote:
Hi all, The problem is I can't register two SIP UAs to SER server.
This is my environment: Internet | router (X.X.X.163) | |Fiber |---- Ser server (X.X.X.166) | | Switch------|---- Trunk Gateway (X.X.X.167) | |---- Other servers | |---- Router( cisco 26xx)
(X.X.X.163)
| Switch | _____________________|_________________ Users SIP UA1(172.16.2.11) SIP
UA2(172.16.2.23)
My ser.cfg like: route{ if ( msg:len > max_len ) {
sl_send_reply("513", "Message too
big"); break; }; record_route(); if (loose_route()) { t_relay(); break; };
if (!method=="BYE") { force_rport(); fix_nated_contact(); };
if (method=="REGISTER") { if (!www_authorize("novsky.com",
"subscriber")) { www_challenge("novsky.com", "1"); break; }; save("location"); break; };
if (method=="INVITE") {
if(!proxy_authorize("novsky.com","subscriber")) {
proxy_challenge("novsky.com","1"); break; }; };
if(uri=~"^sip:6169[0-9]*@[0-9|\.]*") { if(!lookup("location")) { sl_send_reply("404",
"Not
Found"); break; }; }else { forward(172.16.255.2,6050); break; }; if (!t_relay()) { sl_reply_error(); }; } I use ethereal to look the packet, first UA1 send REGISTER to SER server, on NAT it use 5060 port,
and
SER return to corrent address/port. When UA2 send REGISTER to SER server, on NAT it
use
1027 port, but SER return to NAT:5060 port and the packet transfered to UA1. So UA2 can't register. I can see the NAT table on route, like udp x.x.x.165:5060 172.16.2.11:5060 x.x.x.165:5060 x.x.x.x.165:5060 udp x.x.x.165:5060 172.16.2.23:5060 x.x.x.165:1025 x.x.x.x.165:1025
Wangji 12/1/03
Do you Yahoo!? Protect your identity with Yahoo! Mail
AddressGuard
http://antispam.yahoo.com/whatsnewfree
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Important. Confidentiality: This communication is intended for the above-named person and may be confidential and/or legally privileged. Any opinions expressed in this communication are not necessarily those of the company. If it has come to you in error you must take no action based on it, nor must you copy or show it to anyone; please delete/destroy and inform the sender immediately.
Monitoring/Viruses Orange may monitor all incoming and outgoing emails in line with current legislation. Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free.
Orange PCS Limited is a subsidiary of Orange SA and is registered in England No 2178917, with its address at St James Court, Great Park Road, Almondsbury Park, Bradley Stoke, Bristol BS32 4QJ.
Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hi all,
Yes, I am trying to do it but late. Because the system is in working and I can't stop it. Today I only finished preparing a testing system.
Wangji 12/3/03
--- Jan Janak jan@iptel.org wrote:
Please send us SIP message dumps. You can make them by ngrep or ethereal.
Jan.
On 01-12 02:04, jimmy way wrote:
Jaime, I have do it, buf still fail. By the way, I really want to see the SIP packets
SER
sended, recieved and the packets after changed. maybe can see what wrong with it. But I can't do
it.
Wangji --- jaime.gil@orange.co.uk wrote:
Wangji,
Not sure, but normally you need to force_rport
and
fix_nated_contact at registration, before you save to DB.
Jaime
From: jimmy way jimway71@yahoo.com on
01/12/2003
04:15
To: serusers@lists.iptel.org cc:
Subject: Re: [Serusers] nathelper question
I use Ser verion 0.8.12-0 (rpm). System use redhat linux 7.2 --- jimmy way jimway71@yahoo.com wrote:
Hi all, The problem is I can't register two SIP UAs
to
SER server.
This is my environment: Internet | router (X.X.X.163) | |Fiber |---- Ser server (X.X.X.166) | | Switch------|---- Trunk Gateway (X.X.X.167) | |---- Other servers | |---- Router( cisco 26xx)
(X.X.X.163)
| Switch | _____________________|_________________ Users SIP UA1(172.16.2.11) SIP
UA2(172.16.2.23)
My ser.cfg like: route{ if ( msg:len > max_len ) {
sl_send_reply("513", "Message
too
big"); break; }; record_route(); if (loose_route()) { t_relay(); break; };
if (!method=="BYE") { force_rport(); fix_nated_contact(); };
if (method=="REGISTER") { if (!www_authorize("novsky.com",
"subscriber")) {
www_challenge("novsky.com",
"1"); break; }; save("location"); break; };
if (method=="INVITE") {
if(!proxy_authorize("novsky.com","subscriber")) {
proxy_challenge("novsky.com","1"); break; }; };
if(uri=~"^sip:6169[0-9]*@[0-9|\.]*")
{
if(!lookup("location")) { sl_send_reply("404",
"Not
Found"); break; }; }else { forward(172.16.255.2,6050); break; }; if (!t_relay()) { sl_reply_error(); }; } I use ethereal to look the packet, first UA1
send
REGISTER to SER server, on NAT it use 5060
port,
and
SER return to corrent address/port. When UA2 send REGISTER to SER server, on NAT
it
use
1027 port, but SER return to NAT:5060 port and
the
packet transfered to UA1. So UA2 can't register. I can see the NAT table on route, like udp x.x.x.165:5060 172.16.2.11:5060
x.x.x.165:5060
x.x.x.x.165:5060 udp x.x.x.165:5060 172.16.2.23:5060
x.x.x.165:1025
x.x.x.x.165:1025
Wangji 12/1/03
Do you Yahoo!? Protect your identity with Yahoo! Mail
AddressGuard
Serusers mailing list serusers@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
Do you Yahoo!? Protect your identity with Yahoo! Mail
AddressGuard
http://antispam.yahoo.com/whatsnewfree
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
*******************************************************************************
Important. Confidentiality: This communication is intended
for
the above-named person and may be confidential and/or legally privileged.
Any
opinions expressed in this communication are not necessarily those of the
=== message truncated ===
__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
Hi all, First ping_nated_only param of nathelper is unusable. and nathelper function is_nated? is unusable too. I used testing src_ip of NAT address instead of it. natping function is no effect for cisco route(cisco 2622 with ios 12.2T)? I used the function but fail at last. The NAT mirror lost at last. I only can use register in 900 seconds. And I even don't know if it's useful.
Wangji 12/07/03
--- jimmy way jimway71@yahoo.com wrote:
Hi all,
Yes, I am trying to do it but late. Because the system is in working and I can't stop it. Today I only finished preparing a testing system.
Wangji 12/3/03
--- Jan Janak jan@iptel.org wrote:
Please send us SIP message dumps. You can make
them
by ngrep or ethereal.
Jan.
On 01-12 02:04, jimmy way wrote:
Jaime, I have do it, buf still fail. By the way, I really want to see the SIP
packets
SER
sended, recieved and the packets after changed. maybe can see what wrong with it. But I can't do
it.
Wangji --- jaime.gil@orange.co.uk wrote:
Wangji,
Not sure, but normally you need to force_rport
and
fix_nated_contact at registration, before you save to DB.
Jaime
From: jimmy way jimway71@yahoo.com on
01/12/2003
04:15
To: serusers@lists.iptel.org cc:
Subject: Re: [Serusers] nathelper question
I use Ser verion 0.8.12-0 (rpm). System use redhat linux 7.2 --- jimmy way jimway71@yahoo.com wrote:
Hi all, The problem is I can't register two SIP
UAs
to
SER server.
This is my environment: Internet | router (X.X.X.163) | |Fiber |---- Ser server
(X.X.X.166)
| |
Switch------|---- Trunk Gateway
(X.X.X.167)
| |---- Other servers | |---- Router( cisco 26xx)
(X.X.X.163)
| Switch |
_____________________|_________________
Users SIP UA1(172.16.2.11) SIP
UA2(172.16.2.23)
My ser.cfg like: route{ if ( msg:len > max_len ) {
sl_send_reply("513",
"Message
too
big"); break; }; record_route(); if (loose_route()) { t_relay(); break; };
if (!method=="BYE") { force_rport(); fix_nated_contact(); };
if (method=="REGISTER") { if
(!www_authorize("novsky.com",
"subscriber")) {
www_challenge("novsky.com",
"1"); break; }; save("location"); break; };
if (method=="INVITE") {
if(!proxy_authorize("novsky.com","subscriber")) {
proxy_challenge("novsky.com","1"); break; }; };
if(uri=~"^sip:6169[0-9]*@[0-9|.]*")
{
if(!lookup("location")) {
sl_send_reply("404",
"Not
Found"); break; }; }else { forward(172.16.255.2,6050); break; }; if (!t_relay()) { sl_reply_error(); }; } I use ethereal to look the packet, first UA1
send
REGISTER to SER server, on NAT it use 5060
port,
and
SER return to corrent address/port. When UA2 send REGISTER to SER server, on NAT
it
use
1027 port, but SER return to NAT:5060 port
and
the
packet transfered to UA1. So UA2 can't register. I can see the NAT table on route, like udp x.x.x.165:5060 172.16.2.11:5060
x.x.x.165:5060
x.x.x.x.165:5060 udp x.x.x.165:5060 172.16.2.23:5060
x.x.x.165:1025
x.x.x.x.165:1025
Wangji 12/1/03
Do you Yahoo!? Protect your identity with Yahoo! Mail
AddressGuard
Serusers mailing list serusers@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
Do you Yahoo!? Protect your identity with Yahoo! Mail
AddressGuard
=== message truncated ===
__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree
Hi all, This is another question about NAT. When an user register a recorder will write to db.ser.location. If the user register again, there are another record writed. Maybe an user have more than one or two records in db.ser.location. What I want to do is that I want SER server call to SIP UA according the lastest record in the DB. So I set param of register: modparam("registrar", "desc_time_order", 1) so let SER server call the recently address of SIP UA registed from. And set: modparam("registrar", "append_branches", 0) to let SER server call only one address. And set modparam("registrar", "default_q", 50) to let SER server know which record is recently. I use SIP UA from a ADSL connection. Sometimes it worked. But sometimes, for a example, when ADSL restart and SIP UA just registed, I can see SER call to eldder address. for avoid this hapens, I set append_branches as 1. It make call slowly.
Jimway
__________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree