Hi Klaus,
Thanks for your response, I have another question:
I installed 2 Ser on the different machine, and add the 2 user 3001 3002 on
both Ser. I configuer 2 SIP client to Regiseter to the same ser, there is no
problem to make call to each other, but when I try to registered 2 sip
client on the different machine, the problem happend.
For example, 2 ser server IP is A=192.168.0.10 and B=192.168.0.20
I changed ser.cfg in ser A as
if (!src_ip==192.168.0.20) {
log("*****replicate***");
t_replicate("192.168.0.20", "5060");
and on B
if (!src_ip==192.168.0.10) {
log("*****replicate***");
t_replicate("192.168.0.10", "5060");
And when I try to regiseter SIP client on A, it can register on A, then the
Ser A will send a Register request to B like this:
U 192.168.0.10:5060 -> 192.168.0.20:5060
REGISTER
sip:ny1.signalc.com SIP/2.0..Record-Route:
<sip:192.168.0.10;ftag=35a
3@ny1.signalc.com..From:
3001<sip:3001@ny1.signalc.com;user=phone>;tag=35adc-1
=phone>..CSeq: 102 REGISTER..Via: SIP/2.0/UDP
192.168.0.10;branch=z9hG4bK247f.
060..Contact: <sip:3001@192.168.0.30:5060;user=phone>..Max-Forwards:
69..User-
..Expires: 900..Supported: timer..Authorization: Digest
username="3001",realm=
,response="4890af0391f9985e7d28a4f98e9132ab",nonce="4064805a3152161d3bb4ba9d
50
U 192.168.0.20:5060 -> 192.168.0.10:5060
SIP/2.0 401 Unauthorized..Call-ID:
55af-6a37c-4000fbb3@ny1.signalc.com..From:
ag=35adc-1408..To:
3001<sip:3001@ny1.signalc.com;user=phone>;tag=b27e1a1d33761
R..Via: SIP/2.0/UDP 192.168.0.10;branch=z9hG4bK247f.7ee9ba07.0..Via:
SIP/2.0/U
est realm="ny1.signalc.com",
nonce="406490a267fa70c71b2e27a481dfbde8b5fd6bd4".
inux))..Content-Length: 0..Warning: 392 192.168.0.20:5060 "Noisy feedback
tell
c_port=5060
in_uri=sip:ny1.signalc.com out_uri=sip:ny1.signalc.com
via_cnt==2"
Ser A will try to register 3001 to Ser B, but Ser B dose not authenticate
the 3001 although the 3001 has the same user ID and Password on the Ser B.
I wonder if the modification on the ser.cfg is correct, should I do more
things for this?
Thanks
John
----- Original Message ----- From: "Klaus Darilion"
<klaus.mailinglists(a)pernau.at>
To: "John LI" <john(a)signalc.com>
Cc: "Serusers" <serusers(a)lists.iptel.org>
Sent: Friday, March 26, 2004 4:36 AM
Subject: Re: [Serusers] The problem when enable the MySql
Hi John!
comments inline
PS: Please always cc: to the list.
John LI wrote:
>Hi Klaus,
>
>Thanks for your instaruction, after I do all those steps, the Ser with
the
>Digest creditial works fine now.
>
>My Questions is, after I complile and installed the ser, is the Ser
database
>installed?
No, the ser database is not installed by "make install". You have to use
the ser_mysql.sh script to create the database.
>Need I to use the serctl create to create the database ser
>database again(from my practice, the Ser DB has been setup after all
those
>steps), need I to install the
ser-mysql-0.8.12-0 RPM package again?
Once you have created the databse, you inly have to re-create it, if you
are using a new version of ser which uses a new format.
If you compile ser from source, you don't need any of the rpm packages.
regards,
klaus
>Thanks for you advice again.
>
>John
>
>
>
>----- Original Message ----- From: "Klaus Darilion"
<klaus.mailinglists(a)pernau.at>
>To: "John LI" <john(a)signalc.com>
>Cc: <serusers(a)lists.iptel.org>
>Sent: Thursday, March 25, 2004 3:07 AM
>Subject: Re: [Serusers] The problem when enable the MySql
>
>
>
>
>
>>compile ser by calling make:
>># make
>>
>>compile ser modules by calling:
>># make modules
>>
>>compile mysql ser modules by calling:
>># make modules modules=modules/mysql
>>
>>install ser:
>># make install
>>
>>install mysql module:
>># cp modules/mysql/mysql.so /usr/local/lib/ser/modules/
>>
>>
>>regards,
>>klaus
>>
>>John LI wrote:
>>
>>
>>
>>>Dear Sir,
>>>
>>>I am installing the Ser on Redhat 9.0 platform.
>>>
>>>I download ser-0.8.12_src.tar.gz, and compile the souce code, and
>>>install it.
>>>The Ser working fine with out the MySQL enabled.
>>>
>>>I download the MySQL packges from
www.mysql.com <http://www.mysql.com>
>>>
>>>MySQL-client-4.0.18-0.i386.rpm
>>>MySQL-server-4.0.18-0.i386.rpm
>>>MySQL-shared-4.0.18-0.i386.rpm
>>>
>>>and install them, and Mysql can start up.
>>>
>>>After this, I download the ser-0.8.12_src.tar.gz
>>>
>>>and try to install it, and it give me out the error messge
>>>error: Failed dependencies:
>>> ser = 0.8.12 is needed by ser-mysql-0.8.12-0
>>>
>>>I don't know what this means.
>>>
>>>BTW, when i enable the MySQL in ser.cfg, it give out the following
error
>>>>messages:
>>>>0(25007) ERROR: load_module: could not open module
>>>></usr/local/lib/ser/modules/mysql.so>:
>>>>/usr/local/lib/ser/modules/mysql.so: cannot open shared object file: No
>>>>such file or directory
>>>>I wonder how can I get the mysql.so module.
>>>>
>>>>I am the fresh man in using Ser, please give me some instructions.
>>>>
>>>>John
>>>>
>
>>>------------------------------------------------------------------------
>>>
>>>
>>>>_______________________________________________
>>>>Serusers mailing list
>>>>serusers(a)lists.iptel.org
>>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org