[OpenSIPS-Users] need some help using opensips 3.0 cluster module .
Sasmita Panda
spanda at 3clogic.com
Fri Aug 2 06:58:29 EDT 2019
Hi Liviu,
Dialing sip3 from sip2 is working fine now . Previously I have written as
below for lookup .
$var(lookup_flags) = "m";
if (cluster_check_addr(1, $si, "bin")) {
xlog("$rm from cluster, doing local lookup only $si
$var(lookup_flags) \n");
} else {
xlog("$rm from outside, doing global lookup $si
$var(lookup_flags) 1st line \n");
$var(lookup_flags) = $var(lookup_flags) + "g";
xlog("$rm from outside, doing global lookup
$var(lookup_flags) 2nd line \n");
}
if (!lookup("location", "$var(lookup_flags)")) {
xlog("$rm from outside, when user wont exists $si
$var(lookup_flags) \n");
t_reply(404, "Not Found");
exit;
}
Now I simple comment this and write as below
if (!lookup("location")) {
t_newtran();
xlog( "L_WARN", "Source IP : $si To Uri : $tu From : $fU
Request URI: $oU Call ID:$ci: NO Match Found" );
t_reply(404, "Not Found");
exit;
}
In this case its working for me . I think in previous case it was always
going in the 404 block . But why the problem was for dialing this kind of
username . when I was dialing any number that was working fine .
But then my problem was gone . :)
*Thanks & Regards*
*Sasmita Panda*
*Senior Network Testing and Software Engineer*
*3CLogic , ph:07827611765*
On Thu, Aug 1, 2019 at 5:09 PM Sasmita Panda <spanda at 3clogic.com> wrote:
> Lets move back to the previous problem which is more important for me .
> When I am dialing out sip2 (user) from even though its present in the
> memory but its giving 404 Not Found .
> Attached the dbug log below .
>
> *Thanks & Regards*
> *Sasmita Panda*
> *Senior Network Testing and Software Engineer*
> *3CLogic , ph:07827611765*
>
>
> On Tue, Jul 30, 2019 at 5:49 PM Liviu Chircu <liviu at opensips.org> wrote:
>
>> Do you get any errors in the logs? Can you connect from console with
>> that user/password, just
>> to confirm access works? It looks like a configuration issue. If you
>> can't figure it out,
>> please provide full debug logs.
>>
>> Liviu Chircu
>> OpenSIPS Developer
>> http://www.opensips-solutions.com
>>
>> On 30.07.2019 14:49, Sasmita Panda wrote:
>> > This is the common configuration for every node . But why its
>> > deviating for node 1 to save the data in local mysql location DB .
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20190802/5ef2696e/attachment.html>
More information about the Users
mailing list