<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix"><tt>Hi Pasan,<br>
<br>
OK, the online docs were fixed, thank for the notice.<br>
<br>
The backtrace points to the "cflags" field - this was changed
from "int" to "string" - and you did not made the correct change
in your table definition. This causes the crash.<br>
<br>
Regards, <br>
</tt>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
On 06.06.2014 06:18, Pasan Meemaduma wrote:<br>
</div>
<blockquote
cite="mid:1402024702.5226.YahooMailNeo@web163402.mail.gq1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:times
new roman, new york, times, serif;font-size:10pt">
<div style="" class=""><span style="" class="">Hi Bogdan,</span></div>
<div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: times new roman,new york,times,serif;
background-color: transparent; font-style: normal;"><br
style="" class="">
<span style="" class=""></span></div>
<div class="" style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: times new roman,new york,times,serif;
background-color: transparent; font-style: normal;"><span
style="" class="">Thanks for the reply. I created the table
using normal schema it looks fine to me. I was refering to
the old url you gave me. There in that table attr was
missing :)<br style="" class="">
</span></div>
<div style="" class=""><br style="" class="">
this is the url missing attr in location table<br style=""
class="">
<tt style="" class=""><a moz-do-not-send="true" style=""
rel="nofollow" shape="rect" class="" target="_blank"
href="http://www.opensips.org/Documentation/Install-DBSchema-1-10#AEN7254">http://www.opensips.org/Documentation/Install-DBSchema-1-10#AEN7254</a>
<br style="" class="">
<br style="" class="">
<br style="" class="">
below is my table schema,<br style="" class="">
<br style="" class="">
mysql> desc location;<br style="" class="">
+---------------+------------------+------+-----+---------------------+----------------+<br
style="" class="">
| Field | Type | Null | Key |
Default | Extra |<br style="" class="">
+---------------+------------------+------+-----+---------------------+----------------+<br
style="" class="">
| id | int(10) unsigned | NO | PRI |
NULL | auto_increment |<br style="" class="">
| username | char(64) | NO | MUL
| | |<br style=""
class="">
| domain | char(64) | YES | |
NULL | |<br style="" class="">
| contact | char(255) | NO |
| | |<br style=""
class="">
| received | char(128) | YES | |
NULL | |<br style="" class="">
| path | char(128) | YES | |
NULL | |<br style="" class="">
| expires | datetime | NO | | 2020-05-28
21:32:15 | |<br style="" class="">
| q | float(10,2) | NO | |
1.00 | |<br style="" class="">
| callid | char(255) | NO | |
Default-Call-ID | |<br style="" class="">
| cseq | int(11) | NO | |
13 | |<br style="" class="">
| last_modified | datetime | NO | | 1900-01-01
00:00:01 | |<br style="" class="">
| flags | int(11) | NO | |
0 | |<br style="" class="">
| cflags | int(11) | NO | |
0 | |<br style="" class="">
| user_agent | char(255) | NO |
| | |<br style=""
class="">
| socket | char(64) | YES | |
NULL | |<br style="" class="">
| methods | int(11) | YES | |
NULL | |<br style="" class="">
| sip_instance | char(255) | YES | |
NULL | |<br style="" class="">
| attr | char(255) | YES | |
NULL | |<br style="" class="">
+---------------+------------------+------+-----+---------------------+----------------+<br
style="" class="">
<br style="" class="">
<br style="" class="">
attr holds NULL values for all entries.<br style="" class="">
<br style="" class="">
do I have to run below in gdb after running bt full right ?<br
style="" class="">
<br style="" class="">
this is what i got<br style="" class="">
<br style="" class="">
(gdb) f 1<br style="" class="">
#1 0x00007f64823a60a2 in dbrow2info
(contact=0x7fffe0246180, vals=0x7f648287a260) at
udomain.c:306<br style="" class="">
306 in udomain.c<br style="" class="">
(gdb) p (vals+6)->val.string_val<br style="" class="">
$2 = 0x0<br style="" class="">
(gdb) <br style="" class="">
<br style="" class="">
<br style="" class="">
-----------------without running bt full ------------- just
in case :)<br style="" class="">
(gdb) f 1<br style="" class="">
#1 0x00007f64823a60a2 in dbrow2info
(contact=0x7fffe0246180, vals=0x7f648287a260) at
udomain.c:306<br style="" class="">
306 udomain.c: No such file or directory.<br style=""
class="">
(gdb) p (vals+6)->val.string_val<br style="" class="">
$1 = 0x0<br style="" class="">
<br style="" class="">
</tt></div>
<div class="qtdSeparateBR"><br>
<br>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>