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.

_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to