[Asterisk-Users] Caller ID spoofing
Roger Schreiter
roger at planinternet.de
Sun Jan 30 13:17:30 MST 2005
Calin Serbanescu schrieb:
> ...
> the net about this... do you have any link to such script ?
No, I don't have such a link.
But on the voip-wiki pages there are some examples
for agi-scipting.
There are APIs for some common languages, e.g. Perl,
which is maybe one of the fastet ways to code simple scripts.
Consult the README files on how to install the Perl module
Asterisk::AGI.
Then try a little bit with:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
#!/usr/bin/perl
use Asterisk::AGI;
$AGI = new Asterisk::AGI;
my %input = $AGI->ReadParse();
$exten = $input{'extension'};
$old_callerid = $input{'callerid'};
... (some code to manipulte the callerid)
$AGI->set_callerid($new_callerid);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Roger.
More information about the asterisk-users
mailing list