[cisco-nas] Catch Cisco AVPair by TCL IVR Script

Mehdi Torki m.torki at gmail.com
Tue Nov 15 01:14:23 EST 2005


Hi all

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:

aaa authorize $collectednumber "" "" "" leg_incoming

Then Radius server sends a Access-Accept message to router that contains a
Cisco AVPair attribute.

debug output is:

ROUTER#ss [4] 6 192.168.230.111 <http://192.168.230.111>
4w5d: RADIUS: NAS-Port-Type [61] 6 Async [0]
4w5d: RADIUS: User-Name [1] 11 "100592177"
4w5d: RADIUS: Vendor, Cisco [26] 56
4w5d: RADIUS: Conf-Id [24] 50 "h323-conf-id=5CD14012 D98311D3 815
CA79B A96CBA23"
4w5d: RADIUS: User-Password [2] 18 *
4w5d: RADIUS: Vendor, Cisco [26] 37
4w5d: RADIUS: Cisco AVpair [1] 31 "h323-ivr-out=transactionID:27"
4w5d: RADIUS:
ROUTER#Received from id 42 192.168.230.110:1645<http://192.168.230.110:1645>,
Access-Accept, len 56

4w5d: RADIUS: authenticator 06 3A 4D BB 2C AA 28 B8 - B7 11 CE DA B0 66 B2
66
4w5d: RADIUS: Vendor, Cisco [26] 24
4w5d: RADIUS: Cisco AVpair [1] 18 "h323-ivr-in=A:B"
4w5d: RADIUS: Service-Type [6] 6 Framed [2]
4w5d: RADIUS: Framed-Protocol [7] 6 PPP [1]


BUT my TCL script could not catch h323-ivr-in from Accept message. TCL code
is:

if { $status == "ao_000" } {
if { [infotag get aaa_avpair_exists h323-ivr-in] } {
puts "****FOUND REPLY MESSAGE****"
set cs [infotag get aaa_avpair h323-ivr-in]
# Card number exists and should be check status
# puts "h323-return-code =3D $cr "
puts "REPLY MESSAGE === $cs"
media play leg_incoming tftp://192.168.230.110/sounds/success.au
} else {
puts "****NOT FOUND REPLY MESSAGE****"
media play leg_incoming tftp://192.168.230.110/sounds/cardnotfound.au
}
} else {
if {$status == "ao_001"} {
puts "****Authorization Failed****"
media play leg_incoming tftp://192.168.230.110/sounds/cardnotfound.au
} else {
# $status == "ao_002" Authorization Error
puts "****Authorization Error****"
}
}

script debug output:

4w5d: "****NOT FOUND REPLY MESSAGE****"




Please help me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://puck.nether.net/pipermail/cisco-nas/attachments/20051115/60168e6b/attachment.html


More information about the cisco-nas mailing list