<div>&nbsp;</div>
<div>&nbsp;MY CONFIG IS OK NOW.</div>
<div>&nbsp;</div>
<div>&nbsp;But with PDT I&nbsp;only have problem when there is the some prefix to hostnames&nbsp;destination differents, the OpenSER show me that there is duplicate prefix and stop init.</div>
<div>&nbsp;</div>
<div>Example:</div>
<div>prefix 33 to <a href="http://proxy1.com">proxy1.com</a></div>
<div>and</div>
<div>prefix 33 to <a href="http://proxy2.com">proxy2.com</a></div>
<div>&nbsp;</div>
<div>&nbsp;With prefix different I donĀ“t have problem now.</div>
<div>&nbsp;</div>
<div>&nbsp;IS this OK? ou I am with &nbsp;mistake in my config?</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">2006/9/6, Bogdan-Andrei Iancu &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>try to set the db_url only like:<br>&nbsp;&nbsp; modparam(&quot;pdt&quot;, &quot;db_url&quot;, &quot;dbtext:///etc/openser&quot;)
<br>and rename /etc/openser/dbtext to /etc/openser/pdt to match the table name<br><br>regards,<br>bogdan<br><br>Andrew And wrote:<br><br>&gt;<br>&gt;&nbsp;&nbsp;I am using PDT and I try to use DB type DBTEXT but I have problem,<br>
&gt; COuld some help me_? Below I wrote debug screen and configuration._<br>&gt;<br>&gt;&nbsp;&nbsp;0(0) PDT: initializing...<br>&gt;&nbsp;&nbsp;0(0) DEBUG: register_fifo_cmd: new command (pdt_add) registered<br>&gt;&nbsp;&nbsp;0(0) DEBUG: register_fifo_cmd: new command (pdt_delete) registered
<br>&gt;&nbsp;&nbsp;0(0) DEBUG: register_fifo_cmd: new command (pdt_list) registered<br>&gt;&nbsp;&nbsp;0(0) unixsock_register_cmd: New command (get_domainprefix) registered<br>&gt;&nbsp;&nbsp;0(0) find_mod_export: found &lt;db_use_table&gt; in module dbtext
<br>&gt; [/lib/openser/modules/dbtext.so]<br>&gt;&nbsp;&nbsp;0(0) find_mod_export: found &lt;db_init&gt; in module dbtext<br>&gt; [/lib/openser/modules/dbtext.so]<br>&gt;&nbsp;&nbsp;0(0) find_mod_export: found &lt;db_close&gt; in module dbtext
<br>&gt; [/lib/openser/modules/dbtext.so]<br>&gt;&nbsp;&nbsp;0(0) find_mod_export: found &lt;db_query&gt; in module dbtext<br>&gt; [/lib/openser/modules/dbtext.so]<br>&gt;&nbsp;&nbsp;0(0) find_mod_export: found &lt;db_raw_query&gt; in module dbtext
<br>&gt; [/lib/openser/modules/dbtext.so]<br>&gt;&nbsp;&nbsp;0(0) find_mod_export: found &lt;db_free_result&gt; in module dbtext<br>&gt; [/lib/openser/modules/dbtext.so]<br>&gt;&nbsp;&nbsp;0(0) find_mod_export: found &lt;db_insert&gt; in module dbtext
<br>&gt; [/lib/openser/modules/dbtext.so]<br>&gt;&nbsp;&nbsp;0(0) find_mod_export: found &lt;db_delete&gt; in module dbtext<br>&gt; [/lib/openser/modules/dbtext.so]<br>&gt;&nbsp;&nbsp;0(0) find_mod_export: found &lt;db_update&gt; in module dbtext
<br>&gt; [/lib/openser/modules/dbtext.so]<br>&gt;&nbsp;&nbsp;0(0) find_mod_export: &lt;db_replace&gt; in module dbtext not found<br>&gt;&nbsp;&nbsp;0(0) DBT:dbt_cache_get_db: looking for db /etc/openser/dbtext!<br>&gt;&nbsp;&nbsp;0(0) DBT:dbt_cache_get_db: database [/etc/openser/dbtext] does not
<br>&gt; exists!<br>&gt;&nbsp;&nbsp;0(0) DBT:dbt_init: cannot get the link to database<br>&gt;&nbsp;&nbsp;0(0) PDT: mod_init: Error while connecting to database<br>&gt;&nbsp;&nbsp;0(0) init_mod(): Error while initializing module pdt<br>&gt; ERROR: error while initializing modules
<br>&gt;<br>&gt;<br>&gt;<br>&gt; - Configuration:<br>&gt;<br>&gt; loadmodule &quot;/lib/openser/modules/dbtext.so&quot;<br>&gt; loadmodule &quot;/lib/openser/modules/pdt.so&quot;<br>&gt;<br>&gt; modparam(&quot;pdt&quot;, &quot;db_url&quot;, &quot;dbtext:///etc/openser/dbtext&quot;)
<br>&gt; #modparam(&quot;pdt&quot;, &quot;db_table&quot;, &quot;pdt&quot;)<br>&gt; modparam(&quot;pdt&quot;, &quot;prefix_column&quot;, &quot;code&quot;)<br>&gt; modparam(&quot;pdt&quot;, &quot;domain_column&quot;, &quot;hostname&quot;)
<br>&gt; #modparam(&quot;pdt&quot;, &quot;prefix&quot;, &quot;00&quot;)<br>&gt; modparam(&quot;pdt&quot;, &quot;hsize_2pow&quot;, 4)<br>&gt; modparam(&quot;pdt&quot;, &quot;sync_time&quot;, 300)<br>&gt; modparam(&quot;pdt&quot;, &quot;clean_time&quot;, 600)
<br>&gt;<br>&gt;<br>&gt; - /etc/openser/dbtext:<br>&gt;<br>&gt; hostname(str)&nbsp;&nbsp; code(str)<br>&gt; groupX:2121<br>&gt; <a href="http://groupY.voip.nce.ufrj.br:3131">groupY.voip.nce.ufrj.br:3131</a> &lt;<a href="http://groupY.voip.nce.ufrj.br:3131">
http://groupY.voip.nce.ufrj.br:3131</a>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;------------------------------------------------------------------------<br>&gt;<br>&gt;_______________________________________________<br>
&gt;Users mailing list<br>&gt;<a href="mailto:Users@openser.org">Users@openser.org</a><br>&gt;<a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br>&gt;<br>&gt;
<br><br></blockquote></div><br>