Hi Gef I solved the problem through C and rlm_modules. Anyway, Thanks a lot. Regards On 9/21/06, Geoffrey Cauchi <agcauchi@winssystems.com> wrote:
Hello Ali
I do not know whether you managed to solve your issue, however using a perl script, the format to send these AV Pairs is:
#!/usr/bin/perl print "Cisco-AVPair += \"h323-return-code=0\"\,\n"; print "Cisco-AVPair += \"h323-credit-amount=30\"\,\n"; print "Cisco-AVPair += \"h323-credit-time=200\"\n"; exit(0);
And now the script works.
Obviously the h323-credit-time and h323-credit-amount need to be calculated in real time, but the above can be used as a test to allow you to utilise the cisco TCL script with freeradius
Hope this helps
Gef ________________________________________ From: freeradius-users-bounces+agcauchi= winssystems.com@lists.freeradius.org [mailto: freeradius-users-bounces+agcauchi=winssystems.com@lists.freeradius.o rg] On Behalf Of Ali Majdzadeh Sent: 07 September 2006 10:06 To: FreeRadius users mailing list; aland@deployingradius.com Subject: Re: Freeradius + Cisco VoIP
Hi Alan I replied Geoffrey with all I knew about AV pairs expected by a Cisco VoIP gateway. But I have another problem. I am using rlm_example to develop a module to handle VoIP stuff. My question is, how should I pack and send those AV piars expected by the gateway? For example, in example_authenticate function, I should return a number of AV pairs to the gateway in order to authenticate the user. How should I do that?
Best Regards Ali On 9/6/06, Alan DeKok <aland@deployingradius.com> wrote: "Geoffrey Cauchi" <agcauchi@winssystems.com> wrote:
Can anyone provide a sample config of the AV Pairs required by a cisco VoIP gateway to accept a user?
See the NAS documentation.
Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html