[Freeswitch-users] Problem with cnam.js?

Lars Zeb larclap at yahoo.com
Sat Aug 22 09:42:47 PDT 2009

I think there's something wrong with the script at


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:



buff = fd.readln();


if(buff) {

   logger(buff, "info");

   session.setVariable("effective_caller_id_name", buff);






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.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090822/ab60183c/attachment-0002.html 

More information about the FreeSWITCH-users mailing list