Stop time is not Updated by the internal bye in Local_route

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Stop time is not Updated by the internal bye in Local_route

ASHWINI NAIDU
hi,
  When the call controller sends a dlg_end_dlg  to the 2 end-points after the balance tends to nil. The internal bye is entering the local_route but it is not updating the stop time.

Below is the piece of code in local_route

local_route {

        if ( method == "BYE") {
                log(1,"\nInternal bye was generated\n");
                setflag(3);
                unforce_rtp_proxy();
                acc_db_request("Internally generated BYE", "acc");
        };
}


--
Thanking You,
Ashwini BR Naidu

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Stop time is not Updated by the internal bye in Local_route

Bogdan-Andrei Iancu
Hi Ashwini,

What "stop" time are you refering to?

Regards,
Bogdan

ASHWINI NAIDU wrote:

> hi,
>   When the call controller sends a dlg_end_dlg  to the 2 end-points
> after the balance tends to nil. The internal bye is entering the
> local_route but it is not updating the stop time.
>
> Below is the piece of code in local_route
>
> local_route {
>
>         if ( method == "BYE") {
>                 log(1,"\nInternal bye was generated\n");
>                 setflag(3);
>                 unforce_rtp_proxy();
>                 acc_db_request("Internally generated BYE", "acc");
>         };
> }
>
>
> --
> Thanking You,
> Ashwini BR Naidu
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Stop time is not Updated by the internal bye in Local_route

ASHWINI NAIDU
hi bogdan,

    I am referring to the stop time generated by radius which is updated in radacct. Anyways i Have resolved the issue.



On Mon, Apr 6, 2009 at 10:11 PM, Bogdan-Andrei Iancu <[hidden email]> wrote:
Hi Ashwini,

What "stop" time are you refering to?

Regards,
Bogdan

ASHWINI NAIDU wrote:
hi,
 When the call controller sends a dlg_end_dlg  to the 2 end-points after the balance tends to nil. The internal bye is entering the local_route but it is not updating the stop time.

Below is the piece of code in local_route

local_route {

       if ( method == "BYE") {
               log(1,"\nInternal bye was generated\n");
               setflag(3);
               unforce_rtp_proxy();
               acc_db_request("Internally generated BYE", "acc");
       };
}


--
Thanking You,
Ashwini BR Naidu
------------------------------------------------------------------------

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 




--
Thanking You,
Ashwini BR Naidu

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Stop time is not Updated by the internal bye in Local_route

Bogdan-Andrei Iancu
Hi Ashwini,

if the flag 3 is for RADIUS accounting, it will not work, as there is
support for automatic acc in local_route (yet). So, use
acc_rad_request() from script directly.

Regards,
Bogdan

ASHWINI NAIDU wrote:

> hi bogdan,
>
>     I am referring to the stop time generated by radius which is
> updated in radacct. Anyways i Have resolved the issue.
>
>
>
> On Mon, Apr 6, 2009 at 10:11 PM, Bogdan-Andrei Iancu
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Hi Ashwini,
>
>     What "stop" time are you refering to?
>
>     Regards,
>     Bogdan
>
>     ASHWINI NAIDU wrote:
>
>         hi,
>          When the call controller sends a dlg_end_dlg  to the 2
>         end-points after the balance tends to nil. The internal bye is
>         entering the local_route but it is not updating the stop time.
>
>         Below is the piece of code in local_route
>
>         local_route {
>
>                if ( method == "BYE") {
>                        log(1,"\nInternal bye was generated\n");
>                        setflag(3);
>                        unforce_rtp_proxy();
>                        acc_db_request("Internally generated BYE", "acc");
>                };
>         }
>
>
>         --
>         Thanking You,
>         Ashwini BR Naidu
>         ------------------------------------------------------------------------
>
>         _______________________________________________
>         Users mailing list
>         [hidden email] <mailto:[hidden email]>
>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>          
>
>
>
>
>
> --
> Thanking You,
> Ashwini BR Naidu


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Stop time is not Updated by the internal bye in Local_route

ASHWINI NAIDU
Hi Bogdan,

    Thank you. I have fixed the issue in the same manner. thanks a lot for the reply


On Wed, Apr 8, 2009 at 6:29 PM, Bogdan-Andrei Iancu <[hidden email]> wrote:
Hi Ashwini,

if the flag 3 is for RADIUS accounting, it will not work, as there is support for automatic acc in local_route (yet). So, use acc_rad_request() from script directly.


Regards,
Bogdan

ASHWINI NAIDU wrote:
hi bogdan,

   I am referring to the stop time generated by radius which is updated in radacct. Anyways i Have resolved the issue.



On Mon, Apr 6, 2009 at 10:11 PM, Bogdan-Andrei Iancu <[hidden email] <mailto:[hidden email]>> wrote:

   Hi Ashwini,

   What "stop" time are you refering to?

   Regards,
   Bogdan

   ASHWINI NAIDU wrote:

       hi,
        When the call controller sends a dlg_end_dlg  to the 2
       end-points after the balance tends to nil. The internal bye is
       entering the local_route but it is not updating the stop time.

       Below is the piece of code in local_route

       local_route {

              if ( method == "BYE") {
                      log(1,"\nInternal bye was generated\n");
                      setflag(3);
                      unforce_rtp_proxy();
                      acc_db_request("Internally generated BYE", "acc");
              };
       }


       --        Thanking You,
       Ashwini BR Naidu
       ------------------------------------------------------------------------

       _______________________________________________
       Users mailing list
       [hidden email] <mailto:[hidden email]>

       http://lists.opensips.org/cgi-bin/mailman/listinfo/users
       




--
Thanking You,
Ashwini BR Naidu




--
Thanking You,
Ashwini BR Naidu

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Stop time is not Updated by the internal bye in Local_route

bay2x1
I am also having problem in handling internal BYE generated by the call control module when account balance reaches to zero.  Please check if my routing script to handle internally generated BYE is correct.

                        if (is_method("BYE")) {

                                setflag(1); # do accounting ...
                                setflag(3); # ... even if the transaction fails

                                acc_rad_request("Internally generated BYE");
                        }
                        route(1);

route[1] {
        # for INVITEs enable some additional helper routes
        if (is_method("INVITE")) {
                t_on_branch("2");
                t_on_reply("2");
                t_on_failure("1");
        }

        if (!t_relay()) {
                sl_reply_error();
        };
        exit;
}

I am using radius for accounting.  The accounting works if the call is terminated on the either softphones.  My radius flag is set to 1.


ASHWINI NAIDU wrote
Hi Bogdan,

    Thank you. I have fixed the issue in the same manner. thanks a lot for
the reply


On Wed, Apr 8, 2009 at 6:29 PM, Bogdan-Andrei Iancu
<bogdan@voice-system.ro>wrote:

> Hi Ashwini,
>
> if the flag 3 is for RADIUS accounting, it will not work, as there is
> support for automatic acc in local_route (yet). So, use acc_rad_request()
> from script directly.
>
> Regards,
> Bogdan
>
> ASHWINI NAIDU wrote:
>
>> hi bogdan,
>>
>>    I am referring to the stop time generated by radius which is updated in
>> radacct. Anyways i Have resolved the issue.
>>
>>
>>
>> On Mon, Apr 6, 2009 at 10:11 PM, Bogdan-Andrei Iancu <
>> bogdan@voice-system.ro <mailto:bogdan@voice-system.ro>> wrote:
>>
>>    Hi Ashwini,
>>
>>    What "stop" time are you refering to?
>>
>>    Regards,
>>    Bogdan
>>
>>    ASHWINI NAIDU wrote:
>>
>>        hi,
>>         When the call controller sends a dlg_end_dlg  to the 2
>>        end-points after the balance tends to nil. The internal bye is
>>        entering the local_route but it is not updating the stop time.
>>
>>        Below is the piece of code in local_route
>>
>>        local_route {
>>
>>               if ( method == "BYE") {
>>                       log(1,"\nInternal bye was generated\n");
>>                       setflag(3);
>>                       unforce_rtp_proxy();
>>                       acc_db_request("Internally generated BYE", "acc");
>>               };
>>        }
>>
>>
>>        --        Thanking You,
>>        Ashwini BR Naidu
>>
>>  ------------------------------------------------------------------------
>>
>>        _______________________________________________
>>        Users mailing list
>>        Users@lists.opensips.org <mailto:Users@lists.opensips.org>
>>        http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>
>>
>>
>> --
>> Thanking You,
>> Ashwini BR Naidu
>>
>
>


--
Thanking You,
Ashwini BR Naidu

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users