[Asterisk-Users] AGI accountcode.

Michael Baird mike at tc3net.com
Sun Aug 3 14:58:03 MST 2003


Wonderful, that's what I was looking for.

Regards
MIKE

> >I've setup cdr_mysql and am using AGI to authenticate users based on the
> >called-from # (callerid), use the AGI perl module. Looking at the info
> >stored in the caller detail, I see a field called "accountcode", is it
> >possible for me to set this field in AGI? I'd like to tie it to a
> >username, that I pull during my SQL authentication, so I can search the
> >cdr table based on a username, rather then a source phone number.
> 
> using the (excellent) AGI perl modules you would do this:
> 
> $AGI->exec('SetAccount', $username);
> 
> hope this helps
> 
> 
> 
> duncan
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list