[OpenSIPS-Users] Event BYE

Răzvan Crainea razvan at opensips.org
Thu Dec 18 14:16:56 CET 2014


You can achieve this by using acc module and the CDR[1] flag, as well as 
setting the aaa_flag[2].
If you really want to send a message to the Radius server, see the 
acc_aaa_request() function[3].

[1] http://www.opensips.org/html/docs/modules/1.12.x/acc#id295374
[2] http://www.opensips.org/html/docs/modules/1.12.x/acc#id294452
[3] http://www.opensips.org/html/docs/modules/1.12.x/acc#id295543

Best regards,

Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com

On 12/18/2014 02:07 PM, Kalala Alexander wrote:
> Yes I can.
> if(is_method("INVITE")){
> create_dialog("B");
> $DLG_timeout = 6;
> xlog("L_NOTICE"," DIALOG $DLG_timeout sec\n");
> }
>
>
> After the break (BYE) I need to send a packet to STOP Radius (Billing) 
> server.
>
> radius_send_acct("stop");
> 18.12.2014, 14:56, "Răzvan Crainea" <razvan at opensips.org>:
>> Can you please tell us in words what you are trying to achieve?
>>
>> Best regards,
>> Răzvan Crainea
>> OpenSIPS Solutions
>> www.opensips-solutions.com  <http://www.opensips-solutions.com/>
>> On 12/18/2014 12:20 PM, Kalala Alexander wrote:
>>> How to implement this feature in openSIPS?
>>> event_route[tm:local-request] {
>>> xlog("L_INFO", "event_route $rm\n");
>>> if(is_method("BYE"))
>>> {
>>> # Account BYE transactions
>>> xlog("L_INFO", "event_received_BYE from $fU to $tU\n\n");
>>> acc_rad_request();
>>>
>>> };
>>> }
>>> /--
>>> С уважением/
>>> /Инженер по телекоммуникациям /
>>> /Калала Александр /
>>> /vel: 375291146285/
>>> /life: 375256819996//
>>> /
>>> /skype: klistrod
>>> /
>>> //
>>> /VoIP Network Engineer
>>> dCAP, CCNAVoice
>>> Kalala Alexander/
>>> http://callcenters.by/ //
>>> http://skytel.by/
>>> http://voiplab.by/
>>> http://asterisk-pbx.by/
>>>
>>>
>>> _______________________________________________
>>> Users mailing list
>>> Users at lists.opensips.org  <mailto:Users at lists.opensips.org>
>>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>> ,
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> /--
> С уважением/
> /Инженер по телекоммуникациям /
> /Калала Александр /
> /vel: 375291146285/
> /life: 375256819996//
> /
> /skype: klistrod
> /
> //
> /VoIP Network Engineer
> dCAP, CCNAVoice
> Kalala Alexander/
> http://callcenters.by/ //
> http://skytel.by/
> http://voiplab.by/
> http://asterisk-pbx.by/
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20141218/54aa16e4/attachment.htm>


More information about the Users mailing list