[OpenSIPS-Users] Getting error using Dispatcher module
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Mon Dec 14 13:43:02 CET 2009
Ahmed,
could you post again the errors you get from opensips 1.6 when having
the dispatcher destination as SIP URIs ?
Regards,
Bogdan
Ahmed Munir wrote:
> Hi Bogdan,
>
> 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.
>
>
> Kindly advise me to resolve this problem.
>
>
> Date: Fri, 11 Dec 2009 18:04:04 +0200
>
> From: Bogdan-Andrei Iancu <bogdan at voice-system.ro
> <mailto:bogdan at voice-system.ro>>
> Subject: Re: [OpenSIPS-Users] Getting error using Dispatcher module
> To: OpenSIPS users mailling list <users at lists.opensips.org
> <mailto:users at lists.opensips.org>>
> Message-ID: <4B226D74.2030206 at voice-system.ro
> <mailto:4B226D74.2030206 at voice-system.ro>>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello Ahmed
>
> The destination field (in DB) must be a SIP URI, like
> sip:xx.xx.xx.xx:5060
>
> Regards,
> Bogdan
>
> Ahmed Munir wrote:
> > Hi,
> >
> > I'm getting error using Dispatcher module as listing below;
> >
> > Dec 11 07:22:57 newtest /usr/local/sbin/opensips[15487]:
> > ERROR:core:parse_uri: bad uri, state 0 parsed: <77.6> (4) /
> > <77.66.x.x:5060> (16)
> > Dec 11 07:22:57 newtest /usr/local/sbin/opensips[15487]:
> > ERROR:dispatcher:add_dest2list: bad uri [77.66.x.x:5060]
> > Dec 11 07:22:57 newtest /usr/local/sbin/opensips[15487]:
> > ERROR:dispatcher:mod_init: could not initiate a connect to the
> database
> > Dec 11 07:22:57 newtest /usr/local/sbin/opensips[15487]:
> > ERROR:core:init_mod: failed to initialize module dispatcher
> > Dec 11 07:22:57 newtest /usr/local/sbin/opensips[15487]:
> > ERROR:core:main: error while initializing modules
> >
> > Even when I configured OpenSIPs version 1.5.2, dispatcher module was
> > easily configured but now I using same configuration and applied on
> > version 1.6 getting the error as I listed above.
> >
> > Using command 'opensipsctl dispatcher show' its showing me the
> fields
> > of table dispatcher as listing below;
> >
> >
> +----+-------+------------------+-------+--------+-------+------------------+
> > | id | setid | destination | flags | weight | attrs |
> description |
> >
> +----+-------+------------------+-------+--------+-------+------------------+
> > | 1 | 1 | 77.66.x.x:5060 | 0 | 1 | |
> > |
> > | 2 | 1 | 77.66.x.x:5060 | 0 | 1 |
> > | |
> >
> +----+-------+------------------+-------+--------+-------+------------------+
> >
> >
> > The settings I done in opensips.cfg file is listed below;
> >
> > loadmodule "dispatcher.so"
> >
> > modparam("dispatcher",
> > "db_url","mysql://opensips:opensipsrw@localhost/opensips")
> >
> > if (is_method("INVITE")) {
> >
> > ds_select_dst("1", "4");
> > forward();
> > route(1);
> > setflag(1); # do accounting
> > }
> >
> >
> > Further added I can even login to mysql using opensips
> credentials as
> > well.
> >
> > Kindly advise me how to resolve this issue.
> >
> > --
> > Regards,
> >
> > Ahmed Munir
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Users mailing list
> > Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/users
> >
>
>
> --
> Bogdan-Andrei Iancu
> www.voice-system.ro <http://www.voice-system.ro>
>
>
>
>
>
>
> --
> Regards,
>
> Ahmed Munir
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Users
mailing list