Hi Bogdan,<br><br>Thanks for you reply. Well as you said about a SIP URI, I've set it, as you told, but no luck, I'm getting same error. The OS I'm using is CentOS 5.2.<br><br><br>Kindly advise me to resolve this problem.<br>
<br><br>Date: Fri, 11 Dec 2009 18:04:04 +0200<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
From: Bogdan-Andrei Iancu <<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>><br>
Subject: Re: [OpenSIPS-Users] Getting error using Dispatcher module<br>
To: OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
Message-ID: <<a href="mailto:4B226D74.2030206@voice-system.ro">4B226D74.2030206@voice-system.ro</a>><br>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed<br>
<br>
Hello Ahmed<br>
<br>
The destination field (in DB) must be a SIP URI, like sip:xx.xx.xx.xx:5060<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Ahmed Munir wrote:<br>
> Hi,<br>
><br>
> I'm getting error using Dispatcher module as listing below;<br>
><br>
> Dec 11 07:22:57 newtest /usr/local/sbin/opensips[15487]:<br>
> ERROR:core:parse_uri: bad uri, state 0 parsed: <77.6> (4) /<br>
> <77.66.x.x:5060> (16)<br>
> Dec 11 07:22:57 newtest /usr/local/sbin/opensips[15487]:<br>
> ERROR:dispatcher:add_dest2list: bad uri [77.66.x.x:5060]<br>
> Dec 11 07:22:57 newtest /usr/local/sbin/opensips[15487]:<br>
> ERROR:dispatcher:mod_init: could not initiate a connect to the database<br>
> Dec 11 07:22:57 newtest /usr/local/sbin/opensips[15487]:<br>
> ERROR:core:init_mod: failed to initialize module dispatcher<br>
> Dec 11 07:22:57 newtest /usr/local/sbin/opensips[15487]:<br>
> ERROR:core:main: error while initializing modules<br>
><br>
> Even when I configured OpenSIPs version 1.5.2, dispatcher module was<br>
> easily configured but now I using same configuration and applied on<br>
> version 1.6 getting the error as I listed above.<br>
><br>
> Using command 'opensipsctl dispatcher show' its showing me the fields<br>
> of table dispatcher as listing below;<br>
><br>
> +----+-------+------------------+-------+--------+-------+------------------+<br>
> | id | setid | destination | flags | weight | attrs | description |<br>
> +----+-------+------------------+-------+--------+-------+------------------+<br>
> | 1 | 1 | 77.66.x.x:5060 | 0 | 1 | |<br>
> |<br>
> | 2 | 1 | 77.66.x.x:5060 | 0 | 1 |<br>
> | |<br>
> +----+-------+------------------+-------+--------+-------+------------------+<br>
><br>
><br>
> The settings I done in opensips.cfg file is listed below;<br>
><br>
> loadmodule "dispatcher.so"<br>
><br>
> modparam("dispatcher",<br>
> "db_url","mysql://opensips:opensipsrw@localhost/opensips")<br>
><br>
> if (is_method("INVITE")) {<br>
><br>
> ds_select_dst("1", "4");<br>
> forward();<br>
> route(1);<br>
> setflag(1); # do accounting<br>
> }<br>
><br>
><br>
> Further added I can even login to mysql using opensips credentials as<br>
> well.<br>
><br>
> Kindly advise me how to resolve this issue.<br>
><br>
> --<br>
> Regards,<br>
><br>
> Ahmed Munir<br>
><br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
--<br>
Bogdan-Andrei Iancu<br>
<a href="http://www.voice-system.ro" target="_blank">www.voice-system.ro</a><br>
<br>
<br>
<br>
<br></blockquote></div><br><br>-- <br>Regards,<br><br>Ahmed Munir<br><br><br>