<span class="gmail_quote"></span>Hi all<br>
<br>
I have a Cisco AS5350 and I writed a custom
TCL IVR script for voice application. When a call occures, then my
script collects a 10 digit number and sends it for radius server
(freeradius) by below command:<br>
<br>
aaa authorize $collectednumber "" "" "" leg_incoming<br>
<br>
Then Radius server sends a Access-Accept message to router that contains a Cisco AVPair attribute.<br>
<br>
debug output is:<br>
<br>
ROUTER#ss [4] 6 <a href="http://192.168.230.111" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.230.111</a><br>
4w5d: RADIUS: NAS-Port-Type [61] 6
Async
[0]<br>
4w5d: RADIUS: User-Name [1] 11 "100592177"<br>
4w5d: RADIUS: Vendor, Cisco [26] 56<br>
4w5d: RADIUS: Conf-Id [24] 50 "h323-conf-id=5CD14012 D98311D3 815<br>
CA79B A96CBA23"<br>
4w5d: RADIUS: User-Password [2] 18 *<br>
4w5d: RADIUS: Vendor, Cisco [26] 37<br>
4w5d: RADIUS: Cisco AVpair [1] 31 "h323-ivr-out=transactionID:27"<br>
4w5d: RADIUS:<br>
ROUTER#Received from id 42 <a href="http://192.168.230.110:1645" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">192.168.230.110:1645</a>, Access-Accept, len 56<br>
<br>
4w5d: RADIUS: authenticator 06 3A 4D BB 2C AA 28 B8 - B7 11 CE DA B0 66 B2 66<br>
4w5d: RADIUS: Vendor, Cisco [26] 24<br>
4w5d: RADIUS: Cisco AVpair [1] 18 "h323-ivr-in=A:B"<br>
4w5d: RADIUS: Service-Type [6]
6 Framed
[2]<br>
4w5d: RADIUS: Framed-Protocol [7] 6
PPP
[1]<br>
<br>
<br>
BUT my TCL script could not catch h323-ivr-in from Accept message. TCL code is:<br>
<br>
if { $status == "ao_000" } {<br>
if { [infotag get aaa_avpair_exists h323-ivr-in] } {<br>
puts "****FOUND REPLY MESSAGE****" <br>
set cs [infotag get aaa_avpair h323-ivr-in]<br>
# Card number exists and should be check status<br>
# puts "h323-return-code =3D $cr "<br>
puts "REPLY MESSAGE === $cs"<br>
media play leg_incoming t<a href="ftp://192.168.230.110/sounds/success.au" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ftp://192.168.230.110/sounds/success.au</a><br>
} else {<br>
puts "****NOT FOUND REPLY MESSAGE****" <br>
media play leg_incoming t<a href="ftp://192.168.230.110/sounds/cardnotfound.au" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ftp://192.168.230.110/sounds/cardnotfound.au</a><br>
}<br>
} else {<br>
if {$status == "ao_001"} {<br>
puts "****Authorization Failed****" <br>
media play leg_incoming t<a href="ftp://192.168.230.110/sounds/cardnotfound.au" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ftp://192.168.230.110/sounds/cardnotfound.au</a><br>
} else {<br>
# $status == "ao_002" Authorization Error <br>
puts "****Authorization Error****" <br>
}<br>
} <br>
<br>
script debug output:<br>
<br>
4w5d: "****NOT FOUND REPLY MESSAGE****" <br>
<br>
<br>
<br>
<br>
Please help me.