[Users] Using forward_tcp help

Daniel-Constantin Mierla daniel at voice-system.ro
Tue Oct 10 09:19:49 CEST 2006


Maybe the REGISTER does not get to the forward_tcp(). Put some xlog() 
messages and watch the trace.

Cheers,
Daniel


On 10/09/06 10:26, 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;
>               };
>
>
> _______________________________________________
> Users mailing list
> Users at openser.org
> http://openser.org/cgi-bin/mailman/listinfo/users
>




More information about the sr-users mailing list