[OpenSIPS-Users] call control module

Eddie Chan e.chan at ivstel.com
Wed Jan 29 22:59:45 CET 2014


Thanks Muhammad.   It works.

 

From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Muhammad Shahzad Shafi
Sent: Wednesday, January 29, 2014 10:36 PM
To: users at lists.opensips.org
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: shari_786pk at hotmail.com
Email: shaheryarkh at googlemail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140130/d13c347b/attachment.htm>


More information about the Users mailing list