---> Have you configured PHP to load the MySQL extension?
How do I do that, bellow I have experimented some with the
/etc/php.ini file, but still the same result !!
So how do I configure PGP tp load the MySQL extension
Many thanks again for quick answers
/ANNA
; Directory in which the loadable extensions (modules) reside.
;extension_dir = /usr/lib/php4
extension_dir = /usr/local/lib/ser/modules [ /usr/local/lib/ser/modules/mysql.so ]
;Whether or not to enable the dl() function. The dl() function does NOT work
; properly in multithreaded servers, such as IIS or Zeus, and is automatically
; disabled on them.
enable_dl = On
;extension=ldap.so
;extension=mhash.so
;extension=mssql65.so
;extension=mssql70.so
extension=mysql.so
;extension=oas.so
;extension=odbc.so
;extension=oci8.so
;extension=oracle.so
;extension=pdf.so
__________________________________________________________________
anna rahm
ICQ#: 176699319
Current ICQ status:
+ More ways to contact me
__________________________________________________________________
I have installed ser on RedHat 8.0/i686 and I' m
trying to run serweb over Apache 2.0.40 and PHP 4.2.2
(both they are the default versions installed by RH
8.0).
I have made all (I hope) the adjustments in the .php
and .conf files, but when I' m trying to open the
/serweb/admin/index.php file (either by Mozila on the
same PC, or by IE 5 on a Win-XP PC), I only see the
code of the file. However, the code is not shown from
the very first line, but always from the same point, 3
or 4 line below the first one.
Thanks in advance for any help or idea.
regards,
George
Trying to load the serweb page I get the following error message:
Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/phplib/db_mysql.inc on line 73
I have looked into the database settings and can't find anything wrong with them. are there more then this:
$this->db_host="172.18.3.164"; //database host
$this->db_name="ser"; //database name
$this->db_user="ser"; //database conection user
$this->db_pass="heslo"; //database conection password
I have also tried to "Installing SERweb custom file locations" 4.3 in the http://www.fitawi.com/ser-Howto.html but just can't get it to work, please help !
see config file bellow
I try to load the page :
http://dhcp164-devel/htdocs/serweb/admin/index.php
after the error masg the browser say:
http://dhcp164-devel/htdocs/serweb/admin/index.php?phplib_Session=4bcada0b4…
Many thank's
/ANNA
serweb dir include:
admin config.php CVS functions.php img page.php styles user_interface
the config.php file is placed in:
/var/www/html/htdocs/serweb
<?
/*
* $Id: config.php,v 1.10 2002/09/25 23:26:47 jiri Exp $
*/
class Csub_not {
var $uri, $desc;
function Csub_not($uri, $desc){
$this->uri=$uri;
$this->desc=$desc;
}
}
class Cconfig {
var $db_host;
var $db_name;
var $db_user;
var $db_pass;
var $table_subscriber;
var $table_pending;
var $table_grp;
var $table_aliases;
var $table_location;
var $table_missed_calls;
var $table_accounting;
var $table_phonebook;
var $table_event;
var $show_voicemail_acl;
var $enable_dial_voicemail;
var $enable_test_firewall;
var $grp_values;
var $realm;
var $domainname;
var $first_alias_number;
var $new_alias_expires;
var $new_alias_q;
var $new_alias_callid;
var $new_alias_cseq;
var $pre_uid_expires;
var $psignature;
var $web_contact;
var $fifo_server;
var $reply_fifo_filename;
var $reply_fifo_path;
var $ul_table;
var $ul_priority;
var $im_length;
var $default_domain;
var $root_path;
var $img_src_path;
var $js_src_path;
var $style_src_path;
var $zonetab_file;
var $charset;
var $default_width;
var $num_of_showed_items;
var $enable_tabs;
var $sub_not;
var $link_siptutorial;
var $link_sipproducts;
var $link_standards;
var $link_iptelworkshop;
var $link_glossary;
var $link_abstract;
var $link_home;
var $mail_header_from;
var $mail_forgot_pass;
var $forgot_pass_subj;
var $mail_register;
var $register_subj;
var $terms_and_conditions;
function Cconfig(){
$this->db_host="172.18.3.164"; //database host
$this->db_name="ser"; //database name
$this->db_user="ser"; //database conection user
$this->db_pass="heslo"; //database conection password
// names of tables
$this->table_subscriber="subscriber";
$this->table_pending="pending";
$this->table_grp="grp";
$this->table_aliases="aliases";
$this->table_location="location";
$this->table_missed_calls="missed_calls";
$this->table_accounting="acc";
$this->table_phonebook="phonebook";
$this->table_event="event";
$this->show_voicemail_acl=true; //show "voicemail" in ACL and voicemail checkbox at my account
$this->enable_dial_voicemail=false;
$this->enable_test_firewall=false;
$this->grp_values[]="voicemail";
$this->grp_values[]="ld";
$this->grp_values[]="local";
$this->grp_values[]="int";
$this->realm="e-horizon.se";
$this->domainname="e-horizon.se";
$this->first_alias_number=18888;
$this->new_alias_expires='2020-01-01 00:00:00';
$this->new_alias_q=1.00;
$this->new_alias_callid="";
$this->new_alias_cseq=1;
$this->pre_uid_expires=3600; //seconds in which expires "get pass session"
$this->psignature="Web_interface_Karel_Kozlik-0.9";
$this->web_contact="sip:daemon@iptel.org"; //address of pseudo sender
$this->fifo_server="/tmp/ser_fifo"; //path to fifo server
$this->reply_fifo_filename="webfifo_".rand();
$this->reply_fifo_path="d:/temp/".$this->reply_fifo_filename;
$this->ul_table="table";
$this->ul_priority="1.00";
$this->im_length=1300; //max length of instant message
$this->default_domain="e-horizon.se";
$this->root_path="/serweb";
$this->img_src_path = $this->root_path."img/";
$this->js_src_path = $this->root_path."styles/";
$this->style_src_path = $this->root_path."styles/";
$this->zonetab_file = "/usr/share/zoneinfo/zone.tab"; //TZ zone descriptions file, usually: /usr/share/zoneinfo/zone.tab
$this->charset="windows-1250";
$this->default_width=564; //width of usable area
$this->num_of_showed_items=20; //num of showed items in the list of users
$this->enable_tabs[1]=true; //enable tab my account
$this->enable_tabs[2]=true; //enable tab phonebook
$this->enable_tabs[3]=true; //enable tab missed calls
$this->enable_tabs[4]=true; //enable tab accounting
$this->enable_tabs[5]=true; //enable tab send IM
$this->enable_tabs[6]=true; //enable tab notification subscription
//notification subscription
$this->sub_not[]=new Csub_not("sip:weather@iptel.org;type=temperature;operator=lt;value=0","temperature is too low");
$this->sub_not[]=new Csub_not("sip:weather@iptel.org;type=wind;operator=gt;value=10","wind is too fast");
$this->sub_not[]=new Csub_not("sip:weather@iptel.org;type=pressure;operator=lt;value=1000","pressure is too low");
//links in left menu
$this->link_siptutorial=$this->root_path."sip/index.php";
$this->link_sipproducts=$this->root_path."products/index.html";
$this->link_standards=$this->root_path."info/players/index.html";
$this->link_iptelworkshop="http://www.iptel.org/2002/";
$this->link_glossary=$this->root_path."info/glossary.html";
//links on top
$this->link_abstract=$this->root_path."info/abstract.html";
$this->link_home=$this->root_path."index.html";
$this->mail_header_from="php.kk(a)kufr.cz"; //header From: in outgoing emails
$this->forgot_pass_subj="your login information";
$this->mail_forgot_pass="Hi,\n".
"now you can access to your account at the folowing URL within 1 hour:\n".
"http:/var/www/html/htdocs/serweb/user_interface/my_account.php?#session#\n\n".
"we recommend change your password after you login\n".
"iptel.org\n";
$this->register_subj="Your iptel.org Registration";
$this->mail_register="Thank you for registering with iptel.org.\n\n".
"We are reserving the following SIP address for you: #sip_address#\n\n".
"To finalize your registration please check the following URL within 24 hours:\n".
"http:/var/www/html/htdocs/serweb/user_interface/reg/confirmation.php?nr=#confirm#\n\n".
"(If you confirm later you will have to re-register.)\n\n".
"Windows Messenger users may look at additional configuration hints at\n".
"http://www.iptel.org/phpBB/viewtopic.php?topic=11&forum=1&0\n";
$this->terms_and_conditions="BY PRESSING THE 'I ACCEPT' BUTTON, YOU (HEREINAFTER THE 'USER') ARE STATING THAT YOU AGREE ".
"TO ACCEPT AND BE BOUND BY ALL OF THE TERMS AND CONDITIONS OF THIS ".
"AGREEMENT. DO NOT PROCEED IF YOU ARE UNABLE TO AGREE TO THE TERMS ".
"AND CONDITIONS OF THIS AGREEMENT. THESE TERMS AND CONDITIONS OF SERVICE ".
"FOR USE OF iptel.org SIP SERVER (THE 'AGREEMENT') CONSTITUTE A LEGALLY ".
"BINDING CONTRACT BETWEEN iptel.org AND THE ENTITY THAT AGREES TO AND ".
"ACCEPTS THESE TERMS AND CONDITIONS. ACCESS TO iptel.org's SESSION ".
"INITIATION PROTOCOL SERVER ('SIP SERVER') IS BEING PROVIDED ON AN ".
"'AS IS' AND 'AS AVAILABLE' BASIS, AND iptel.org MAKES NO REPRESENTATIONS ".
"OR WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, WITH RESPECT TO ".
"USER'S ACCESS OF THE SIP SERVER, INCLUDING BUT NOT LIMITED TO WARRANTIES ".
"OF MERCHANTABILITY, NONINFRINGEMENT, TITLE OR FITNESS FOR A PARTICULAR PURPOSE. ".
"FURTHER, iptel.org MAKES NO REPRESENTATIONS OR WARRANTIES THAT THE SIP SERVER, ".
"OR USER'S ACCESS THERETO, WILL BE AVAILABLE AT ANY GIVEN TIME, OR WILL BE FREE ".
"FROM ERRORS, DEFECTS, OMISSIONS, INACCURACIES, OR FAILURES OR DELAYS IN DELIVERY ".
"OF DATA. USER ASSUMES, AND iptel.org DISCLAIM, TOTAL RISK, RESPONSIBILITY, AND ".
"LIABILITY FOR USER'S ACCESS TO AND USE OF THE SIP SERVER.".
"\n\n".
"Access to iptel.org SIP Server is being provided on a non-exclusive basis.".
"User acknowledges and understands that iptel.org SIP site is in a developmental ".
"stage and that iptel.org makes no guarantees regarding the availability or functionality thereof. ".
"User may not sublicense its access rights to the SIP Server to any third party. ".
"\n\n".
"USER AGREES TO INDEMNIFY, DEFEND AND HOLD iptel.org, ITS AFFILIATES, DIRECTORS, OFFICERS, ".
"EMPLOYEES, AGENTS AND LICENSORS HARMLESS FROM AND AGAINST ANY AND ALL CLAIMS, ACTIONS, ".
"EXPENSES, LOSSES, AND LIABILITIES (INCLUDING COURTS COSTS AND REASONABLE ATTORNEYS' FEES), ".
"ARISING FROM OR RELATING TO THIS AGREEMENT INCLUDING USER'S ACCESS TO AND USE OF THE SIP SERVER. ".
"TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL iptel.org OR ANY OF ITS ".
"LICENSORS, BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, EXEMPLARY, OR CONSEQUENTIAL DAMAGES, ".
"ARISING OUT OF THE ACCESS TO OR USE OF OR INABILITY TO ACCESS OR USE THE SIP SERVER, OR THAT ".
"RESULT FROM MISTAKES, OMISSIONS, INTERRUPTIONS, DELETIONS OF FILES, ERRORS, DEFECTS, ".
"DELAYS IN TRANSMISSION OR OPERATION OR ANY FAILURE OF PERFORMANCE, EVEN IF ADVISED ".
"OF THE POSSIBILITY OF SUCH DAMAGES. ".
"\n\n".
"If User commits, in iptel.org's sole determination, a default of these terms and ".
"conditions, iptel.org may immediately terminate User's access to the SIP Server. ".
"Furthermore, iptel.org reserves the right to discontinue offering access to the ".
"SIP Server at any time. ".
"\n\n".
"User may not assign its rights hereunder without the prior written consent of ".
"iptel.org. User agrees to comply with all laws, regulations and other legal ".
"requirements that apply to these terms and conditions. ".
"\n\n".
"If any provision of this Agreement is held to be unenforceable for any reason, ".
"such provision shall be reformed only to the extent necessary to comply with ".
"applicable laws, and the remainder shall remain in full force and effect. ".
"\n\n".
"Any failure of iptel.org to enforce any provision of this Agreement shall ".
"not constitute a waiver of any rights under such provision or any other ".
"provision of this Agreement. ".
"\n\n".
"USER ACKNOWLEDGES THAT IT HAS READ THIS AGREEMENT, UNDERSTANDS IT, AND AGREES THAT ".
"IT IS THE COMPLETE AND EXCLUSIVE STATEMENT OF THE ENTIRE AGREEMENT BETWEEN COMPANY ".
"AND iptel.org WITH RESPECT TO THE SUBJECT MATTER HEREIN, AND SUPERSEDES ALL PRIOR ".
"AND CONTEMPORANEOUS PROPOSALS, DISCUSSIONS, AGREEMENTS, UNDERSTANDINGS, AND COMMUNICATIONS, ".
"WHETHER WRITTEN OR ORAL AND MAY BE AMENDED ONLY IN A WRITING EXECUTED BY BOTH USER AND iptel.org. ".
"\n\n";
}
}
$config=new Cconfig();
?>
Trying to load the serweb page I get the following error message:
Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/phplib/db_mysql.inc on line 73
I have looked into the database settings and can't find anything wrong with them. are there more then this:
$this->db_host="172.18.3.164"; //database host
$this->db_name="ser"; //database name
$this->db_user="ser"; //database conection user
$this->db_pass="heslo"; //database conection password
I have also tried to "Installing SERweb custom file locations" 4.3 in the http://www.fitawi.com/ser-Howto.html but just can't get it to work, please help !
see config file bellow
I try to load the page :
http://dhcp164-devel/htdocs/serweb/admin/index.php
after the error masg the browser say:
http://dhcp164-devel/htdocs/serweb/admin/index.php?phplib_Session=4bcada0b4…
Many thank's
/ANNA
serweb dir include:
admin config.php CVS functions.php img page.php styles user_interface
the config.php file is placed in:
/var/www/html/htdocs/serweb
<?
/*
* $Id: config.php,v 1.10 2002/09/25 23:26:47 jiri Exp $
*/
class Csub_not {
var $uri, $desc;
function Csub_not($uri, $desc){
$this->uri=$uri;
$this->desc=$desc;
}
}
class Cconfig {
var $db_host;
var $db_name;
var $db_user;
var $db_pass;
var $table_subscriber;
var $table_pending;
var $table_grp;
var $table_aliases;
var $table_location;
var $table_missed_calls;
var $table_accounting;
var $table_phonebook;
var $table_event;
var $show_voicemail_acl;
var $enable_dial_voicemail;
var $enable_test_firewall;
var $grp_values;
var $realm;
var $domainname;
var $first_alias_number;
var $new_alias_expires;
var $new_alias_q;
var $new_alias_callid;
var $new_alias_cseq;
var $pre_uid_expires;
var $psignature;
var $web_contact;
var $fifo_server;
var $reply_fifo_filename;
var $reply_fifo_path;
var $ul_table;
var $ul_priority;
var $im_length;
var $default_domain;
var $root_path;
var $img_src_path;
var $js_src_path;
var $style_src_path;
var $zonetab_file;
var $charset;
var $default_width;
var $num_of_showed_items;
var $enable_tabs;
var $sub_not;
var $link_siptutorial;
var $link_sipproducts;
var $link_standards;
var $link_iptelworkshop;
var $link_glossary;
var $link_abstract;
var $link_home;
var $mail_header_from;
var $mail_forgot_pass;
var $forgot_pass_subj;
var $mail_register;
var $register_subj;
var $terms_and_conditions;
function Cconfig(){
$this->db_host="172.18.3.164"; //database host
$this->db_name="ser"; //database name
$this->db_user="ser"; //database conection user
$this->db_pass="heslo"; //database conection password
// names of tables
$this->table_subscriber="subscriber";
$this->table_pending="pending";
$this->table_grp="grp";
$this->table_aliases="aliases";
$this->table_location="location";
$this->table_missed_calls="missed_calls";
$this->table_accounting="acc";
$this->table_phonebook="phonebook";
$this->table_event="event";
$this->show_voicemail_acl=true; //show "voicemail" in ACL and voicemail checkbox at my account
$this->enable_dial_voicemail=false;
$this->enable_test_firewall=false;
$this->grp_values[]="voicemail";
$this->grp_values[]="ld";
$this->grp_values[]="local";
$this->grp_values[]="int";
$this->realm="e-horizon.se";
$this->domainname="e-horizon.se";
$this->first_alias_number=18888;
$this->new_alias_expires='2020-01-01 00:00:00';
$this->new_alias_q=1.00;
$this->new_alias_callid="";
$this->new_alias_cseq=1;
$this->pre_uid_expires=3600; //seconds in which expires "get pass session"
$this->psignature="Web_interface_Karel_Kozlik-0.9";
$this->web_contact="sip:daemon@iptel.org"; //address of pseudo sender
$this->fifo_server="/tmp/ser_fifo"; //path to fifo server
$this->reply_fifo_filename="webfifo_".rand();
$this->reply_fifo_path="d:/temp/".$this->reply_fifo_filename;
$this->ul_table="table";
$this->ul_priority="1.00";
$this->im_length=1300; //max length of instant message
$this->default_domain="e-horizon.se";
$this->root_path="/serweb";
$this->img_src_path = $this->root_path."img/";
$this->js_src_path = $this->root_path."styles/";
$this->style_src_path = $this->root_path."styles/";
$this->zonetab_file = "/usr/share/zoneinfo/zone.tab"; //TZ zone descriptions file, usually: /usr/share/zoneinfo/zone.tab
$this->charset="windows-1250";
$this->default_width=564; //width of usable area
$this->num_of_showed_items=20; //num of showed items in the list of users
$this->enable_tabs[1]=true; //enable tab my account
$this->enable_tabs[2]=true; //enable tab phonebook
$this->enable_tabs[3]=true; //enable tab missed calls
$this->enable_tabs[4]=true; //enable tab accounting
$this->enable_tabs[5]=true; //enable tab send IM
$this->enable_tabs[6]=true; //enable tab notification subscription
//notification subscription
$this->sub_not[]=new Csub_not("sip:weather@iptel.org;type=temperature;operator=lt;value=0","temperature is too low");
$this->sub_not[]=new Csub_not("sip:weather@iptel.org;type=wind;operator=gt;value=10","wind is too fast");
$this->sub_not[]=new Csub_not("sip:weather@iptel.org;type=pressure;operator=lt;value=1000","pressure is too low");
//links in left menu
$this->link_siptutorial=$this->root_path."sip/index.php";
$this->link_sipproducts=$this->root_path."products/index.html";
$this->link_standards=$this->root_path."info/players/index.html";
$this->link_iptelworkshop="http://www.iptel.org/2002/";
$this->link_glossary=$this->root_path."info/glossary.html";
//links on top
$this->link_abstract=$this->root_path."info/abstract.html";
$this->link_home=$this->root_path."index.html";
$this->mail_header_from="php.kk(a)kufr.cz"; //header From: in outgoing emails
$this->forgot_pass_subj="your login information";
$this->mail_forgot_pass="Hi,\n".
"now you can access to your account at the folowing URL within 1 hour:\n".
"http:/var/www/html/htdocs/serweb/user_interface/my_account.php?#session#\n\n".
"we recommend change your password after you login\n".
"iptel.org\n";
$this->register_subj="Your iptel.org Registration";
$this->mail_register="Thank you for registering with iptel.org.\n\n".
"We are reserving the following SIP address for you: #sip_address#\n\n".
"To finalize your registration please check the following URL within 24 hours:\n".
"http:/var/www/html/htdocs/serweb/user_interface/reg/confirmation.php?nr=#confirm#\n\n".
"(If you confirm later you will have to re-register.)\n\n".
"Windows Messenger users may look at additional configuration hints at\n".
"http://www.iptel.org/phpBB/viewtopic.php?topic=11&forum=1&0\n";
$this->terms_and_conditions="BY PRESSING THE 'I ACCEPT' BUTTON, YOU (HEREINAFTER THE 'USER') ARE STATING THAT YOU AGREE ".
"TO ACCEPT AND BE BOUND BY ALL OF THE TERMS AND CONDITIONS OF THIS ".
"AGREEMENT. DO NOT PROCEED IF YOU ARE UNABLE TO AGREE TO THE TERMS ".
"AND CONDITIONS OF THIS AGREEMENT. THESE TERMS AND CONDITIONS OF SERVICE ".
"FOR USE OF iptel.org SIP SERVER (THE 'AGREEMENT') CONSTITUTE A LEGALLY ".
"BINDING CONTRACT BETWEEN iptel.org AND THE ENTITY THAT AGREES TO AND ".
"ACCEPTS THESE TERMS AND CONDITIONS. ACCESS TO iptel.org's SESSION ".
"INITIATION PROTOCOL SERVER ('SIP SERVER') IS BEING PROVIDED ON AN ".
"'AS IS' AND 'AS AVAILABLE' BASIS, AND iptel.org MAKES NO REPRESENTATIONS ".
"OR WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, WITH RESPECT TO ".
"USER'S ACCESS OF THE SIP SERVER, INCLUDING BUT NOT LIMITED TO WARRANTIES ".
"OF MERCHANTABILITY, NONINFRINGEMENT, TITLE OR FITNESS FOR A PARTICULAR PURPOSE. ".
"FURTHER, iptel.org MAKES NO REPRESENTATIONS OR WARRANTIES THAT THE SIP SERVER, ".
"OR USER'S ACCESS THERETO, WILL BE AVAILABLE AT ANY GIVEN TIME, OR WILL BE FREE ".
"FROM ERRORS, DEFECTS, OMISSIONS, INACCURACIES, OR FAILURES OR DELAYS IN DELIVERY ".
"OF DATA. USER ASSUMES, AND iptel.org DISCLAIM, TOTAL RISK, RESPONSIBILITY, AND ".
"LIABILITY FOR USER'S ACCESS TO AND USE OF THE SIP SERVER.".
"\n\n".
"Access to iptel.org SIP Server is being provided on a non-exclusive basis.".
"User acknowledges and understands that iptel.org SIP site is in a developmental ".
"stage and that iptel.org makes no guarantees regarding the availability or functionality thereof. ".
"User may not sublicense its access rights to the SIP Server to any third party. ".
"\n\n".
"USER AGREES TO INDEMNIFY, DEFEND AND HOLD iptel.org, ITS AFFILIATES, DIRECTORS, OFFICERS, ".
"EMPLOYEES, AGENTS AND LICENSORS HARMLESS FROM AND AGAINST ANY AND ALL CLAIMS, ACTIONS, ".
"EXPENSES, LOSSES, AND LIABILITIES (INCLUDING COURTS COSTS AND REASONABLE ATTORNEYS' FEES), ".
"ARISING FROM OR RELATING TO THIS AGREEMENT INCLUDING USER'S ACCESS TO AND USE OF THE SIP SERVER. ".
"TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL iptel.org OR ANY OF ITS ".
"LICENSORS, BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, EXEMPLARY, OR CONSEQUENTIAL DAMAGES, ".
"ARISING OUT OF THE ACCESS TO OR USE OF OR INABILITY TO ACCESS OR USE THE SIP SERVER, OR THAT ".
"RESULT FROM MISTAKES, OMISSIONS, INTERRUPTIONS, DELETIONS OF FILES, ERRORS, DEFECTS, ".
"DELAYS IN TRANSMISSION OR OPERATION OR ANY FAILURE OF PERFORMANCE, EVEN IF ADVISED ".
"OF THE POSSIBILITY OF SUCH DAMAGES. ".
"\n\n".
"If User commits, in iptel.org's sole determination, a default of these terms and ".
"conditions, iptel.org may immediately terminate User's access to the SIP Server. ".
"Furthermore, iptel.org reserves the right to discontinue offering access to the ".
"SIP Server at any time. ".
"\n\n".
"User may not assign its rights hereunder without the prior written consent of ".
"iptel.org. User agrees to comply with all laws, regulations and other legal ".
"requirements that apply to these terms and conditions. ".
"\n\n".
"If any provision of this Agreement is held to be unenforceable for any reason, ".
"such provision shall be reformed only to the extent necessary to comply with ".
"applicable laws, and the remainder shall remain in full force and effect. ".
"\n\n".
"Any failure of iptel.org to enforce any provision of this Agreement shall ".
"not constitute a waiver of any rights under such provision or any other ".
"provision of this Agreement. ".
"\n\n".
"USER ACKNOWLEDGES THAT IT HAS READ THIS AGREEMENT, UNDERSTANDS IT, AND AGREES THAT ".
"IT IS THE COMPLETE AND EXCLUSIVE STATEMENT OF THE ENTIRE AGREEMENT BETWEEN COMPANY ".
"AND iptel.org WITH RESPECT TO THE SUBJECT MATTER HEREIN, AND SUPERSEDES ALL PRIOR ".
"AND CONTEMPORANEOUS PROPOSALS, DISCUSSIONS, AGREEMENTS, UNDERSTANDINGS, AND COMMUNICATIONS, ".
"WHETHER WRITTEN OR ORAL AND MAY BE AMENDED ONLY IN A WRITING EXECUTED BY BOTH USER AND iptel.org. ".
"\n\n";
}
}
$config=new Cconfig();
?>
__________________________________________________________________
anna rahm
ICQ#: 176699319
Current ICQ status:
+ More ways to contact me
__________________________________________________________________
Trying to load the serweb page I get the following error message:
Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/phplib/db_mysql.inc on line 73
I have looked into the database settings and can't find anything wrong with them. are there more then this:
$this->db_host="172.18.3.164"; //database host
$this->db_name="ser"; //database name
$this->db_user="ser"; //database conection user
$this->db_pass="heslo"; //database conection password
I have also tried to "Installing SERweb custom file locations" 4.3 in the http://www.fitawi.com/ser-Howto.html but just can't get it to work, please help !
see config file bellow
I try to load the page :
http://dhcp164-devel/htdocs/serweb/admin/index.php
after the error masg the browser say:
http://dhcp164-devel/htdocs/serweb/admin/index.php?phplib_Session=4bcada0b4…
Many thank's
/ANNA
serweb dir include:
admin config.php CVS functions.php img page.php styles user_interface
the config.php file is placed in:
/var/www/html/htdocs/serweb
<?
/*
* $Id: config.php,v 1.10 2002/09/25 23:26:47 jiri Exp $
*/
class Csub_not {
var $uri, $desc;
function Csub_not($uri, $desc){
$this->uri=$uri;
$this->desc=$desc;
}
}
class Cconfig {
var $db_host;
var $db_name;
var $db_user;
var $db_pass;
var $table_subscriber;
var $table_pending;
var $table_grp;
var $table_aliases;
var $table_location;
var $table_missed_calls;
var $table_accounting;
var $table_phonebook;
var $table_event;
var $show_voicemail_acl;
var $enable_dial_voicemail;
var $enable_test_firewall;
var $grp_values;
var $realm;
var $domainname;
var $first_alias_number;
var $new_alias_expires;
var $new_alias_q;
var $new_alias_callid;
var $new_alias_cseq;
var $pre_uid_expires;
var $psignature;
var $web_contact;
var $fifo_server;
var $reply_fifo_filename;
var $reply_fifo_path;
var $ul_table;
var $ul_priority;
var $im_length;
var $default_domain;
var $root_path;
var $img_src_path;
var $js_src_path;
var $style_src_path;
var $zonetab_file;
var $charset;
var $default_width;
var $num_of_showed_items;
var $enable_tabs;
var $sub_not;
var $link_siptutorial;
var $link_sipproducts;
var $link_standards;
var $link_iptelworkshop;
var $link_glossary;
var $link_abstract;
var $link_home;
var $mail_header_from;
var $mail_forgot_pass;
var $forgot_pass_subj;
var $mail_register;
var $register_subj;
var $terms_and_conditions;
function Cconfig(){
$this->db_host="172.18.3.164"; //database host
$this->db_name="ser"; //database name
$this->db_user="ser"; //database conection user
$this->db_pass="heslo"; //database conection password
// names of tables
$this->table_subscriber="subscriber";
$this->table_pending="pending";
$this->table_grp="grp";
$this->table_aliases="aliases";
$this->table_location="location";
$this->table_missed_calls="missed_calls";
$this->table_accounting="acc";
$this->table_phonebook="phonebook";
$this->table_event="event";
$this->show_voicemail_acl=true; //show "voicemail" in ACL and voicemail checkbox at my account
$this->enable_dial_voicemail=false;
$this->enable_test_firewall=false;
$this->grp_values[]="voicemail";
$this->grp_values[]="ld";
$this->grp_values[]="local";
$this->grp_values[]="int";
$this->realm="e-horizon.se";
$this->domainname="e-horizon.se";
$this->first_alias_number=18888;
$this->new_alias_expires='2020-01-01 00:00:00';
$this->new_alias_q=1.00;
$this->new_alias_callid="";
$this->new_alias_cseq=1;
$this->pre_uid_expires=3600; //seconds in which expires "get pass session"
$this->psignature="Web_interface_Karel_Kozlik-0.9";
$this->web_contact="sip:daemon@iptel.org"; //address of pseudo sender
$this->fifo_server="/tmp/ser_fifo"; //path to fifo server
$this->reply_fifo_filename="webfifo_".rand();
$this->reply_fifo_path="d:/temp/".$this->reply_fifo_filename;
$this->ul_table="table";
$this->ul_priority="1.00";
$this->im_length=1300; //max length of instant message
$this->default_domain="e-horizon.se";
$this->root_path="/serweb";
$this->img_src_path = $this->root_path."img/";
$this->js_src_path = $this->root_path."styles/";
$this->style_src_path = $this->root_path."styles/";
$this->zonetab_file = "/usr/share/zoneinfo/zone.tab"; //TZ zone descriptions file, usually: /usr/share/zoneinfo/zone.tab
$this->charset="windows-1250";
$this->default_width=564; //width of usable area
$this->num_of_showed_items=20; //num of showed items in the list of users
$this->enable_tabs[1]=true; //enable tab my account
$this->enable_tabs[2]=true; //enable tab phonebook
$this->enable_tabs[3]=true; //enable tab missed calls
$this->enable_tabs[4]=true; //enable tab accounting
$this->enable_tabs[5]=true; //enable tab send IM
$this->enable_tabs[6]=true; //enable tab notification subscription
//notification subscription
$this->sub_not[]=new Csub_not("sip:weather@iptel.org;type=temperature;operator=lt;value=0","temperature is too low");
$this->sub_not[]=new Csub_not("sip:weather@iptel.org;type=wind;operator=gt;value=10","wind is too fast");
$this->sub_not[]=new Csub_not("sip:weather@iptel.org;type=pressure;operator=lt;value=1000","pressure is too low");
//links in left menu
$this->link_siptutorial=$this->root_path."sip/index.php";
$this->link_sipproducts=$this->root_path."products/index.html";
$this->link_standards=$this->root_path."info/players/index.html";
$this->link_iptelworkshop="http://www.iptel.org/2002/";
$this->link_glossary=$this->root_path."info/glossary.html";
//links on top
$this->link_abstract=$this->root_path."info/abstract.html";
$this->link_home=$this->root_path."index.html";
$this->mail_header_from="php.kk(a)kufr.cz"; //header From: in outgoing emails
$this->forgot_pass_subj="your login information";
$this->mail_forgot_pass="Hi,\n".
"now you can access to your account at the folowing URL within 1 hour:\n".
"http:/var/www/html/htdocs/serweb/user_interface/my_account.php?#session#\n\n".
"we recommend change your password after you login\n".
"iptel.org\n";
$this->register_subj="Your iptel.org Registration";
$this->mail_register="Thank you for registering with iptel.org.\n\n".
"We are reserving the following SIP address for you: #sip_address#\n\n".
"To finalize your registration please check the following URL within 24 hours:\n".
"http:/var/www/html/htdocs/serweb/user_interface/reg/confirmation.php?nr=#confirm#\n\n".
"(If you confirm later you will have to re-register.)\n\n".
"Windows Messenger users may look at additional configuration hints at\n".
"http://www.iptel.org/phpBB/viewtopic.php?topic=11&forum=1&0\n";
$this->terms_and_conditions="BY PRESSING THE 'I ACCEPT' BUTTON, YOU (HEREINAFTER THE 'USER') ARE STATING THAT YOU AGREE ".
"TO ACCEPT AND BE BOUND BY ALL OF THE TERMS AND CONDITIONS OF THIS ".
"AGREEMENT. DO NOT PROCEED IF YOU ARE UNABLE TO AGREE TO THE TERMS ".
"AND CONDITIONS OF THIS AGREEMENT. THESE TERMS AND CONDITIONS OF SERVICE ".
"FOR USE OF iptel.org SIP SERVER (THE 'AGREEMENT') CONSTITUTE A LEGALLY ".
"BINDING CONTRACT BETWEEN iptel.org AND THE ENTITY THAT AGREES TO AND ".
"ACCEPTS THESE TERMS AND CONDITIONS. ACCESS TO iptel.org's SESSION ".
"INITIATION PROTOCOL SERVER ('SIP SERVER') IS BEING PROVIDED ON AN ".
"'AS IS' AND 'AS AVAILABLE' BASIS, AND iptel.org MAKES NO REPRESENTATIONS ".
"OR WARRANTIES OF ANY KIND, WHETHER EXPRESS OR IMPLIED, WITH RESPECT TO ".
"USER'S ACCESS OF THE SIP SERVER, INCLUDING BUT NOT LIMITED TO WARRANTIES ".
"OF MERCHANTABILITY, NONINFRINGEMENT, TITLE OR FITNESS FOR A PARTICULAR PURPOSE. ".
"FURTHER, iptel.org MAKES NO REPRESENTATIONS OR WARRANTIES THAT THE SIP SERVER, ".
"OR USER'S ACCESS THERETO, WILL BE AVAILABLE AT ANY GIVEN TIME, OR WILL BE FREE ".
"FROM ERRORS, DEFECTS, OMISSIONS, INACCURACIES, OR FAILURES OR DELAYS IN DELIVERY ".
"OF DATA. USER ASSUMES, AND iptel.org DISCLAIM, TOTAL RISK, RESPONSIBILITY, AND ".
"LIABILITY FOR USER'S ACCESS TO AND USE OF THE SIP SERVER.".
"\n\n".
"Access to iptel.org SIP Server is being provided on a non-exclusive basis.".
"User acknowledges and understands that iptel.org SIP site is in a developmental ".
"stage and that iptel.org makes no guarantees regarding the availability or functionality thereof. ".
"User may not sublicense its access rights to the SIP Server to any third party. ".
"\n\n".
"USER AGREES TO INDEMNIFY, DEFEND AND HOLD iptel.org, ITS AFFILIATES, DIRECTORS, OFFICERS, ".
"EMPLOYEES, AGENTS AND LICENSORS HARMLESS FROM AND AGAINST ANY AND ALL CLAIMS, ACTIONS, ".
"EXPENSES, LOSSES, AND LIABILITIES (INCLUDING COURTS COSTS AND REASONABLE ATTORNEYS' FEES), ".
"ARISING FROM OR RELATING TO THIS AGREEMENT INCLUDING USER'S ACCESS TO AND USE OF THE SIP SERVER. ".
"TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL iptel.org OR ANY OF ITS ".
"LICENSORS, BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE, EXEMPLARY, OR CONSEQUENTIAL DAMAGES, ".
"ARISING OUT OF THE ACCESS TO OR USE OF OR INABILITY TO ACCESS OR USE THE SIP SERVER, OR THAT ".
"RESULT FROM MISTAKES, OMISSIONS, INTERRUPTIONS, DELETIONS OF FILES, ERRORS, DEFECTS, ".
"DELAYS IN TRANSMISSION OR OPERATION OR ANY FAILURE OF PERFORMANCE, EVEN IF ADVISED ".
"OF THE POSSIBILITY OF SUCH DAMAGES. ".
"\n\n".
"If User commits, in iptel.org's sole determination, a default of these terms and ".
"conditions, iptel.org may immediately terminate User's access to the SIP Server. ".
"Furthermore, iptel.org reserves the right to discontinue offering access to the ".
"SIP Server at any time. ".
"\n\n".
"User may not assign its rights hereunder without the prior written consent of ".
"iptel.org. User agrees to comply with all laws, regulations and other legal ".
"requirements that apply to these terms and conditions. ".
"\n\n".
"If any provision of this Agreement is held to be unenforceable for any reason, ".
"such provision shall be reformed only to the extent necessary to comply with ".
"applicable laws, and the remainder shall remain in full force and effect. ".
"\n\n".
"Any failure of iptel.org to enforce any provision of this Agreement shall ".
"not constitute a waiver of any rights under such provision or any other ".
"provision of this Agreement. ".
"\n\n".
"USER ACKNOWLEDGES THAT IT HAS READ THIS AGREEMENT, UNDERSTANDS IT, AND AGREES THAT ".
"IT IS THE COMPLETE AND EXCLUSIVE STATEMENT OF THE ENTIRE AGREEMENT BETWEEN COMPANY ".
"AND iptel.org WITH RESPECT TO THE SUBJECT MATTER HEREIN, AND SUPERSEDES ALL PRIOR ".
"AND CONTEMPORANEOUS PROPOSALS, DISCUSSIONS, AGREEMENTS, UNDERSTANDINGS, AND COMMUNICATIONS, ".
"WHETHER WRITTEN OR ORAL AND MAY BE AMENDED ONLY IN A WRITING EXECUTED BY BOTH USER AND iptel.org. ".
"\n\n";
}
}
$config=new Cconfig();
?>
__________________________________________________________________
anna rahm
ICQ#: 176699319
Current ICQ status:
+ More ways to contact me
__________________________________________________________________
Hi,
I am just trying the new ser version from CVS, and I get a too many hops
error message when a client tries to register. Any idea? I am running ser
on Linux.
I have tried both kphone 3.1 and spic 2.?? as user agents. I am sure I
must have missed something in my configuration file. I attach the current
ser.cfg.
thanks,
Stephan
--
The University of Stirling is a university established in Scotland by
charter at Stirling, FK9 4LA. Privileged/Confidential Information may
be contained in this message. If you are not the addressee indicated
in this message (or responsible for delivery of the message to such
person), you may not disclose, copy or deliver this message to anyone
and any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. In such case, you should destroy this
message and kindly notify the sender by reply email. Please advise
immediately if you or your employer do not consent to Internet email
for messages of this kind. Opinions, conclusions and other
information in this message that do not relate to the official
business of the University of Stirling shall be understood as neither
given nor endorsed by it.
I finnaly have this thing in and running. I can make a call to another
person on the same server. But it appears that it is not checking a
password. I have everything configured the way all the how-to's say for
mysql authentication - but I am at a loss.
Also it does not appear to be supporting accounting (missed calls).
Can anyone help?
Here is my ser.cfg file.
#
# $Id: ser.cfg,v 1.12 2002/10/21 02:40:06 jiri Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=yes # (cmd line: -E)
check_via=no # (cmd. line: -v)
dns=yes # (cmd. line: -r)
rev_dns=yes # (cmd. line: -R)
port=5060
children=4
fifo="/tmp/ser_fifo"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
modparam("usrloc", "db_mode", 1)
# -- auth params --
[ Read 105
lines ]
root: /www/kalgonline/ser % cat/usr/local/etc/ser/ser.cfg
cat/usr/local/etc/ser/ser.cfg: Command not found.
root: /www/kalgonline/ser % cat /usr/local/etc/ser/ser.cfg
#
# $Id: ser.cfg,v 1.12 2002/10/21 02:40:06 jiri Exp $
#
# simple quick-start config script
#
# ----------- global configuration parameters ------------------------
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=yes # (cmd line: -E)
check_via=no # (cmd. line: -v)
dns=yes # (cmd. line: -r)
rev_dns=yes # (cmd. line: -R)
port=5060
children=4
fifo="/tmp/ser_fifo"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
modparam("usrloc", "db_mode", 1)
# -- auth params --
# Uncomment if you are using auth module
#
modparam("auth", "secret", "alsdkhglaksdhfkloiwr")
modparam("auth", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this
config),
# uncomment also the following parameter)
#
modparam("auth", "password_column", "password")
# ------------------------- request routing logic -------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwars==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (len_gt( max_len )) {
sl_send_reply("513", "Message too big");
break;
};
# Do strict routing if pre-loaded route headers present
rewriteFromRoute();
# if the request is for other domain use UsrLoc
# (in case, it does not work, use the following command
# with proper names and addresses in it)
if (uri=="kalg.net") {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("kalg.net", "subscriber")) {
www_challenge("kalg.net", "0");
break;
};
save("location");
break;
};
# native SIP destinations are handled using our USRLOC
DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
# forward to current uri now
if (!t_relay()) {
sl_reply_error();
};
}
Gary Goodloff
KALG Communications / Nebraska Classifieds
T: 402-898-4152
C: 402-208-5183
F: 413-294-3404
Hi,
according to the description on the site
http://developer.berlios.de/docman/display_doc.php?docid=32&group_id=2 I
have tried the CVS. Unfortunately it doesn't work with me:
bash-2.03# cvs -d:pserver:anonymous@cvs.ser.berlios.de/cvsroot/ser co auth
cvs server: cannot find module `auth' - ignored
cvs [checkout aborted]: cannot expand modules
When I input the whole directory like:
bash-2.03#
cvs -d:pserver:anonymous@cvs.ser.berlios.de/cvsroot/ser/sip_router/modules
co auth
then I get an erro:
cvs checkout: authorization failed: server cvs.ser.berlios.de rejected
access to /cvsroot/ser/sip_router/modules for user anonymous
cvs checkout: used empty password; try "cvs login" with a real password
What is wrong?
Thanks
Yang
COMer - Programming Language for Component Development
If you are a Windows Programmer, I would like to introduce something
interesting to you.
COMer is a native programming language for COM component development.
A COM component can be easily made in COMer as follow: [File:MyCom.cm]
#ifndef _MYCOM_CM
#define _MYCOM_CM
/*
* A COM Class
*/
[ clsid = "{EF6CD47E-B844-4219-B582-6F9FE16D45F6}",
progid = "Dexterity.MyCom1.1",
helpstring = "Dexterity Com1 Class",
export, unhandle ]
com CMyCom1
{
/*
* An Interface implemented in this class
*/
[iid="{A123799B-1D8B-4efb-8D43-42AE582767C1}"]
interface IMyInterface
{
method SetValue(int dVal)
{
m_dValue = dVal;
done;
}
method GetDoubleValue(int &dVal)
{
dVal = m_dValue << 1;
done;
}
}
/*
* Instance variables
*/
instvars
{
int m_dValue;
}
}
#endif
The design of COMer is native to the concept of the Component Object Model
(COM) mechanism. COM classes are defined as in the way that COM specifies.
Interfaces are specified or defined within a COM class and the methods of
the interfaces are defined within the interfaces. It is simple.
A special characteristic of COMer is that the COMer compiler generates C++
source code files as its final outputs. Therefore, you can use C++ code
within the COMer classes, like Lex, Yacc or MIDL. To build the component,
what you need to do is to specify one more file only to indicate the module
of the component to build.
E.g: [File:MyCom.cmdef]
module: inprocsvr
source { MyCom.cm }
Then, by the following command line (cmc is the COMer compiler program):
> cmc MyCom.cmdef
COMer compiler will generate the following C++ files:
Main.cpp
MyCom.h
MyCom.cpp
MyCom.def
Makefile
Finally, you only need to build these C++ files by using the generated
makefile by C++ build tools. The component 'MyCom.dll' will then be made.
It's so simple!
Lets try it! You will like it!
Home Page:
http://www.dexterity.com.hk/COMer/
Download Trial Version:
http://www.dexterity.com.hk/COMer/Download/Download.asp
Dexterity Technologies Limited
http://www.dexterity.com.hk/
If you don't want to receive any more message from us, please send an
e-mail to comer(a)dexteritytech.com to unsubscribe.
Please don't reply this e-mail.
We apologize for any inconvenience caused.
Hi All,
I need to implement an used based dialplans module on SER, so that depending
on the user information stored in the database, a certain prefix should be
inserted in the called number. Has anyone had a similar issue?
Thanks
Fernando
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.474 / Virus Database: 272 - Release Date: 4/18/2003