<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<tt>Hi Diego,<br>
<br>
So, the opensips startup is ok (with no errors or so) ? Are the
destinations loaded correctly (check with opensipsctl via fifo)<br>
<br>
The errors you mentioned pop up only when doing ds_select_dst() -
do you see any error actually reported by the dispatcher module
(should look like "ERROR:dispatcher:......") .<br>
</tt><tt><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>
<br>
On 08/31/2012 09:02 AM, Diego Barberio wrote:
<blockquote
cite="mid:CABKsyb55gwd9tB8UTBnFO7CTpML8M3M5NobXh5UyHKS7ND+4Kg@mail.gmail.com"
type="cite">Hello all,<br>
<br>
I'm trying to migrate from opensips 1.7.2 to 1.8.1. I only use
opensips to redirect incomming INVITEs to 3 sets of media servers
using dispatcher module.<br>
This is my current dispatcher file:<br>
<br>
1 sip:<a moz-do-not-send="true" href="http://10.180.12.5:5060">10.180.12.5:5060</a><br>
1 sip:<a moz-do-not-send="true" href="http://10.180.12.13:5060">10.180.12.13:5060</a><br>
1 sip:<a moz-do-not-send="true" href="http://10.180.12.14:5060">10.180.12.14:5060</a><br>
1 sip:<a moz-do-not-send="true" href="http://10.180.12.15:5060">10.180.12.15:5060</a><br>
1 sip:<a moz-do-not-send="true" href="http://10.180.12.16:5060">10.180.12.16:5060</a><br>
1 sip:<a moz-do-not-send="true" href="http://10.180.12.17:5060">10.180.12.17:5060</a><br>
1 sip:<a moz-do-not-send="true" href="http://10.180.12.18:5060">10.180.12.18:5060</a><br>
1 sip:<a moz-do-not-send="true" href="http://10.180.12.19:5060">10.180.12.19:5060</a><br>
<br>
2 sip:<a moz-do-not-send="true" href="http://10.180.12.21:5060">10.180.12.21:5060</a><br>
<br>
3 sip:<a moz-do-not-send="true" href="http://10.180.12.21:5061">10.180.12.21:5061</a><br>
<br>
<br>
I still want to use a file for the destinations so I've created
the dbtext and completed the dispatcher table like this:<br>
<br>
id(int,auto) setid(int) destination(string) socket(string,null)
flags(int) weight(int) attrs(string) description(string)<br>
1:1:sip\:10.180.12.5\:5060::0:1:'':''<br>
2:1:sip\:10.180.12.13\:5060::0:1:'':''<br>
3:1:sip\:10.180.12.14\:5060::0:1:'':''<br>
4:1:sip\:10.180.12.15\:5060::0:1:'':''<br>
5:1:sip\:10.180.12.16\:5060::0:1:'':''<br>
6:1:sip\:10.180.12.17\:5060::0:1:'':''<br>
7:1:sip\:10.180.12.18\:5060::0:1:'':''<br>
8:1:sip\:10.180.12.19\:5060::0:1:'':''<br>
9:2:sip\:10.180.12.21\:5060::0:1:'':''<br>
10:3:sip\:10.180.12.21\:5061::0:1:'':''<br>
<br>
However, opensips is returning error when calling to ds_select_dst
and I see the following repeating errors in "messages" file:<br>
<br>
Aug 30 23:43:15 GT-RBT-SIP-1 /usr/local/sbin/opensips[27008]:
ERROR:core:new_avp: invalid AVP name! <br>
Aug 30 23:43:15 GT-RBT-SIP-1 /usr/local/sbin/opensips[27006]:
ERROR:core:add_avp: Failed to create new avp structure <br>
Aug 30 23:43:15 GT-RBT-SIP-1 /usr/local/sbin/opensips[27007]:
ERROR:core:add_avp: Failed to create new avp structure <br>
Aug 30 23:43:15 GT-RBT-SIP-1 /usr/local/sbin/opensips[27009]:
ERROR:core:new_avp: invalid AVP name! <br>
<br>
This is the part of my configuration script where I set up the
dispatcher module:<br>
<br>
# ----------------- setting module-specific parameters
---------------<br>
<br>
modparam("db_text", "db_mode", 0)<br>
<br>
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")<br>
<br>
modparam("tm", "T1_timer", 200)<br>
<br>
# -- dispatcher params --<br>
modparam("dispatcher", "db_url",
"text:///usr/local/etc/opensips/dbtext")<br>
modparam("dispatcher", "ds_ping_from", "<a moz-do-not-send="true"
href="mailto:sip%3Aproxy@10.180.12.4">sip:proxy@10.180.12.4</a>")<br>
modparam("dispatcher", "ds_ping_interval", 10)<br>
modparam("dispatcher", "ds_probing_mode", 1)<br>
modparam("dispatcher", "ds_probing_threshhold", 2)<br>
<br>
<br>
Please, could you let me know what am I doing wrong?<br>
<br>
Thanks Diego<br>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>