<DIV><BR><BR></DIV>
<DIV></DIV>help<BR><PRE>在2009-02-06,serusers-request@lists.iptel.org 写道:
&gt;Send Serusers mailing list submissions to
&gt;        serusers@lists.iptel.org
&gt;
&gt;To subscribe or unsubscribe via the World Wide Web, visit
&gt;        http://lists.iptel.org/mailman/listinfo/serusers
&gt;or, via email, send a message with subject or body 'help' to
&gt;        serusers-request@lists.iptel.org
&gt;
&gt;You can reach the person managing the list at
&gt;        serusers-owner@lists.iptel.org
&gt;
&gt;When replying, please edit your Subject line so it is more specific
&gt;than "Re: Contents of Serusers digest..."
&gt;
&gt;
&gt;Today's Topics:
&gt;
&gt;   1. Re: configure SER and SEMS to work together (Stefan Sayer)
&gt;   2. preload_udomain error (caio)
&gt;   3. Re: preload_udomain error (solved) (caio)
&gt;   4. Re: Error loading "trusted" table (permissions.so) (caio)
&gt;
&gt;
&gt;----------------------------------------------------------------------
&gt;
&gt;Message: 1
&gt;Date: Thu, 05 Feb 2009 13:25:00 +0100
&gt;From: Stefan Sayer &lt;stefan.sayer@iptego.com&gt;
&gt;Subject: Re: [Serusers] configure SER and SEMS to work together
&gt;To: Martin Lane &lt;martin.l.lane@gmail.com&gt;
&gt;Cc: sems@iptel.org, Serusers@lists.iptel.org
&gt;Message-ID: &lt;498ADA9C.4050302@iptego.com&gt;
&gt;Content-Type: text/plain; charset=ISO-8859-1; format=flowed
&gt;
&gt;Hello,
&gt;
&gt;
&gt;o Martin Lane [02/04/09 20:17]:
&gt;&gt; I am following the 'mini-Howto on how to configure SER and SEMS to work 
&gt;&gt; together' guide on iptel.org.  So I have a separate directory for 
&gt;as it says at the top of that howto, with a more recent version of SEMS 
&gt;this is not required any more; especially if you are using 1.1.0 
&gt;version. Also note that there is the 1.1.0 release available 
&gt;(http://ftp.iptel.org/pub/sems/sems-1.1.0.tar.gz).
&gt;
&gt;For SEMS 1.1.0 (recommended!), you can use the default configuration, 
&gt;just configure 'application' and the server's IP address and port used 
&gt;in sems.conf. Then just send the call to the SIP IP:port, e.g. using ser 
&gt;with t_relay_to_udp("&lt;sip_ip&gt;","&lt;sip_port&gt;");
&gt;
&gt;for completeness, the following comments:
&gt;
&gt;&gt; integrating the SER and SEMS functionality.  For development purposes is 
&gt;&gt; there a switch to change the path were SER looks for the modules?  As 
&gt;no, you need to change every loadmodule line.
&gt;
&gt;&gt; well control which version of SEMS is being used?  I've installed Sip 
&gt;&gt; Express Media Server (1.1.0-rc1 (i386/linux)) as well as the version 
&gt;&gt; from the howto for testing.
&gt;&gt; 
&gt;&gt; My basic problem is I currently get a version mismatch error:
&gt;&gt; 
&gt;&gt; 0(9590) ERROR: module version mismatch for 
&gt;&gt; /usr/local/lib/ser/modules/sl.so; core: ser 0.9.6-sems (i386/linux); 
&gt;&gt; module: ser 0.9.6 (i386/linux)
&gt;&gt; 
&gt;
&gt;Your specific error comes from that the module you are trying to load 
&gt;was not compiled with the same version, e.g. you have one ser installed 
&gt;into /usr/local and you have another one in a local directory.
&gt;
&gt;Regards
&gt;Stefan
&gt;
&gt;&gt; The appropriate modules are located in under my ser-sems test dir and I 
&gt;&gt; have not been successful in redirecting SER to look there.
&gt;&gt; 
&gt;&gt; Also, I have modified ser.cfg and sems.cfg for my system but I did not 
&gt;&gt; find a default ser_sems.cfg.  Is this file necessary and where is the 
&gt;&gt; default location?
&gt;&gt; 
&gt;&gt; Thanks for any help or advice.
&gt;&gt; 
&gt;&gt; mll
&gt;&gt; 
&gt;&gt; 
&gt;&gt; ------------------------------------------------------------------------
&gt;&gt; 
&gt;&gt; _______________________________________________
&gt;&gt; Serusers mailing list
&gt;&gt; Serusers@lists.iptel.org
&gt;&gt; http://lists.iptel.org/mailman/listinfo/serusers
&gt;
&gt;-- 
&gt;Stefan Sayer
&gt;VoIP Services
&gt;
&gt;stefan.sayer@iptego.com
&gt;www.iptego.com
&gt;
&gt;IPTEGO GmbH
&gt;Am Borsigturm 40
&gt;13507 Berlin
&gt;Germany
&gt;
&gt;Amtsgericht Charlottenburg, HRB 101010
&gt;Geschaeftsfuehrer: Alexander Hoffmann
&gt;
&gt;
&gt;------------------------------
&gt;
&gt;Message: 2
&gt;Date: Thu, 05 Feb 2009 12:18:40 -0200
&gt;From: caio &lt;elcaio@gmail.com&gt;
&gt;Subject: [Serusers] preload_udomain error
&gt;To: serusers@lists.iptel.org
&gt;Message-ID: &lt;498AF540.4030102@gmail.com&gt;
&gt;Content-Type: text/plain; charset=ISO-8859-1; format=flowed
&gt;
&gt;Hi all,
&gt;
&gt;Running ser0.9.7 on Solaris 10 (mysql 5.0.51 + serweb 0.9.6)
&gt;
&gt;Have this problem when I stop ser service, and then start it again (ser 
&gt;-E -D)..
&gt;
&gt;        0(0) preload_udomain: ERROR: bad callid record in table aliases
&gt;        0(0) preload_udomain: ERROR: for username 579981, contact 
&gt;sip:579981@mydomain.com
&gt;        0(0) preload_udomain: ERROR: skipping...
&gt;
&gt;And finally it dies with:
&gt;
&gt;        0(0) get_connection(): Connection not found in the pool
&gt;        Fallo de segmentaci??n (core dumped)
&gt;
&gt;It happens with many records on aliases table and happens too with only 
&gt;one record:
&gt;
&gt;mysql&gt; select * from aliases\G
&gt;*************************** 1. row ***************************
&gt;      username: 579981
&gt;        domain: 10.10.1.1
&gt;       contact: sip:579981@mydomain.com
&gt;      received: NULL
&gt;       expires: 2009-02-05 11:45:21
&gt;             q: 1.00
&gt;        callid: 
&gt;The-Answer-To-The-Ultimate-Question-Of-Life-Universe-And-Everything
&gt;          cseq: 42
&gt;last_modified: 2009-02-05 11:45:46
&gt;     replicate: 0
&gt;         state: 0
&gt;         flags: 128
&gt;    user_agent: SIP Express Router FIFO
&gt;1 row in set (0.00 sec)
&gt;
&gt;
&gt;SER start normally if I delete all the records on this table. But I need 
&gt;create the aliases again, and this is not the normal behaviour..I think.
&gt;
&gt;Here the description of aliases table:
&gt;
&gt;mysql&gt; desc aliases;
&gt;+---------------+---------------------+------+-----+---------------------+-------+
&gt;| Field         | Type                | Null | Key | Default 
&gt;  | Extra |
&gt;+---------------+---------------------+------+-----+---------------------+-------+
&gt;| username      | varchar(64)         | NO   | PRI | 
&gt;  |       |
&gt;| domain        | varchar(128)        | NO   | PRI | 
&gt;  |       |
&gt;| contact       | varchar(255)        | NO   | PRI | 
&gt;  |       |
&gt;| received      | varchar(255)        | YES  |     | NULL 
&gt;  |       |
&gt;| expires       | datetime            | NO   |     | 2020-05-28 21:32:15 
&gt;|       |
&gt;| q             | float(10,2)         | NO   |     | 1.00 
&gt;  |       |
&gt;| callid        | varchar(255)        | NO   |     | Default-Call-ID 
&gt;  |       |
&gt;| cseq          | int(11)             | NO   |     | 42 
&gt;  |       |
&gt;| last_modified | timestamp           | NO   |     | CURRENT_TIMESTAMP 
&gt;  |       |
&gt;| replicate     | int(10) unsigned    | NO   |     | 0 
&gt;  |       |
&gt;| state         | tinyint(1) unsigned | NO   |     | 0 
&gt;  |       |
&gt;| flags         | int(11)             | NO   |     | 0 
&gt;  |       |
&gt;| user_agent    | varchar(50)         | NO   |     | 
&gt;  |       |
&gt;+---------------+---------------------+------+-----+---------------------+-------+
&gt;13 rows in set (0.01 sec)
&gt;
&gt;
&gt;Important: when "location" table keeps some records, ser doesn't start too:
&gt;
&gt;mysql&gt; select * from location\G
&gt;*************************** 1. row ***************************
&gt;      username: 579981
&gt;        domain: mydomain.com
&gt;       contact: sip:579981@10.10.60.115:5060
&gt;      received: NULL
&gt;       expires: 2009-02-05 11:46:16
&gt;             q: -1.00
&gt;        callid: 1f46c06d5e034425286f095b11cf4a1a@10.10.60.115
&gt;          cseq: 6
&gt;last_modified: 2009-02-05 11:45:46
&gt;     replicate: 0
&gt;         state: 0
&gt;         flags: 0
&gt;    user_agent: CM5K-TA2S  (807100.02)
&gt;1 row in set (0.00 sec)
&gt;
&gt;Here too I must to delete all the records to let SER start successfully.
&gt;
&gt;Does anyone knows about this issue?
&gt;
&gt;Regards,
&gt;Claudio
&gt;
&gt;
&gt;------------------------------
&gt;
&gt;Message: 3
&gt;Date: Thu, 05 Feb 2009 17:13:09 -0200
&gt;From: caio &lt;elcaio@gmail.com&gt;
&gt;Subject: Re: [Serusers] preload_udomain error (solved)
&gt;To: serusers@lists.iptel.org
&gt;Message-ID: &lt;498B3A45.5070501@gmail.com&gt;
&gt;Content-Type: text/plain; charset=ISO-8859-1; format=flowed
&gt;
&gt;caio escribi?:
&gt;&gt; Hi all,
&gt;&gt; 
&gt;&gt; Running ser0.9.7 on Solaris 10 (mysql 5.0.51 + serweb 0.9.6)
&gt;&gt; 
&gt;&gt; Have this problem when I stop ser service, and then start it again (ser 
&gt;&gt; -E -D)..
&gt;&gt; 
&gt;&gt;     0(0) preload_udomain: ERROR: bad callid record in table aliases
&gt;&gt;     0(0) preload_udomain: ERROR: for username 579981, contact 
&gt;&gt; sip:579981@mydomain.com
&gt;&gt;     0(0) preload_udomain: ERROR: skipping...
&gt;&gt; 
&gt;[cut]
&gt;
&gt;solved.
&gt;there was an old installation of mysql libs (in /usr/sfw/), then I 
&gt;removed it, and finally recompile mysql.so module including correct 
&gt;mysql.h (/opt/csw/).
&gt;
&gt;cheers,
&gt;caio
&gt;
&gt;
&gt;------------------------------
&gt;
&gt;Message: 4
&gt;Date: Thu, 05 Feb 2009 17:18:03 -0200
&gt;From: caio &lt;elcaio@gmail.com&gt;
&gt;Subject: Re: [Serusers] Error loading "trusted" table (permissions.so)
&gt;To: serusers@lists.iptel.org
&gt;Message-ID: &lt;498B3B6B.20606@gmail.com&gt;
&gt;Content-Type: text/plain; charset=ISO-8859-1; format=flowed
&gt;
&gt;Miklos Tirpak escribi?:
&gt;
&gt;&gt;&gt; Seem that VAL_TYPE of "val + 2" isn't STRING, read it as DOUBLE 
&gt;&gt;&gt; (DB_DOUBLE = 1).
&gt;&gt;&gt; Do not know why.
&gt;&gt;&gt; And because of this the 'if' conditions never are satisfy on trusted.c 
&gt;&gt;&gt; (line #396):
&gt;&gt;&gt;
&gt;&gt;&gt;                 if ((ROW_N(row + i) == 3) &amp;&amp;
&gt;&gt;&gt;                     (VAL_TYPE(val) == DB_STRING) &amp;&amp; !VAL_NULL(val) &amp;&amp;
&gt;&gt;&gt;                     (VAL_TYPE(val + 1) == DB_STRING) &amp;&amp; !VAL_NULL(val 
&gt;&gt;&gt; + 1) &amp;&amp;
&gt;&gt;&gt;                     (VAL_TYPE(val + 2) == DB_STRING) &amp;&amp; !VAL_NULL(val 
&gt;&gt;&gt; + 2)) {
&gt;&gt; 
&gt;&gt; 
&gt;&gt; Thank you very much for the debug lines! I think SER simply uses the 
&gt;&gt; field types returned by the mysql server, so there might be a problem 
&gt;&gt; with the server or library. You can check what the field types are along 
&gt;&gt; with their names returned by the server in modules/mysql/res.c, search 
&gt;&gt; for the mysql_fetch_fields function.
&gt;&gt; 
&gt;&gt; Miklos
&gt;&gt; 
&gt;
&gt;Miklos,
&gt;
&gt;I've resolved this issue and a similar one ("preload_udomain error").
&gt;There was an old installation of mysql libs (in /usr/sfw/), then I 
&gt;removed it, and finally recompile mysql.so module including correct 
&gt;mysql.h (/opt/csw/).
&gt;
&gt;Now fields returned are with their correct type.
&gt;
&gt;Thank you..
&gt;
&gt;Caio
&gt;
&gt;
&gt;------------------------------
&gt;
&gt;_______________________________________________
&gt;Serusers mailing list
&gt;Serusers@lists.iptel.org
&gt;http://lists.iptel.org/mailman/listinfo/serusers
&gt;
&gt;
&gt;End of Serusers Digest, Vol 70, Issue 4
&gt;***************************************
</PRE><br><!-- footer --><br><span title="neteasefooter"/><hr/>
<a href="http://www.yeah.net">网易邮箱,中国第一大电子邮件服务商</a>
</span>