bar top left
bar top right
left curve
right curve
Welcome, Guest

endpoint_configuration modified.
(1 viewing) (1) Guest
Go to bottom
Post Reply
Post New Topic
Page: 1234567
TOPIC: endpoint_configuration modified.
#11521
Re:endpoint_configuration modified. 4 Years, 7 Months ago Karma: 159
Hi Darlene.

Yes, the basic configuration that i was make, it's with only 2 lines.

You can change the basic configuration into this file:
cd /var/www/html/modules/endpoint_configuration/libs/vendors/

edit Cisco.cfg.php

Into the section, add more line:
Code:

 function SIPFileCisco($DisplayName, $id_device, $secret, $ipAdressServer, $version)
{
    $content="# Cisco SIP Configuration

phone_label: \"$DisplayName\"
line1_name: \"$id_device\"
line1_authname: \"$id_device\"
line1_shortname: \"L1\"
line1_displayname: \"$DisplayName\"
line1_password: \"$secret\"
line2_name: \"$id_device\"
line2_authname: \"$id_device\"
line2_shortname: \"L2\"
line2_displayname: \"$DisplayName\"
line2_password: \"$secret\"
";



you can use winscp tools (Windows, find with google). It's SFTP tools transfert. and with double clic you can diretly edit your file.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
danardf
Administrator
Posts: 6299
graph
User Offline Click here to see the profile of this user
Gender: Male Location: France - Trans sur Erdre Birthday: 12/31
Last Edit: 2008/10/09 01:51 By danardf.

Links hidden for unregistered users. Login or register Here - Links hidden for unregistered users. Login or register Here - Franck Danard - franck.danard@roomx.fr
Reply Quote
 
#11522
Re:endpoint_configuration modified. 4 Years, 7 Months ago Karma: 159
I see that into your sip<mac.file> you have some information already include into SIPDefault!
I prefere to separate the general config and specific config.
into the specifiiconfig (SIP<mac>), there is only buttons / lines.

If you yant to modify SIPDefault.cnf, see the function DefaultFileCisco section into the same file.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
danardf
Administrator
Posts: 6299
graph
User Offline Click here to see the profile of this user
Gender: Male Location: France - Trans sur Erdre Birthday: 12/31

Links hidden for unregistered users. Login or register Here - Links hidden for unregistered users. Login or register Here - Franck Danard - franck.danard@roomx.fr
Reply Quote
 
#11579
Re:endpoint_configuration modified. 4 Years, 7 Months ago Karma: 2
Hi. This is my normal SIPDefault.cnf.
File Attachment:
File Name: SIPDefault.zip
File Size: 721
The endpoint configuration tool does not create one and the tftp directory you posted doesn't have one. Shouldn't the endpoint configuration tool create one?

When I setup a new phone, I just change the alternate tftp server IP address on the phone. The phone reboots and connects to the tftp server and everything else including the phone password is changed using my SIPdefault and SIPmac .cnfs in the tftp directory.

An ideal Cisco endpoint configuration tool would include a place to ask the important Cisco configuration questions like, SIP and HTTP proxy addresses, image folder, directory folder, password, number of phone lines, etc.

In a multiple server and/or multiple company environment, if you specify the SIP proxy and images in the SIPmac.cnf, you can have one centralized tftp directory but direct the phones to multiple servers. You can also display different logos on the different phones if there are different companies using the same tftp server.

Thank you.
Darlene
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
dard
Fresh Boarder
Posts: 16
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#11607
Re:endpoint_configuration modified. 4 Years, 7 Months ago Karma: 159
dard wrote:
Hi. This is my normal SIPDefault.cnf.
File Attachment:
File Name: SIPDefault.zip
File Size: 721
The endpoint configuration tool does not create one and the tftp directory you posted doesn't have one. Shouldn't the endpoint configuration tool create one?


Yes, the end_point must create a new file into /tftpboot.



When I setup a new phone, I just change the alternate tftp server IP address on the phone. The phone reboots and connects to the tftp server and everything else including the phone password is changed using my SIPdefault and SIPmac .cnfs in the tftp directory.


Try to backup these 2 files and (Sipdefault.cnf ->.cnf.old). check your Cisco extension and reclic to define button.

Give me your relust



An ideal Cisco endpoint configuration tool would include a place to ask the important Cisco configuration questions like, SIP and HTTP proxy addresses, image folder, directory folder, password, number of phone lines, etc.


Yes, i'm ok with you. And more, the time zone, time format, codec and some parameters.
I go to see if i can do it.



In a multiple server and/or multiple company environment, if you specify the SIP proxy and images in the SIPmac.cnf, you can have one centralized tftp directory but direct the phones to multiple servers. You can also display different logos on the different phones if there are different companies using the same tftp server.

Thank you.
Darlene


Ok i see.
It's a specific case.

But you can, like i said, modified the SIPDefaut.cnf function into the file, for the common part.
You must simply be careful.

Give me the result please.

Thanks

Franck
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
danardf
Administrator
Posts: 6299
graph
User Offline Click here to see the profile of this user
Gender: Male Location: France - Trans sur Erdre Birthday: 12/31

Links hidden for unregistered users. Login or register Here - Links hidden for unregistered users. Login or register Here - Franck Danard - franck.danard@roomx.fr
Reply Quote
 
#11613
Re:endpoint_configuration modified. 4 Years, 7 Months ago Karma: 159
I had forgotten!!

If you use a specific tftp directory on another server. I don't know if it's work but.
Maybe create a sharing directory on your other server and mount the sharing directoty onti /mnt/remote_tftpboot
Modify this file :
paloSantoFileEndPoint.class.php

    Code:

    function find_version()
    {
    // Replace this code by the good directory tftp.
    $monrep = opendir("/tftpboot/");



Change /tftpboot/ by your directory, like for exemple:
/mnt/remote_tftpboot/

or maybe make a symbolic link /tftpboot -> /mnt/remote_tftpboot without modified the file paloSantoFileEndPoint.class.php
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
danardf
Administrator
Posts: 6299
graph
User Offline Click here to see the profile of this user
Gender: Male Location: France - Trans sur Erdre Birthday: 12/31
Last Edit: 2008/10/10 02:44 By danardf.

Links hidden for unregistered users. Login or register Here - Links hidden for unregistered users. Login or register Here - Franck Danard - franck.danard@roomx.fr
Reply Quote
 
#14095
Re:endpoint_configuration modified. 4 Years, 5 Months ago Karma: 33
danardf wrote:
[quote]
I would like that someone try the end_point configuration modified.
[b]

The module works great for my Cisco 7940 with the exception of the RSS feeds.

When I'm opening the default xmlrssparse.php?feed=online.wsj.com/xml/rss/0,,3_7011,00.xml address from a browser I have an output that seems correctly formated.
However on the phone I have a CMXML error / XML Parse error on the phone.
Any ideas ?

Patrick
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Patrick_elx
Gold Boarder
Posts: 1120
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Florida, USA
Reply Quote
 
#14102
Re:endpoint_configuration modified. 4 Years, 5 Months ago Karma: 33
another question:

I've just reinstalled the whole system with the 1.4beta version.
I've copied the different .cnf files from my previous working version but now the Cisco can't access the files by http.

The tftp part is working, but the picture load and the access to the xmlservices give a 'connecting to http server' that fails.

I've checked the files permissions and upper/lowercase common mistakes.
I've checked the cisco conf (still the same as before)

When i try to access the logo or xmlservices/index.php files by a browsers, the http:// address automatically switch to a https://

I can't remember if it had the same behaviour with version 1.3

Is there a service or a config file I need to change somewhere?
Any idea?

Patrick
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Patrick_elx
Gold Boarder
Posts: 1120
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Florida, USA
Reply Quote
 
#14103
Re:endpoint_configuration modified. 4 Years, 5 Months ago Karma: 41
Try commenting out this lines form /etc/httpd/conf/httpd.conf

# RewriteEngine On
# RewriteCond %{HTTPS} off
# RewriteRule (.*) %{HTTP_HOST}%{REQUEST_URI}

Regards,

Rafael
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
rafael
Free Software is all about freedom
Developer
Posts: 1458
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Elastix Location: Ecuador Birthday: 10/11
Reply Quote
 
#14110
Re:endpoint_configuration modified. 4 Years, 5 Months ago Karma: 33
Thanks,

I've just found it out before reading your post.
That's the step I forgot during my backup... The httpd conf file...
i should have read the whole install process again.

At least I'm becoming less a linux dummy every day.

Now I need to understand why I can't create a virtual fax extension anymore. I have a Secret (IAX) error. But I can connect a softphone to that IAX2 extension without problem. If I can't figure out, I'll post on the Hylafax thread later today... [Solved: the fax module does not accept letter in the IAX secret]
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Patrick_elx
Gold Boarder
Posts: 1120
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Florida, USA
Last Edit: 2008/12/15 16:24 By Patrick_elx.
Reply Quote
 
#14295
Re:endpoint_configuration modified. 4 Years, 4 Months ago Karma: 33
The address book was not working properly for the first record.
The link to /E_book.php?phone=0 was returning to the main page.

Please see below in red the modifications I've done to E_book.php to correct it:


<?php

$Server = $_SERVER["SERVER_ADDR"];
$url="".$Server."/xmlservices";

//
// Get the 2 variables (Page and phone).
$Page = $_GET['Page']; // Page index
$idx_phone = $_GET['phone']; // phone's address book index

if ( $Page == 0 )
{
$Page = 1;
}

if ($idx_phone)
{
//
// Contact Selected = ok
//
$Menu = "<CiscoIPPhoneDirectory>\n";
$Menu .= "<Title>Phone Directory</Title>\n";
$Menu .= "<Prompt>Please select one</Prompt>\n";
//
// Load variable E_address_book array from database
//
$idx_phone--;
exec("sqlite3 -separator '-' -nullvalue 'no-mail' /var/www/db/address_book.db \"select * from contact;\"",$E_address_book);
list($idx,$name,$last_name,$phone_number,$extension,$mail)=explode("-",$E_address_book[$idx_phone]);
//
// Repare to displaying.
//
$Menu .= "<DirectoryEntry>\n";
$Menu .= "<Name>$name $last_name </Name>\n";
$Menu .= "<Telephone>$phone_number</Telephone>\n";
$Menu .= "</DirectoryEntry>\n";
$Menu .= "</CiscoIPPhoneDirectory>\n";
//
// Displaying the result on the Cisco extension.
//
echo $Menu;

}

else

{
//
// Displaying the address book by 31 Items/page
//
$Menu = "<CiscoIPPhoneMenu>\n";
$Menu .= "<Title>Phone Directory</Title>\n";
$Menu .= "<Prompt>Please select one</Prompt>\n";
//
// consult address_book.db from contact and put into the variables
//
exec("sqlite3 -separator '-' -nullvalue 'no-mail' /var/www/db/address_book.db \"select * from contact;\"",$E_address_book);
$p=0;

while ($p <= count($E_address_book)-1)
{
if ((($Page-1)*31) + $p < ($Page*31))
{
//
// Displaying one item by loop. So 31 items/page
//
$idx_array = $p+(($Page - 1) * 31);
list($idx,$name,$last_name,$phone_number,$extension,$mail)=explode("-",$E_address_book[$idx_array]);
$idx_array'++;
$Menu .= "<MenuItem>\n";
$Menu .= "<Name>$name $last_name </Name>\n";
$Menu .= "<URL>$url/E_book.php?phone=$idx_array</URL>\n";
$Menu .= "</MenuItem>\n";
}
$p++;
}
$Page++;
//
// Displaying the link with the next page.
//
$Menu .= "<MenuItem>\n";
$Menu .= "<Name>Next </Name>\n";
$Menu .= "<URL>$url/E_book.php?Page=$Page</URL>\n";
$Menu .= "</MenuItem>\n";
$Menu .= "</CiscoIPPhoneMenu>\n";
//
// Displaying the result on the Cisco extension.
//
echo $Menu;

}

?>
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
Patrick_elx
Gold Boarder
Posts: 1120
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Florida, USA
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 1234567
Moderators: Bob, jgutierrez

elastix

Protected by Spam Fighter