Sorry, but I've to check which number the user is calling to.
But I have to match something like *413   where * is the wildcard.
 
ex.
 
I'm calling from any number and I call the number 0542 63413 ----> Auth
                       any number and I call the number 0546 73413 ----> Auth
                       any number and I call the number 0542 63414 ---->  Not Auth
                       any number and I call the number 0546 73414 ---->  Not Auth
 
I hacked the file xlat.c and added
 case 'z': /* Called station ID */
        q += valuepair2str(q,freespace,pairfind(request->packet->vps,PW_CALLED_STATION_ID),PW_TYPE_STRING, func);
        break;
I hope, with the new added %z parameter, passed to an external script, to discrimanate which number the user is calling to.
Do you think It will work ?
 
Thank's again
Matteo.
 
----- Original Message -----
From: hari_bhr
Sent: Wednesday, January 09, 2002 2:24 PM
Subject: Re: Called Station id extraction

set in user profile
what is the number is calling from
 
best of luck
----- Original Message -----
Sent: Wednesday, January 09, 2002 6:02 PM
Subject: Called Station id extraction

How can I send to an "Exec-Program" the value of the Called-Station-Id pair?

I'd like to do something like :

Exec-Program = "/usr/local/sbin/something %n "

Where %n is the Called-Station-ID

Thank's in advance,
Matteo Falconi

Reply via email to