[Serusers] Using forward_tcp help
Greger Viken Teigre
greger at teigre.com
Mon Oct 9 11:21:53 CEST 2006
Well, you could do some debugging to see what happens and not. I'm not clairvoyant or anything, so beyond pointing out obvious things in your config, I can
only respond to observations you provide.
g-)
------- Original message -------
From: Nhadie Ramos <nhadie at tbgi.net.ph>
Sent: 9.10.'06, 17:38
> Hi Greger,
>
> Thank you for your reply.
>
> I tried what you suggested, are there any things i still should do? like
> paramaters of usrloc?
> Because i still can't call an extension registered on the other SIP servers.
>
> e.g.
> my extension is 5890 i'm registered at SIP #3, i'm try to call 5870
> registered at SIP#1 and i tried to call 5860 registered at SIP#2.
> but cannot call it it, when do serctl ul show extension registered on
> one SIP cannot be found on the others. what could be wrong?
>
> Thanks again
>
> Regards,
> Ron
>
>
>
>
> Greger V. Teigre wrote:
> > I would put a break after save_noreply() if I were you (to avoid
> > calling save later on)
> > and then you don't really need the second test for ips (enclosing the
> > forwards).
> > Except from that, it looks ok.
> > g-)
> >
> >
> > Nhadie Ramos wrote:
> >> Hi All,
> >>
> >> I have the REGISTER part of my ser.cfg below, what do you think is
> >> wrong because it doesn't replicate it.
> >> Do i have to do any changes on parameters of required modules?
> >>
> >>
> >> if (method=="REGISTER") {
> >>
> >> if ((src_ip=="10.10.10.20") ||
> >> (src_ip=="10.10.10.30")) {
> >> if (isflagset(8)) {xlog("L_INFO",
> >> "Register: Source is either 10.10.10.20 or 10.10.10.30\n");};
> >> save_noreply("location");
> >> } else if (!www_authorize("mydomain.com",
> >> "subscriber")) {
> >> if (isflagset(8)) {xlog("L_INFO",
> >> "Register: asking for authentication\n");};
> >> www_challenge("mydomain.com", "0");
> >> break;
> >> };
> >>
> >> if (isflagset(8)) {xlog("L_INFO", "Register:
> >> Authorized, saving location\n");};
> >>
> >> if (!save("location")) {
> >>
> >> sl_reply_error();
> >>
> >> } else {
> >> if (isflagset(8)) {xlog("L_INFO",
> >> "Register: Authorized, saving location\n");};
> >>
> >> if ((!src_ip=="10.10.10.20") ||
> >> (!src_ip=="10.10.10.30")) {
> >> if (isflagset(8))
> >> {xlog("L_INFO", "Register: Replicating to 10.10.10.20\n");};
> >> forward_tcp("10.10.10.20", 5060);
> >> forward_tcp("10.10.10.30", 5060);
> >> };
> >> };
> >> break;
> >> };
> >>
> >> _______________________________________________
> >> Serusers mailing list
> >> Serusers at lists.iptel.org
> >> http://lists.iptel.org/mailman/listinfo/serusers
> >>
> >>
> >
> >
>
> _______________________________________________
> Serusers mailing list
> Serusers at lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
More information about the sr-users
mailing list