[OpenSIPS-Users] call control module

Muhammad Shahzad Shafi shahzad at voip-demos.com
Wed Jan 29 12:36:24 CET 2014


 

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/20140129/4eae07dc/attachment.htm>


More information about the Users mailing list