Thanks Muhammad.   It works.

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of Muhammad Shahzad Shafi
Sent: Wednesday, January 29, 2014 10:36 PM
To: [email protected]
Subject: Re: [OpenSIPS-Users] call control module

 

All SIP requests generated by OpenSIPS appear in local_route. So you can filter 
BYE generated by opensips there.

Also using is_direction method you can determine who sent BYE (caller or 
callee).

http://www.opensips.org/html/docs/modules/devel/rr.html#id293720

Since BYE generated by opensips is sent in both directions, so you probably 
want to do accounting only for one BYE (to avoid duplication).

Thank you.

 

On 2014-01-27 23:39, Eddie Chan wrote:

Hi all,

 

I am having problem triggering CDR when the max call duration in call control 
module timeout.

 

For a normal call, I use setflag in the main routing logic to trigger CDRs.

 

route(

 

…

                If (is_method(“BYE”)) {

                                …

                                setflag(AAA_DO);

                }

 

 

However, when the call control timer expired, it will generate two BYE messages 
to each endpoints.   Since the BYE messages were not originated by the 
endpoints, the main routing loop cannot detect the BYE message and thus failed 
to generate CDR.

 

Can anyone give me some idea on this problem?  Where should I put the setflag 
if the BYE messages were originated by Opensip itself?

 

Thanks,

Eddie

 

-- 
Mit freundlichen Grüßen
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: [email protected]
Email: [email protected]
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to