VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
larclap at yahoo.com Guest
|
Posted: Sat Aug 22, 2009 11:51 am Post subject: [Freeswitch-users] Problem with cnam.js? |
|
|
I think there’s something wrong with the script at http://wiki.freeswitch.org/wiki/Examples_cnam.js.
If you use it as is, it displays “Content-type: text/html” for the effective_caller_id_name. In cnam.pl, the first two output lines are generated by:
if (!$debug) {print "Content-type: text/html\n\n";}
with the actual name in the third line.
So I changed:
fd.open("read");
buff = fd.readln();
if(buff) {
logger(buff, "info");
session.setVariable("effective_caller_id_name", buff);
}
To:
fd.open("read");
buff = fd.readAll();
if(buff[2]) {
logger(buff, "info");
session.setVariable("effective_caller_id_name", buff[2]);
}
Or remove the print statement from cnam.pl.
Sorry for the code, but the page was not editable.
Lars |
|
Back to top |
|
|
mike at jerris.com Guest
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|