radacct rtp proxy mode patch

View: New views
3 Messages — Rating Filter:   Alert me  

radacct rtp proxy mode patch

by Georgiewskiy Yuriy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi.

This simple patch to send proxy mode of call in radius accounting stop packet in
cisco VSA attribute h323_rtp_proxy - 0 no rtp proxy, 1 rtp proxy enabled.

diff -ruN openh323gk/radacct.cxx openh323gk-new/radacct.cxx
--- openh323gk/radacct.cxx 2009-09-27 15:31:00.000000000 +0400
+++ openh323gk-new/radacct.cxx 2009-10-15 19:34:50.000000000 +0400
@@ -351,6 +351,12 @@
  PString("h323routeattempts=")+PString(PString::Unsigned,call->GetNoCallAttempts()),true
  );

+ // Proxy Mode
+ pdu->AppendCiscoAttr(RadiusAttr::CiscoVSA_AV_Pair,
+ PString("h323_rtp_proxy=")+PString(PString::Unsigned,
+ ((call->GetProxyMode() == CallRec::ProxyEnabled) ? 1 : 0)),true
+ );
+
  //RTCP SOURCE REPORT
  pdu->AppendCiscoAttr(RadiusAttr::CiscoVSA_AV_Pair,
     PString("RTP_source_IP=")+call->GetSRC_media_IP(),


C уважением                       With Best Regards
Георгиевский Юрий.                Georgiewskiy Yuriy
+7 4872 711666                    +7 4872 711666
факс +7 4872 711143               fax +7 4872 711143
Компания ООО "Ай Ти Сервис"       IT Service Ltd
http://nkoort.ru                  http://nkoort.ru
JID: GHhost@... JID: GHhost@...
YG129-RIPE                        YG129-RIPE
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________________

Posting: mailto:Openh323gk-users@...
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/

Re: radacct rtp proxy mode patch

by Willamowius :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Yuriy,

thanks, patch applied. I also added it to the manual.

Regards,
Jan


Georgiewskiy Yuriy wrote:

> Hi.
>
> This simple patch to send proxy mode of call in radius accounting stop packet in
> cisco VSA attribute h323_rtp_proxy - 0 no rtp proxy, 1 rtp proxy enabled.
>
> diff -ruN openh323gk/radacct.cxx openh323gk-new/radacct.cxx
> --- openh323gk/radacct.cxx 2009-09-27 15:31:00.000000000 +0400
> +++ openh323gk-new/radacct.cxx 2009-10-15 19:34:50.000000000 +0400
> @@ -351,6 +351,12 @@
>   PString("h323routeattempts=")+PString(PString::Unsigned,call->GetNoCallAttempts()),true
>   );
>
> + // Proxy Mode
> + pdu->AppendCiscoAttr(RadiusAttr::CiscoVSA_AV_Pair,
> + PString("h323_rtp_proxy=")+PString(PString::Unsigned,
> + ((call->GetProxyMode() == CallRec::ProxyEnabled) ? 1 : 0)),true
> + );
> +
>   //RTCP SOURCE REPORT
>   pdu->AppendCiscoAttr(RadiusAttr::CiscoVSA_AV_Pair,
>      PString("RTP_source_IP=")+call->GetSRC_media_IP(),
>
>
> C уважением                       With Best Regards
> Георгиевский Юрий.                Georgiewskiy Yuriy
> +7 4872 711666                    +7 4872 711666
> факс +7 4872 711143               fax +7 4872 711143
> Компания ООО "Ай Ти Сервис"       IT Service Ltd
> http://nkoort.ru                  http://nkoort.ru
> JID: GHhost@... JID: GHhost@...
> YG129-RIPE                        YG129-RIPE


--
Jan Willamowius, jan@..., http://www.gnugk.org/

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________________

Posting: mailto:Openh323gk-users@...
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/

Re: radacct rtp proxy mode patch

by Georgiewskiy Yuriy-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2009-10-16 13:43 +0200, Jan Willamowius wrote openh323gk-users@......:

thank you too for manual:)

JW>Hi Yuriy,
JW>
JW>thanks, patch applied. I also added it to the manual.
JW>
JW>Regards,
JW>Jan
JW>
JW>
JW>Georgiewskiy Yuriy wrote:
JW>> Hi.
JW>>
JW>> This simple patch to send proxy mode of call in radius accounting stop packet in
JW>> cisco VSA attribute h323_rtp_proxy - 0 no rtp proxy, 1 rtp proxy enabled.
JW>>
JW>> diff -ruN openh323gk/radacct.cxx openh323gk-new/radacct.cxx
JW>> --- openh323gk/radacct.cxx 2009-09-27 15:31:00.000000000 +0400
JW>> +++ openh323gk-new/radacct.cxx 2009-10-15 19:34:50.000000000 +0400
JW>> @@ -351,6 +351,12 @@
JW>>   PString("h323routeattempts=")+PString(PString::Unsigned,call->GetNoCallAttempts()),true
JW>>   );
JW>>
JW>> + // Proxy Mode
JW>> + pdu->AppendCiscoAttr(RadiusAttr::CiscoVSA_AV_Pair,
JW>> + PString("h323_rtp_proxy=")+PString(PString::Unsigned,
JW>> + ((call->GetProxyMode() == CallRec::ProxyEnabled) ? 1 : 0)),true
JW>> + );
JW>> +
JW>>   //RTCP SOURCE REPORT
JW>>   pdu->AppendCiscoAttr(RadiusAttr::CiscoVSA_AV_Pair,
JW>>      PString("RTP_source_IP=")+call->GetSRC_media_IP(),
JW>>
JW>>
JW>> C уважением                       With Best Regards
JW>> Георгиевский Юрий.                Georgiewskiy Yuriy
JW>> +7 4872 711666                    +7 4872 711666
JW>> факс +7 4872 711143               fax +7 4872 711143
JW>> Компания ООО "Ай Ти Сервис"       IT Service Ltd
JW>> http://nkoort.ru                  http://nkoort.ru
JW>> JID: GHhost@... JID: GHhost@...
JW>> YG129-RIPE                        YG129-RIPE
JW>
JW>
JW>

C уважением                       With Best Regards
Георгиевский Юрий.                Georgiewskiy Yuriy
+7 4872 711666                    +7 4872 711666
факс +7 4872 711143               fax +7 4872 711143
Компания ООО "Ай Ти Сервис"       IT Service Ltd
http://nkoort.ru                  http://nkoort.ru
JID: GHhost@... JID: GHhost@...
YG129-RIPE                        YG129-RIPE
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________________

Posting: mailto:Openh323gk-users@...
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/