Hi Diego,

So, the opensips startup is ok (with no errors or so) ? Are the destinations loaded correctly (check with opensipsctl via fifo)

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:......") .

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 08/31/2012 09:02 AM, Diego Barberio wrote:
Hello all,

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.
This is my current dispatcher file:

1 sip:10.180.12.5:5060 <http://10.180.12.5:5060>
1 sip:10.180.12.13:5060 <http://10.180.12.13:5060>
1 sip:10.180.12.14:5060 <http://10.180.12.14:5060>
1 sip:10.180.12.15:5060 <http://10.180.12.15:5060>
1 sip:10.180.12.16:5060 <http://10.180.12.16:5060>
1 sip:10.180.12.17:5060 <http://10.180.12.17:5060>
1 sip:10.180.12.18:5060 <http://10.180.12.18:5060>
1 sip:10.180.12.19:5060 <http://10.180.12.19:5060>

2 sip:10.180.12.21:5060 <http://10.180.12.21:5060>

3 sip:10.180.12.21:5061 <http://10.180.12.21:5061>


I still want to use a file for the destinations so I've created the dbtext and completed the dispatcher table like this:

id(int,auto) setid(int) destination(string) socket(string,null) flags(int) weight(int) attrs(string) description(string)
1:1:sip\:10.180.12.5\:5060::0:1:'':''
2:1:sip\:10.180.12.13\:5060::0:1:'':''
3:1:sip\:10.180.12.14\:5060::0:1:'':''
4:1:sip\:10.180.12.15\:5060::0:1:'':''
5:1:sip\:10.180.12.16\:5060::0:1:'':''
6:1:sip\:10.180.12.17\:5060::0:1:'':''
7:1:sip\:10.180.12.18\:5060::0:1:'':''
8:1:sip\:10.180.12.19\:5060::0:1:'':''
9:2:sip\:10.180.12.21\:5060::0:1:'':''
10:3:sip\:10.180.12.21\:5061::0:1:'':''

However, opensips is returning error when calling to ds_select_dst and I see the following repeating errors in "messages" file:

Aug 30 23:43:15 GT-RBT-SIP-1 /usr/local/sbin/opensips[27008]: ERROR:core:new_avp: invalid AVP name! Aug 30 23:43:15 GT-RBT-SIP-1 /usr/local/sbin/opensips[27006]: ERROR:core:add_avp: Failed to create new avp structure Aug 30 23:43:15 GT-RBT-SIP-1 /usr/local/sbin/opensips[27007]: ERROR:core:add_avp: Failed to create new avp structure Aug 30 23:43:15 GT-RBT-SIP-1 /usr/local/sbin/opensips[27009]: ERROR:core:new_avp: invalid AVP name!

This is the part of my configuration script where I set up the dispatcher module:

# ----------------- setting module-specific parameters ---------------

modparam("db_text", "db_mode", 0)

modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")

modparam("tm", "T1_timer", 200)

# -- dispatcher params --
modparam("dispatcher", "db_url", "text:///usr/local/etc/opensips/dbtext")
modparam("dispatcher", "ds_ping_from", "sip:[email protected] <mailto:sip%[email protected]>")
modparam("dispatcher", "ds_ping_interval", 10)
modparam("dispatcher", "ds_probing_mode", 1)
modparam("dispatcher", "ds_probing_threshhold", 2)


Please, could you let me know what am I doing wrong?

Thanks Diego


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to