[Serusers] record_route() and forwarding

Greg Fausak greg at addabrand.com
Wed Oct 13 15:33:02 CEST 2004


Paul,

Please keep serusers in the post.

Get rid of the forward statement to try t_relay().

-g

On Oct 13, 2004, at 2:54 AM, Pavel Siderov wrote:

> Ok, explain me please. I tried this way:
>  
>         if (uri=~"^sip:[0-9]*@sip.exsisto.com") {
>             rewritehost("172.168.2.14");
>             forward( 172.168.2.14, 5060 );
>             t_relay();
>             break;
>        }
>  
> But the same thing. Did you mean that?
> ----- Original Message -----
>  From: Greg Fausak
> To: Pavel Siderov
> Cc: serusers at lists.iptel.org
> Sent: Tuesday, October 12, 2004 7:59 PM
> Subject: Re: [Serusers] record_route() and forwarding
>
> Pavel,
>
> 'forward' doesn't do accounting.
> 'relay' does...
>
> ---greg
>
> On Oct 12, 2004, at 10:08 AM, Pavel Siderov wrote:
>
>
> I found that somebody else have had the same problem as mine but no 
> answer to his mail...
> http://lists.iptel.org/pipermail/serusers/2004-April/007183.html
> ----- Original Message -----
> From: Pavel Siderov
>  To: serusers at lists.iptel.org
> Sent: Tuesday, October 12, 2004 4:34 PM
> Subject: [Serusers] record_route() and forwarding
>
> Hi,
> I have ser running fine with accounting for local calls but when I 
> make forwarding it doesn't write to the to table acc... No invite, no 
> ack, no bye ??!!!
> Here is my request routing logic:
>  
>  
> route{
>         if (!mf_process_maxfwd_header("10")) {
>                 sl_send_reply("483","Too Many Hops");
>                 break;
>         };
>         if ( msg:len > max_len ) {
>                 sl_send_reply("513", "Message too big");
>                 break;
>         };
>
>         record_route();
>         setflag(1);
>         setflag(2);
>  
>         if (uri=~"^sip:[0-9]*@sip.exsisto.com") {
>             rewritehost("172.168.2.14");
>             forward( 172.168.2.14, 5060 );
>             break;
>        }
>  
>         if (loose_route()) {
>                 t_relay();
>                 break;
>         };
>  
>         if (uri==myself) {
>                 if (method=="REGISTER") {
>                         if (!www_authorize("172.168.2.15", 
> "subscriber")) {
>                                 www_challenge("172.168.2.15", "0");
>                                 break;
>                         };
>                         save("location");
>                         save("aliases");
>                         break;
>                 };
>  
>               if (!lookup("aliases")) {
>                         sl_send_reply("404", "Not Found");
>                         break;
>                 };
>         };
>  
>         if (!t_relay()) {
>                 sl_reply_error();
>         };
> }
>  
> Somebody knows what's the problem or what I havent done?
> Thanks in advance!
> Pavel Siderov
>
>
> _______________________________________________
> 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
>
> Greg Fausak
> www.AddaBrand.com
> (US) 469-546-1265
>
Greg Fausak
www.AddaBrand.com
(US) 469-546-1265
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 4589 bytes
Desc: not available
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20041013/c94f19d7/attachment.bin>


More information about the sr-users mailing list