Agree. In short you use preferably diff -u or diff -c and you apply the
diffs with 'patch'.
I don't have any samples right here but I am sure someone has some in
the list.
-m
-----Original Message-----
From: Greg Fausak [mailto:greg@august.net]
Sent: Wednesday, July 23, 2003 11:50 AM
To: Marcelo Schmidt; 'Jan Janak'
Cc: 'Jiri Kuthan'; 'serusers'
Subject: RE: [Serusers] serweb / Make a patch file
Hi guys,
I've noticed that lately the list here seems to be
getting a little short tempered. The main guys work very
hard on this software. Often they get the same questions
over and over again. Let's not forget that the authors
of this software have worked thousands of hours for no compensation to
write this. They don't owe us anything, and we should really appreciate
the donation!
There is some effort that must be expended to identify a
bug, fix it, then provide a patch to the authors so that they can easily
administrate the checkin to the source tree. Simply pointing out a bug
to one of the authors is nice, but if you are capable it would be polite
to go the extra few steps.
I've been writing software for 25 years, and I am not clear how to make
a patch file. Can someone provide an example :-)
Just my two cents,
---greg
Greg Fausak
>
>
> You wrote this couple of weeks before: I have no crystal ball and I am
> not going to reply to this thread anymore... With the same info I sent
> you all, someone else "Jiri" found the problem
> at that specific reply you wrote above. Which it tells me you don't
> know it all and you read email better.
> If this is the way you try to provide any help, please don't help me.
>
> -m
>
> -----Original Message-----
> From: Jan Janak [mailto:jan@iptel.org]
> Sent: Wednesday, July 23, 2003 10:50 AM
> To: Marcelo Schmidt
> Cc: Jiri Kuthan; serusers
> Subject: Re: [Serusers] serweb
>
>
> On 23-07 10:45, Marcelo Schmidt wrote:
> > Well, right besides the method allow_call_time_pass_reference is
> > deprecated in php4 but the latest version of serweb uses it anyway,
> > doh :)
>
> So what ? Fix it instead of complaining..
>
> > And following the error log to what really matters:
> > [Wed Jul 23 10:15:34 2003] [error] PHP Fatal error: Call
> to undefined
> > function: mysql_pconnect() in
> > /usr/pkg/share/httpd/htdocs/iptel/phplib/db_mysql.inc on line 73
>
> install php mysql support.
>
> Jan.
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
>
Jesus: I found no changes between xten1.x and 2.0, both versions work
the same way. However if you're running your ser on 192.168.1.2, you
will need to set your xtem "Send Internal IP" field to "On". I'd tried
without any NAT involved first as Wasik mentioned below. Also double
check that your SIP_DOMAIN has the right value, otherwise the serctl add
will create an user that www_authorize() won't be able to match. In
short words, your SIP_DOMAIN has to be set to the same value (realm) you
set in ser.conf if (!www_authorize("myrealm.com", "subscriber")).
-m
-----Original Message-----
From: Wasik, Paul [mailto:Paul.Wasik@ipc.com]
Sent: Wednesday, July 23, 2003 10:57 AM
To: Maxim Sobolev; Jesus Rodriguez
Cc: serusers(a)lists.iptel.org
Subject: RE: [Serusers] X-Lite and SER (again) New info
The only way I have ever gotten Xten v1.0 or 2.0 to work with SER is to
set the "Send Internal IP" field to "On". Even without NAT involved.
Once I did that it worked fine ever since for me.
-----Original Message-----
From: Maxim Sobolev [mailto:sobomax@portaone.com]
Sent: Wednesday, July 23, 2003 1:51 PM
To: Jesus Rodriguez
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] X-Lite and SER (again) New info
You are better off to contact X-Ten instead, because it is clearly a
problem with X-Lite, not SER.
-Maxim
Jesus Rodriguez wrote:
> Hello,
>
> I'm sorry to come back again with this topic :( ... i've installed a
> new
SER
> from cvs (rel_0_8_11) and when trying to register X-Lite 2.0, X-Lite
> does
not
> send authentication information. As before, i can register an ATA186,
> a
SNOM
> 100 phone and SIPPS but no X-Lite. I think the problem is in my X-Lite
> configuration and that it's my fault but after looking up and down i
> can't find the problem.
>
> This is X-Lite configuration:
>
> SIP Proxy
> Enabled: yes
> User Name: 1000
> Authorization user: 1000
> Password: 1000
> Domain/Realm: voztelecom.net
> SIP Proxy: 192.168.1.2:5060
> Out Bound Proxy:
> Proxy Mode: Normal
> Send Internal IP: Off
>
>
> These are the X-Lite logs. The most strange thing is that it does not
answer
> the auth requests from SER (below is Cisco ATA REGISTER log and SER
> configuration):
>
> SEND >> 192.168.1.2:5060
> REGISTER sip:voztelecom.net SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.203:5060
> From: <sip:1000@voztelecom.net>
> To: <sip:1000@voztelecom.net>
> Contact: "JesusR" <sip:1000@192.168.1.203:5060>
> Call-ID: 3148BBBEBC4F47F2A43768FD845E6663(a)voztelecom.net
> CSeq: 11222 REGISTER
> Expires: 500
> User-Agent: X-Lite build 1047
> Content-Length: 0
>
>
> RECEIVE << 192.168.1.2:5060
> SIP/2.0 401 Unauthorized
> Via: SIP/2.0/UDP 192.168.1.203:5060
> From: <sip:1000@voztelecom.net>
> To:
> <sip:1000@voztelecom.net>;tag=b27e1a1d33761e85846fc98f5f3a7e58.d844
> Call-ID: 3148BBBEBC4F47F2A43768FD845E6663(a)voztelecom.net
> CSeq: 11222 REGISTER
> WWW-Authenticate: Digest realm="voztelecom.net",
> nonce="3f1ebf0bae9c2713e34ed6c6c066884d61da2c46"
> Server: Sip EXpress router (0.8.11rc1 (i386/linux))
> Content-Length: 0
> Warning: 392 192.168.1.2:5060 "Noisy feedback tells: pid=27562
req_src_ip=192.168.1.203 req_src_port=5060 in_uri=sip:voztelecom.netout_uri=sip:voztelecom.net via_cnt==1"
>
>
> RECEIVE << 192.168.1.2:5060
> SIP/2.0 401 Unauthorized
> Via: SIP/2.0/UDP 192.168.1.203:5060
> From: <sip:1000@voztelecom.net>
> To:
> <sip:1000@voztelecom.net>;tag=b27e1a1d33761e85846fc98f5f3a7e58.d844
> Call-ID: 3148BBBEBC4F47F2A43768FD845E6663(a)voztelecom.net
> CSeq: 11222 REGISTER
> WWW-Authenticate: Digest realm="voztelecom.net",
> nonce="3f1ebf0bae9c2713e34ed6c6c066884d61da2c46"
> Server: Sip EXpress router (0.8.11rc1 (i386/linux))
> Content-Length: 0
> Warning: 392 192.168.1.2:5060 "Noisy feedback tells: pid=27563
req_src_ip=192.168.1.203 req_src_port=5060 in_uri=sip:voztelecom.netout_uri=sip:voztelecom.net via_cnt==1"
>
>
> SEND >> 192.168.1.2:5060
> REGISTER sip:voztelecom.net SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.203:5060
> From: <sip:1000@voztelecom.net>
> To: <sip:1000@voztelecom.net>
> Contact: "JesusR" <sip:1000@192.168.1.203:5060>
> Call-ID: 3148BBBEBC4F47F2A43768FD845E6663(a)voztelecom.net
> CSeq: 11224 REGISTER
> Expires: 500
> User-Agent: X-Lite build 1047
> Content-Length: 0
>
>
> RECEIVE << 192.168.1.2:5060
> SIP/2.0 401 Unauthorized
> Via: SIP/2.0/UDP 192.168.1.203:5060
> From: <sip:1000@voztelecom.net>
> To:
> <sip:1000@voztelecom.net>;tag=b27e1a1d33761e85846fc98f5f3a7e58.d844
> Call-ID: 3148BBBEBC4F47F2A43768FD845E6663(a)voztelecom.net
> CSeq: 11224 REGISTER
> WWW-Authenticate: Digest realm="voztelecom.net",
> nonce="3f1ebf0fe0eb06e006bfa17508318525b23a1672"
> Server: Sip EXpress router (0.8.11rc1 (i386/linux))
> Content-Length: 0
> Warning: 392 192.168.1.2:5060 "Noisy feedback tells: pid=27562
req_src_ip=192.168.1.203 req_src_port=5060 in_uri=sip:voztelecom.netout_uri=sip:voztelecom.net via_cnt==1"
>
>
> RECEIVE << 192.168.1.2:5060
> SIP/2.0 401 Unauthorized
> Via: SIP/2.0/UDP 192.168.1.203:5060
> From: <sip:1000@voztelecom.net>
> To:
> <sip:1000@voztelecom.net>;tag=b27e1a1d33761e85846fc98f5f3a7e58.d844
> Call-ID: 3148BBBEBC4F47F2A43768FD845E6663(a)voztelecom.net
> CSeq: 11224 REGISTER
> WWW-Authenticate: Digest realm="voztelecom.net",
> nonce="3f1ebf0fe0eb06e006bfa17508318525b23a1672"
> Server: Sip EXpress router (0.8.11rc1 (i386/linux))
> Content-Length: 0
> Warning: 392 192.168.1.2:5060 "Noisy feedback tells: pid=27563
req_src_ip=192.168.1.203 req_src_port=5060 in_uri=sip:voztelecom.netout_uri=sip:voztelecom.net via_cnt==1"
>
>
> This is Cisco ATA REGISTER log which send the reply to auth request
> from
SER:
>
>
>>>SIP <<
>
> Trying 1st IP ADDR c0a80102
> proxy=192.168.1.2:5060
> [0]REGISTER Retry 0
> [0:0] Tx Msg to 192.168.1.2:5060
>
> REGISTER sip:192.168.1.2 SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.202:5060
> From: <sip:1001@192.168.1.2;user=phone>;tag=4183361925
> To: <sip:1001@192.168.1.2;user=phone>
> Call-ID: 2881434130(a)192.168.1.202
> CSeq: 1 REGISTER
> Contact:
> <sip:1001@192.168.1.202:5060;user=phone;transport=udp>;expires=60
> User-Agent: Cisco ATA 186 v2.16 ata18x (030401a)
> Content-Length: 0
>
>
> [0]Rx Msg from 192.168.1.2:5060
>
> SIP/2.0 401 Unauthorized
> Via: SIP/2.0/UDP 192.168.1.202:5060
> From: <sip:1001@192.168.1.2;user=phone>;tag=4183361925
> To:
<sip:1001@192.168.1.2;user=phone>;tag=b27e1a1d33761e85846fc98f5f3a7e58.9
cf4
> Call-ID: 2881434130(a)192.168.1.202
> CSeq: 1 REGISTER
> WWW-Authenticate: Digest realm="voztelecom.net",
nonce="3f1ec1149f7590fd4532ba8c63a36a9123360fa0"
> Server: Sip EXpress router (0.8.11rc1 (i386/linux))
> Content-Length: 0
> Warning: 392 192.168.1.2:5060 "Noisy feedback tells: pid=27563
req_src_ip=192.168.1.202 req_src_port=5060 in_uri=sip:192.168.1.2
out_uri=sip:192.168.1.2 via_cnt==1"
>
>
> [0]Reg Resp 401; Unauthorized
> [0]REGISTER Retry 0
> [0:0] Tx Msg to 192.168.1.2:5060
>
> REGISTER sip:192.168.1.2 SIP/2.0
> Via: SIP/2.0/UDP 192.168.1.202:5060
> From: <sip:1001@192.168.1.2;user=phone>;tag=4183361925
> To: <sip:1001@192.168.1.2;user=phone>
> Call-ID: 2881434130(a)192.168.1.202
> CSeq: 2 REGISTER
> Contact:
> <sip:1001@192.168.1.202:5060;user=phone;transport=udp>;expires=60
> User-Agent: Cisco ATA 186 v2.16 ata18x (030401a)
> Authorization: Digest
>
username="1001",realm="voztelecom.net",nonce="3f1ec1149f7590fd4532ba8c63
a36a
9123360fa0",uri="sip:192.168.1.2",response="9cedb192d83009a19e3bf610c2d1
3b85
"
> Content-Length: 0
>
>
> [0]Rx Msg from 192.168.1.2:5060
>
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 192.168.1.202:5060
> From: <sip:1001@192.168.1.2;user=phone>;tag=4183361925
> To:
<sip:1001@192.168.1.2;user=phone>;tag=b27e1a1d33761e85846fc98f5f3a7e58.9
cf4
> Call-ID: 2881434130(a)192.168.1.202
> CSeq: 2 REGISTER
> Contact:
<sip:1001@192.168.1.202:5060;user=phone;transport=udp>;q=0.00;expires=60
> Server: Sip EXpress router (0.8.11rc1 (i386/linux))
> Content-Length: 0
> Warning: 392 192.168.1.2:5060 "Noisy feedback tells: pid=27562
req_src_ip=192.168.1.202 req_src_port=5060 in_uri=sip:192.168.1.2
out_uri=sip:192.168.1.2 via_cnt==1"
>
> [0]Reg Resp 200; OK
> [0]Reg OK (60)
>
>
>
> And this is SER configuration:
>
> #
> # $Id: ser.cfg,v 1.21 2003/06/04 13:47:36 jiri Exp $
> #
> # simple quick-start config script
> #
>
> # ----------- global configuration parameters ------------------------
>
> debug=3 # debug level (cmd line: -dddddddddd)
> fork=yes
> log_stderror=yes # (cmd line: -E)
>
> /* Uncomment these lines to enter debugging mode
> debug=7
> fork=no
> log_stderror=yes
> */
>
> check_via=no # (cmd. line: -v)
> dns=no # (cmd. line: -r)
> rev_dns=no # (cmd. line: -R)
> port=5060
> children=4
> fifo="/tmp/ser_fifo"
>
> # ------------------ module loading ----------------------------------
>
> # Uncomment this if you want to use SQL database
> loadmodule "/usr/local/lib/ser/modules/mysql.so"
>
> loadmodule "/usr/local/lib/ser/modules/sl.so"
> loadmodule "/usr/local/lib/ser/modules/tm.so"
> loadmodule "/usr/local/lib/ser/modules/rr.so"
> loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
> loadmodule "/usr/local/lib/ser/modules/usrloc.so"
> loadmodule "/usr/local/lib/ser/modules/registrar.so"
>
> # Uncomment this if you want digest authentication
> # mysql.so must be loaded !
> loadmodule "/usr/local/lib/ser/modules/auth.so"
> loadmodule "/usr/local/lib/ser/modules/auth_db.so"
>
> # ----------------- setting module-specific parameters ---------------
>
> # -- usrloc params --
>
> #modparam("usrloc", "db_mode", 0)
>
> # Uncomment this if you want to use SQL database
> # for persistent storage and comment the previous line
> modparam("usrloc", "db_mode", 2)
> modparam("usrloc","db_url","sql://ser:heslo@192.168.1.3/ser")
>
> # -- auth params --
> # Uncomment if you are using auth module
> #
> modparam("auth_db","db_url","sql://ser:heslo@192.168.1.3/ser")
> modparam("auth_db", "calculate_ha1", yes)
> #
> # If you set "calculate_ha1" parameter to yes (which true in this
> config), # uncomment also the following parameter) #
> modparam("auth_db", "password_column", "password")
>
> # -- rr params --
> # add value to ;lr param to make some broken UAs happy modparam("rr",
> "enable_full_lr", 1)
>
> # ------------------------- request routing logic -------------------
>
> # main routing logic
>
> alias="voztelecom.net"
> alias="devel.voztelecom.net"
> alias="192.168.1.2"
>
> route{
>
> # initial sanity checks -- messages with
> # max_forwards==0, or excessively long requests
> if (!mf_process_maxfwd_header("10")) {
> sl_send_reply("483","Too Many Hops");
> break;
> };
> if (len_gt( max_len )) {
> sl_send_reply("513", "Message too big");
> break;
> };
>
> # we record-route all messages -- to make sure that
> # subsequent messages will go through our proxy; that's
> # particularly good if upstream and downstream entities
> # use different transport protocol
> record_route();
> # loose-route processing
> if (loose_route()) {
> t_relay();
> break;
> };
>
> # if the request is for other domain use UsrLoc
> # (in case, it does not work, use the following command
> # with proper names and addresses in it)
> if (uri==myself) {
> # if (uri=~"voztelecom.net" || uri=~"192\.168\.1\.2") {
>
> if (method=="REGISTER") {
>
> # Uncomment this if you want to use digest authentication
> if (!www_authorize("voztelecom.net",
"subscriber")) {
> www_challenge("voztelecom.net", "0");
> break;
> };
>
> save("location");
> break;
> };
>
> # native SIP destinations are handled using our USRLOC
DB
> if (!lookup("location")) {
> sl_send_reply("404", "Not Found");
> break;
> };
> };
> # forward to current uri now; use stateful forwarding; that
> # works reliably even if we forward from TCP to UDP
> if (!t_relay()) {
> sl_reply_error();
> };
>
> }
>
>
> Thanks in advance for your help.
>
> Saludos
> JesusR.
>
> -------------------------------
> Jesus Rodriguez
> VozTelecom Sistemas, S.L.
> jesusr(a)voztele.com
> http://www.voztele.com
> Tel. 902360305
> -------------------------------
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
>
>
>
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hello,
I'm sorry to come back again with this topic :( ... i've installed a new SER
from cvs (rel_0_8_11) and when trying to register X-Lite 2.0, X-Lite does not
send authentication information. As before, i can register an ATA186, a SNOM
100 phone and SIPPS but no X-Lite. I think the problem is in my X-Lite
configuration and that it's my fault but after looking up and down i can't
find the problem.
This is X-Lite configuration:
SIP Proxy
Enabled: yes
User Name: 1000
Authorization user: 1000
Password: 1000
Domain/Realm: voztelecom.net
SIP Proxy: 192.168.1.2:5060
Out Bound Proxy:
Proxy Mode: Normal
Send Internal IP: Off
These are the X-Lite logs. The most strange thing is that it does not answer
the auth requests from SER (below is Cisco ATA REGISTER log and SER
configuration):
SEND >> 192.168.1.2:5060
REGISTER sip:voztelecom.net SIP/2.0
Via: SIP/2.0/UDP 192.168.1.203:5060
From: <sip:1000@voztelecom.net>
To: <sip:1000@voztelecom.net>
Contact: "JesusR" <sip:1000@192.168.1.203:5060>
Call-ID: 3148BBBEBC4F47F2A43768FD845E6663(a)voztelecom.net
CSeq: 11222 REGISTER
Expires: 500
User-Agent: X-Lite build 1047
Content-Length: 0
RECEIVE << 192.168.1.2:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.203:5060
From: <sip:1000@voztelecom.net>
To: <sip:1000@voztelecom.net>;tag=b27e1a1d33761e85846fc98f5f3a7e58.d844
Call-ID: 3148BBBEBC4F47F2A43768FD845E6663(a)voztelecom.net
CSeq: 11222 REGISTER
WWW-Authenticate: Digest realm="voztelecom.net",
nonce="3f1ebf0bae9c2713e34ed6c6c066884d61da2c46"
Server: Sip EXpress router (0.8.11rc1 (i386/linux))
Content-Length: 0
Warning: 392 192.168.1.2:5060 "Noisy feedback tells: pid=27562 req_src_ip=192.168.1.203 req_src_port=5060 in_uri=sip:voztelecom.netout_uri=sip:voztelecom.net via_cnt==1"
RECEIVE << 192.168.1.2:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.203:5060
From: <sip:1000@voztelecom.net>
To: <sip:1000@voztelecom.net>;tag=b27e1a1d33761e85846fc98f5f3a7e58.d844
Call-ID: 3148BBBEBC4F47F2A43768FD845E6663(a)voztelecom.net
CSeq: 11222 REGISTER
WWW-Authenticate: Digest realm="voztelecom.net",
nonce="3f1ebf0bae9c2713e34ed6c6c066884d61da2c46"
Server: Sip EXpress router (0.8.11rc1 (i386/linux))
Content-Length: 0
Warning: 392 192.168.1.2:5060 "Noisy feedback tells: pid=27563 req_src_ip=192.168.1.203 req_src_port=5060 in_uri=sip:voztelecom.netout_uri=sip:voztelecom.net via_cnt==1"
SEND >> 192.168.1.2:5060
REGISTER sip:voztelecom.net SIP/2.0
Via: SIP/2.0/UDP 192.168.1.203:5060
From: <sip:1000@voztelecom.net>
To: <sip:1000@voztelecom.net>
Contact: "JesusR" <sip:1000@192.168.1.203:5060>
Call-ID: 3148BBBEBC4F47F2A43768FD845E6663(a)voztelecom.net
CSeq: 11224 REGISTER
Expires: 500
User-Agent: X-Lite build 1047
Content-Length: 0
RECEIVE << 192.168.1.2:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.203:5060
From: <sip:1000@voztelecom.net>
To: <sip:1000@voztelecom.net>;tag=b27e1a1d33761e85846fc98f5f3a7e58.d844
Call-ID: 3148BBBEBC4F47F2A43768FD845E6663(a)voztelecom.net
CSeq: 11224 REGISTER
WWW-Authenticate: Digest realm="voztelecom.net",
nonce="3f1ebf0fe0eb06e006bfa17508318525b23a1672"
Server: Sip EXpress router (0.8.11rc1 (i386/linux))
Content-Length: 0
Warning: 392 192.168.1.2:5060 "Noisy feedback tells: pid=27562 req_src_ip=192.168.1.203 req_src_port=5060 in_uri=sip:voztelecom.netout_uri=sip:voztelecom.net via_cnt==1"
RECEIVE << 192.168.1.2:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.203:5060
From: <sip:1000@voztelecom.net>
To: <sip:1000@voztelecom.net>;tag=b27e1a1d33761e85846fc98f5f3a7e58.d844
Call-ID: 3148BBBEBC4F47F2A43768FD845E6663(a)voztelecom.net
CSeq: 11224 REGISTER
WWW-Authenticate: Digest realm="voztelecom.net",
nonce="3f1ebf0fe0eb06e006bfa17508318525b23a1672"
Server: Sip EXpress router (0.8.11rc1 (i386/linux))
Content-Length: 0
Warning: 392 192.168.1.2:5060 "Noisy feedback tells: pid=27563 req_src_ip=192.168.1.203 req_src_port=5060 in_uri=sip:voztelecom.netout_uri=sip:voztelecom.net via_cnt==1"
This is Cisco ATA REGISTER log which send the reply to auth request from SER:
>> SIP <<
Trying 1st IP ADDR c0a80102
proxy=192.168.1.2:5060
[0]REGISTER Retry 0
[0:0] Tx Msg to 192.168.1.2:5060
REGISTER sip:192.168.1.2 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.202:5060
From: <sip:1001@192.168.1.2;user=phone>;tag=4183361925
To: <sip:1001@192.168.1.2;user=phone>
Call-ID: 2881434130(a)192.168.1.202
CSeq: 1 REGISTER
Contact: <sip:1001@192.168.1.202:5060;user=phone;transport=udp>;expires=60
User-Agent: Cisco ATA 186 v2.16 ata18x (030401a)
Content-Length: 0
[0]Rx Msg from 192.168.1.2:5060
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.202:5060
From: <sip:1001@192.168.1.2;user=phone>;tag=4183361925
To: <sip:1001@192.168.1.2;user=phone>;tag=b27e1a1d33761e85846fc98f5f3a7e58.9cf4
Call-ID: 2881434130(a)192.168.1.202
CSeq: 1 REGISTER
WWW-Authenticate: Digest realm="voztelecom.net", nonce="3f1ec1149f7590fd4532ba8c63a36a9123360fa0"
Server: Sip EXpress router (0.8.11rc1 (i386/linux))
Content-Length: 0
Warning: 392 192.168.1.2:5060 "Noisy feedback tells: pid=27563 req_src_ip=192.168.1.202 req_src_port=5060 in_uri=sip:192.168.1.2 out_uri=sip:192.168.1.2 via_cnt==1"
[0]Reg Resp 401; Unauthorized
[0]REGISTER Retry 0
[0:0] Tx Msg to 192.168.1.2:5060
REGISTER sip:192.168.1.2 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.202:5060
From: <sip:1001@192.168.1.2;user=phone>;tag=4183361925
To: <sip:1001@192.168.1.2;user=phone>
Call-ID: 2881434130(a)192.168.1.202
CSeq: 2 REGISTER
Contact: <sip:1001@192.168.1.202:5060;user=phone;transport=udp>;expires=60
User-Agent: Cisco ATA 186 v2.16 ata18x (030401a)
Authorization: Digest
username="1001",realm="voztelecom.net",nonce="3f1ec1149f7590fd4532ba8c63a36a9123360fa0",uri="sip:192.168.1.2",response="9cedb192d83009a19e3bf610c2d13b85"
Content-Length: 0
[0]Rx Msg from 192.168.1.2:5060
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.202:5060
From: <sip:1001@192.168.1.2;user=phone>;tag=4183361925
To: <sip:1001@192.168.1.2;user=phone>;tag=b27e1a1d33761e85846fc98f5f3a7e58.9cf4
Call-ID: 2881434130(a)192.168.1.202
CSeq: 2 REGISTER
Contact: <sip:1001@192.168.1.202:5060;user=phone;transport=udp>;q=0.00;expires=60
Server: Sip EXpress router (0.8.11rc1 (i386/linux))
Content-Length: 0
Warning: 392 192.168.1.2:5060 "Noisy feedback tells: pid=27562 req_src_ip=192.168.1.202 req_src_port=5060 in_uri=sip:192.168.1.2 out_uri=sip:192.168.1.2 via_cnt==1"
[0]Reg Resp 200; OK
[0]Reg OK (60)
And this is SER configuration:
#
# $Id: ser.cfg,v 1.21 2003/06/04 13:47:36 jiri Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=yes # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
debug=7
fork=no
log_stderror=yes
*/
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
port=5060
children=4
fifo="/tmp/ser_fifo"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
modparam("usrloc", "db_mode", 2)
modparam("usrloc","db_url","sql://ser:heslo@192.168.1.3/ser")
# -- auth params --
# Uncomment if you are using auth module
#
modparam("auth_db","db_url","sql://ser:heslo@192.168.1.3/ser")
modparam("auth_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this config),
# uncomment also the following parameter)
#
modparam("auth_db", "password_column", "password")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- request routing logic -------------------
# main routing logic
alias="voztelecom.net"
alias="devel.voztelecom.net"
alias="192.168.1.2"
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (len_gt( max_len )) {
sl_send_reply("513", "Message too big");
break;
};
# we record-route all messages -- to make sure that
# subsequent messages will go through our proxy; that's
# particularly good if upstream and downstream entities
# use different transport protocol
record_route();
# loose-route processing
if (loose_route()) {
t_relay();
break;
};
# if the request is for other domain use UsrLoc
# (in case, it does not work, use the following command
# with proper names and addresses in it)
if (uri==myself) {
# if (uri=~"voztelecom.net" || uri=~"192\.168\.1\.2") {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("voztelecom.net", "subscriber")) {
www_challenge("voztelecom.net", "0");
break;
};
save("location");
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
# forward to current uri now; use stateful forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
Thanks in advance for your help.
Saludos
JesusR.
-------------------------------
Jesus Rodriguez
VozTelecom Sistemas, S.L.
jesusr(a)voztele.com
http://www.voztele.com
Tel. 902360305
-------------------------------
Well, right besides the method allow_call_time_pass_reference is
deprecated in php4 but the
latest version of serweb uses it anyway, doh :)
And following the error log to what really matters:
[Wed Jul 23 10:15:34 2003] [error] PHP Fatal error: Call to undefined
function: mysql_pconnect() in
/usr/pkg/share/httpd/htdocs/iptel/phplib/db_mysql.inc on line 73
-m
-----Original Message-----
From: Jan Janak [mailto:jan@iptel.org]
Sent: Wednesday, July 23, 2003 3:53 AM
To: Marcelo Schmidt
Cc: Jiri Kuthan; serusers
Subject: Re: [Serusers] serweb
Hello,
simply do what the text says: enable allow_call_time_pass_reference in
/usr/pkg/etc/php.ini
Jan.
On 21-07 13:10, Marcelo Schmidt wrote:
> I sent this email last week, any feedback is very much appreciated.
>
> I have another server running 8.11 i386/NetBsd with serweb now too but
> I get following warnings and error when I call
> user_interface/index.php:
>
> [Wed Jul 16 09:56:53 2003] [error] PHP Warning: Call-time
> pass-by-reference has been deprecated - argument passed by value; If
> you would like to pass it by reference, modify the declaration of
> [runtime function name](). If you would like to enable call-time
> pass-by-reference, you can set allow_call_time_pass_reference to true
> in your INI file. However, future versions may not support this any
> longer. in /usr/pkg/share/httpd/htdocs/iptel/phplib/user.inc on line
> 65 [Wed Jul 16 09:56:53 2003] [error] PHP Warning: Call-time
> pass-by-reference has been deprecated - argument passed by value; If
> you would like to pass it by reference, modify the declaration of
> [runtime function name](). If you would like to enable call-time
> pass-by-reference, you can set allow_call_time_pass_reference to true
> in your INI file. However, future versions may not support this any
> longer. in /usr/pkg/share/httpd/htdocs/iptel/phplib/user.inc on line
> 66 [Wed Jul 16 09:56:53 2003] [error] PHP Warning: Call-time
> pass-by-reference has been deprecated - argument passed by value; If
> you would like to pass it by reference, modify the declaration of
> [runtime function name](). If you would like to enable call-time
> pass-by-reference, you can set allow_call_time_pass_reference to true
> in your INI file. However, future versions may not support this any
> longer. in /usr/pkg/share/httpd/htdocs/iptel/phplib/user.inc on line
> 72 [Wed Jul 16 09:56:53 2003] [error] PHP Fatal error: Call to
> undefined
> function: mysql_pconnect() in
> /usr/pkg/share/httpd/htdocs/iptel/phplib/db_mysql.inc on line 73
>
> -M
>
> -----Original Message-----
> From: Jiri Kuthan [mailto:jiri@iptel.org]
> Sent: Wednesday, July 16, 2003 12:20 AM
> To: Marcelo Schmidt; serusers
> Subject: Re: [Serusers] serweb
>
>
> versin mismatch: use CVS serweb with CVS ser and 8.10 ser with 8.10
> serweb, that's it. 8.10 is at ftp://ftp.berlios.de/pub/ser/latest/,
> 8.11 on CVS.
>
> -jiri
>
> At 12:57 AM 7/16/2003, Marcelo Schmidt wrote:
> >This is a serweb error but I hope someone saw same error before in
> >this
>
> >list. Serwer defined 'username' and in mysql subscriber table the
> >correct name is 'USER_ID'. However I went through all the serweb code
> >to find where else is calling username instead of USER_ID but I
> >couldn't find anything else that I already replaced.
> >
> >Database error: Invalid SQL: select username, perms from subscriber
> >where phplib_id = '65e397cda0aa8e3202ea22cbd350e4e9'
> >MySQL Error: 1054 (Unknown column 'username' in 'field list') Session
> >halted.
> >
> >--M
> >
> >_______________________________________________
> >Serusers mailing list
> >serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
>
> --
> Jiri Kuthan http://iptel.org/~jiri/
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
I sent this email last week, any feedback is very much appreciated.
I have another server running 8.11 i386/NetBsd with serweb now too but I
get following warnings and error when I call user_interface/index.php:
[Wed Jul 16 09:56:53 2003] [error] PHP Warning: Call-time
pass-by-reference has been deprecated - argument passed by value; If
you would like to pass it by reference, modify the declaration of
[runtime function name](). If you would like to enable call-time
pass-by-reference, you can set allow_call_time_pass_reference to true in
your INI file. However, future versions may not support this any
longer. in /usr/pkg/share/httpd/htdocs/iptel/phplib/user.inc on line 65
[Wed Jul 16 09:56:53 2003] [error] PHP Warning: Call-time
pass-by-reference has been deprecated - argument passed by value; If
you would like to pass it by reference, modify the declaration of
[runtime function name](). If you would like to enable call-time
pass-by-reference, you can set allow_call_time_pass_reference to true in
your INI file. However, future versions may not support this any
longer. in /usr/pkg/share/httpd/htdocs/iptel/phplib/user.inc on line 66
[Wed Jul 16 09:56:53 2003] [error] PHP Warning: Call-time
pass-by-reference has been deprecated - argument passed by value; If
you would like to pass it by reference, modify the declaration of
[runtime function name](). If you would like to enable call-time
pass-by-reference, you can set allow_call_time_pass_reference to true in
your INI file. However, future versions may not support this any
longer. in /usr/pkg/share/httpd/htdocs/iptel/phplib/user.inc on line 72
[Wed Jul 16 09:56:53 2003] [error] PHP Fatal error: Call to undefined
function: mysql_pconnect() in
/usr/pkg/share/httpd/htdocs/iptel/phplib/db_mysql.inc on line 73
-M
-----Original Message-----
From: Jiri Kuthan [mailto:jiri@iptel.org]
Sent: Wednesday, July 16, 2003 12:20 AM
To: Marcelo Schmidt; serusers
Subject: Re: [Serusers] serweb
versin mismatch: use CVS serweb with CVS ser and 8.10 ser with 8.10
serweb, that's it. 8.10 is at ftp://ftp.berlios.de/pub/ser/latest/, 8.11
on CVS.
-jiri
At 12:57 AM 7/16/2003, Marcelo Schmidt wrote:
>This is a serweb error but I hope someone saw same error before in this
>list. Serwer defined 'username' and in mysql subscriber table the
>correct name is 'USER_ID'. However I went through all the serweb code
>to find where else is calling username instead of USER_ID but I
>couldn't find anything else that I already replaced.
>
>Database error: Invalid SQL: select username, perms from subscriber
>where phplib_id = '65e397cda0aa8e3202ea22cbd350e4e9'
>MySQL Error: 1054 (Unknown column 'username' in 'field list') Session
>halted.
>
>--M
>
>_______________________________________________
>Serusers mailing list
>serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
--
Jiri Kuthan http://iptel.org/~jiri/
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Hello to all,
I installed Serweb of ser, but I have a probleme is that every time
during rengistrement of the data I have a message (sorry - fifo
reading error), what is that nobody where from comes this error.
Thank you in advance
Hassan
CHOUMAR Hassan
cité universitaire de la pacaterie (chambre459)
91400 Orsay
Por :33/0675909977
Email: hmchoumar(a)hotmail.com
Hello to all,
I installed Serweb of ser, but I have a probleme is that every time
during rengistrement of the data I have a message (sorry - fifo
reading error), what is that nobody where from comes this error.
Thank you in advance
Hassan
CHOUMAR Hassan
cité universitaire de la pacaterie (chambre459)
91400 Orsay
Por :33/0675909977
Email: hmchoumar(a)hotmail.com