<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I have set my dialplan with the variable:<br>
<br>
<action application="set" data="var_hangup_cause=hello"/><br>
<action application="log" data="var hangup
'${var_hangup_cause}'"/><br>
<br>
In the fs_cli I am seeing the variable:<br>
EXECUTE sofia/internal/1002@xxxxxxx log(var hangup 'hello')<br>
<br>
But in my radius log I didnt get it:<br>
Thu Jun 18 13:52:24 2015<br>
h323-call-origin = "answer"<br>
Calling-Station-Id = "1008"<br>
Called-Station-Id = "1001"<br>
h323-setup-time = "2015-06-18T13:52:18.374949+0300"<br>
h323-disconnect-time = "2015-06-18T13:52:24.414957+0300"<br>
h323-disconnect-cause = "h323-disconnect-cause=1e7"<br>
Framed-Compression = None<br>
Acct-Status-Type = Stop<br>
NAS-Port = 0<br>
Acct-Delay-Time = 0<br>
NAS-IP-Address = 127.0.0.1<br>
Acct-Unique-Session-Id = "ba1b9740b7d69c50"<br>
Timestamp = 1434624744<br>
<br>
My account set up in the xml_radius file:<br>
<acct_end><br>
<connection name="testing"><br>
<param name="acctserver" value="127.0.0.1:1813:test"/><br>
<param name="radius_timeout" value="10"/><br>
<param name="radius_retries" value="0"/><br>
<param name="radius_deadtime" value="0"/><br>
<param name="dictionary"
value="/opt/freeswitch/src/freeswitch/src/mod/xml_int/mod_xml_radius/dictionaries/dictionary"/><br>
<param name="seqfile" value="/var/run/radius.seq"/><br>
</connection><br>
<fields><br>
<param vendor="Cisco" name="h323-call-origin"
variable="h323-call-origin" default="answer" format="%s"/><br>
<param name="Calling-Station-Id" variable="sip_from_user"
variable_secondary="ani" format="%s"/><br>
<param name="Called-Station-Id"
variable="destination_number" format="%s"/><br>
<param vendor="Cisco" name="h323-setup-time"/><br>
<param vendor="Cisco" name="h323-connect-time"/><br>
<param vendor="Cisco" name="h323-disconnect-time"/><br>
<param vendor="Cisco" name="h323-disconnect-cause"/><br>
<param name="Freeswitch-Hangupcause"
variable="var_hangup_cause" format="%s"/><br>
</fields><br>
</acct_end><br>
<br>
<br>
<br>
<br>
<br>
<div class="moz-cite-prefix">On 18.06.2015 12:14, Tomáš Boros wrote:<br>
</div>
<blockquote cite="mid:55828BF8.8060709@vmtele.com" type="cite">
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
Hi<br>
<br>
"var_hangup_cause" is not a standard channel variable so it may be
un-initialized.<br>
Make sure you have in your dialplan<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<pre style="font-family: monospace, Courier; padding: 1em; border: 1px dashed rgb(47, 111, 171); color: rgb(0, 0, 0); line-height: 1.3em; font-size: 12.8000001907349px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(249, 249, 249);"><action application="set" data="var_hangup_cause=[yourmessage]"/></pre>
Frame compression is just a compression of the radius messages.
Defined in RFC 2865 - 5.13<br>
<br>
Tomas<br>
<br>
<div class="moz-cite-prefix">On 18.06.2015 10:30, Густаво Силва
wrote:<br>
</div>
<blockquote cite="mid:558281BA.7020708@etherway.ru" type="cite">
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
hi Tomas!<br>
<br>
What do you mean "initialize" a variable? When I declare
variable in xml_radius.conf, it already initializes it, doesnt
it?<br>
<br>
By the way, after I have removed the vendor, now in the radius
log it is showing this info:<br>
Framed-Compression = None<br>
<br>
In the xml debug, it is not showing anymore the error in the
rc_handler.<br>
<br>
Is there something else that I could do to solve it?<br>
<br>
<div class="moz-cite-prefix">On 18.06.2015 11:10, Tomáš Boros
wrote:<br>
</div>
<blockquote cite="mid:55827D01.4050007@vmtele.com" type="cite">
<meta content="text/html; charset=UTF-8"
http-equiv="Content-Type">
Hi Густаво,<br>
<br>
Its probably failing in function rc_avpair_new in
"libs/freeradius-client-x.x.x/lib/avpair.c" in function
"rc_avpair_new".<br>
I wasnt digging deeper in the code, but try to remove the
attrribtue vendor, and make sure you initialize
"var_hangup_cause".<br>
<pre wrap=""><param name="Freeswitch-Hangupcause" variable="var_hangup_cause" format="%s"/>
<font style="font-family:'Tahoma', sans-serif; font-size: 9pt; color:#333;">---
<font style="font-weight:bolder; color:#333333; font-size:11pt;">Tomáš Boros</font>
</font>
</pre>
<br>
<div class="moz-cite-prefix">On 18.06.2015 08:25, Густаво
Силва wrote:<br>
</div>
<blockquote cite="mid:5582646C.60205@etherway.ru" type="cite">
<pre wrap="">How can I add a new parameter to the accounting log in the
xml_radius.conf file?
I am trying to add the Freeswitch-Hangupcause to the accounting log but
I am get rc_handler failure.
dict attr 'Freeswitch-Hangupcause' value '13' type '1'
[ERR] mod_xml_radius.c:393 mod_xml_radius: dict vend name 'Freeswitch'
vendorpec '27880'
[ERR] mod_xml_radius.c:555 mod_xml_radius: failed to add option with
value '0' to handle
[ERR] mod_xml_radius.c:1015 Failed to add params to rc_handle
I have set up the parameter to hangupcause like this:
<param vendor="Freeswitch" name="Freeswitch-Hangupcause"
variable="var_hangup_cause" format="%s"/>
What is the right way to set it?
Am I doing something wrong?
ps: I have add the freeswitch dictionary.
Regards,
Gustavo
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<font style="font-family:'Tahoma', sans-serif; font-size:
9pt; color:#333;"> </font> </div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
<div class="moz-signature"><br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
</blockquote>
<br>
</body>
</html>