[Serusers] nathelper question
jimmy way
jimway71 at yahoo.com
Mon Dec 1 11:04:11 CET 2003
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 at 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 at yahoo.com> on 01/12/2003
> 04:15
>
>
>
>
> To: serusers at 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 at 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 at 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 at 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
More information about the sr-users
mailing list