bar top left
bar top right
left curve
right curve
Welcome, Guest
Go to bottom
Post Reply
Post New Topic
Page: 12
TOPIC: add freepbx module to PBX config
*
#57542
add freepbx module to PBX config 1 Year, 6 Months ago Karma: 0
Is it possible to add or remove FreePBX modules to the Elastix PBX Configuration, if yes can some one point me in a direction how to.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
chito
Just do it
Fresh Boarder
Posts: 26
graphgraph
User Offline Click here to see the profile of this user
Gender: Male ivan@netvision.an Location: Curacao N.A.
Reply Quote
 
#57543
Re:add freepbx module to PBX config 1 Year, 6 Months ago Karma: 155
No.

Well, not easily, PaloSanto have decided what you need to see and it is hard-coded, so tough luck.

As a work around use the unembedded FreePBX , but don't update it, that would be "unsupported", you are stuck with quite old stuff, sorry.



dicko
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
dicko
Ethically, I no longer support PaloSanto, Sorry.
Platinum Boarder
Posts: 4101
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Not available Birthday: 01/21
Last Edit: 2010/08/11 21:52 By dicko.
There are other solutions!!
Reply Quote
 
#57651
Re:add freepbx module to PBX config 1 Year, 6 Months ago Karma: 0
It is actually very easy and not hard coded. You need to modify three files. If you wait till tomorrow I will post details it is 2.16 in the morning here in Los Angeles and I want to go to sleep. I promise I will explain it to you tomorrow. Thanks
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
saudade
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Ladera Communications Location: Los Angeles Birthday: 10/03
M Molina
Reply Quote
 
#57684
Re:add freepbx module to PBX config 1 Year, 5 Months ago Karma: 0
These are the three files you need to modify in order to change the menu on the left to access the modules on “unembedded freePBX”.
You can remove the entries or add as needed. Keep in mind that the modification has to be done in all the three files. O.K. the file: ”en.lang “ is the one that will set the names in the menu and that will show on the main page of the interface. The “index.php” file constructs the page and the “main.tpl” sets the destination or what the menu will take you to when clicked. You can see that my “unembedded freePBX” link takes me to the “ARI” module which I now call “Web Portal”. Follow this model and you can customize your installation the way you want. As you can see it is not difficult nor is it hard coded in any way. I hope you and others can use it. If you need more tips post here.
Note you have to open these files and look for the text needed to be edited. I use WinSCP to work on these machines and that software is also free.

---------------------------------------------------------------------------------------
First file: www/html/modules/pbxadmin/index.php

if(check_reload_needed()) {
// Reviso si el REQUEST_URI tiene ya variables tipo get. Solo busco por un signo de ?
$pos=strpos($_SERVER['REQUEST_URI'], '?');
if($pos>0) $URL_RELOAD = $_SERVER['REQUEST_URI']."&handler=reload";
else $URL_RELOAD = $_SERVER['REQUEST_URI']."?handler=reload";

$salida .= "<table border=0 cellpadding=2 cellspacing=0 align='center' width='100%'><tr bgcolor='#f6bbbb'><td align='center'><a href='$URL_RELOAD'>Apply Configuration Changes Here</a></td></tr></table>";
}

$smarty->assign("Option", $arrLang['Option']);
$smarty->assign("Unembedded_freePBX", $arrLang['Unembedded freePBX']);
$smarty->assign("Basic", $arrLang['Basic']);
$smarty->assign("Extensions", $arrLang['Extensions']);
$smarty->assign("Feature_Codes", $arrLang['Feature Codes']);
$smarty->assign("General_Settings", $arrLang['General Settings']);
$smarty->assign("Outbound_Routes", $arrLang['Outbound Routes']);
$smarty->assign("Trunks", $arrLang['Trunks']);
$smarty->assign("Inbound_Call_Control", $arrLang['Inbound Call Control']);
$smarty->assign("Inbound_Routes", $arrLang['Inbound Routes']);
$smarty->assign("Zap", $arrLang['Zap']);
$smarty->assign("Announcements", $arrLang['Announcements']);
$smarty->assign("Day_Night", $arrLang['Day Night']);
$smarty->assign("Follow_Me", $arrLang['Follow Me']);
$smarty->assign("IVR", $arrLang['IVR']);
$smarty->assign("Misc_Destinations", $arrLang['Misc Destinations']);
$smarty->assign("Queues", $arrLang['Queues']);
$smarty->assign("Queue_Prio", $arrLang['Queue_Prio']);
$smarty->assign("Ring_Groups", $arrLang['Ring Groups']);
$smarty->assign("Time_Groups", $arrLang['Time Groups']);
$smarty->assign("Time_Conditions", $arrLang['Time Conditions']);
$smarty->assign("Internal_Options_Configuration", $arrLang['Internal Options & Configuration']);
$smarty->assign("Conferences", $arrLang['Conferences']);
$smarty->assign("Misc_Applications", $arrLang['Misc Applications']);
$smarty->assign("Music_on_Hold", $arrLang['Music on Hold']);
$smarty->assign("PIN_Sets", $arrLang['PIN Sets']);
$smarty->assign("Paging_Intercom", $arrLang['Paging and Intercom']);
$smarty->assign("Parking_Lot", $arrLang['Parking Lot']);
$smarty->assign("System_Recordings", $arrLang['System Recordings']);
$smarty->assign("Backup", $arrLang['Backup']);
$smarty->assign("Remote_Access", $arrLang['Remote Access']);
$smarty->assign("Callback", $arrLang['Callback']);
$smarty->assign("DISA", $arrLang['DISA']);

$smarty->assign("htmlFPBX", $htmlFPBX);
$salida .= $smarty->fetch("$local_templates_dir/main.tpl");
return $salida;
}
?>
--------------------------------------------------------------------------------------
Second file: www/html/modules/pbxadmin/themes/default/main.tpl

<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td valign="top" width="220"><div id="nav"><ul>
<li>{$Option}</li>
<li><a href="/recordings/" target="_blank">{$Unembedded_freePBX}</a></li>
<li>{$Basic}</li>
<li><a href="/?menu=pbxconfig&amp;display=extensions" >{$Extensions}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=featurecodeadmin" >{$Feature_Codes}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=general" >{$General_Settings}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=routing" >{$Outbound_Routes}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=trunks" >{$Trunks}</a></li>
<li>{$Inbound_Call_Control}</li>
<li><a href="/?menu=pbxconfig&amp;display=did" >{$Inbound_Routes}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=zapchandids" >{$Zap}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=announcement" >{$Announcements}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=daynight" >{$Day_Night}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=findmefollow" >{$Follow_Me}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=ivr" >{$IVR}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=miscdests" >{$Misc_Destinations}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=queues" >{$Queues}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=queueprio" >{$Queue_Prio}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=ringgroups" >{$Ring_Groups}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=timegroups" >{$Time_Groups}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=timeconditions" >{$Time_Conditions}</a></li>
<li>{$Internal_Options_Configuration}</li>
<li><a href="/?menu=pbxconfig&amp;display=conferences" >{$Conferences}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=miscapps" >{$Misc_Applications}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=music" >{$Music_on_Hold}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=pinsets" >{$PIN_Sets}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=paging" >{$Paging_Intercom}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=parking" >{$Parking_Lot}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=recordings" >{$System_Recordings}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=backup" >{$Backup}</a></li>
<li>{$Remote_Access}</li>
<li><a href="/?menu=pbxconfig&amp;display=callback" >{$Callback}</a></li>
<li><a href="/?menu=pbxconfig&amp;display=disa" >{$DISA}</a></li>
</ul></div></td>
<td valign="top">{$htmlFPBX}</td>
</tr>
</table>
---------------------------------------------------------------------------------------
Third File: www/html/modules/pbxadmin/lang/en.lang

$Id: en.lang,v 1.7 2008/02/18 09:49:00 bmacias Exp $ */
global $arrLangModule;
$arrLangModule=array(
"Option" => "Option",
"Unembedded freePBX" => "Web Portal",
"Basic" => "Basic",
"Extensions" => "Extensions",
"Feature Codes" => "Feature Codes",
"General Settings" => "General Settings",
"Outbound Routes" => "Outbound Routes",
"Trunks" => "Trunks",
"Inbound Call Control" => "Inbound Call Control",
"Inbound Routes" => "Inbound Routes",
"Zap" => "Zap Channel DIDs",
"Announcements" => "Announcements",
"Day Night" => "Day/Night Control",
"Follow Me" => "Follow Me",
"IVR" => "Auto Attendant",
"Misc Destinations" => "Misc Destinations",
"Queues" => "Queues",
"Queue_Prio" => "Queue Priorities",
"Ring Groups" => "Ring Groups",
"Time Groups" => "Time Groups",
"Time Conditions" => "Time Conditions",
"Internal Options & Configuration" => "Internal Options & Configuration",
"Conferences" => "Conferences",
"Misc Applications" => "Misc Applications",
"Music on Hold" => "Music on Hold",
"PIN Sets" => "PIN Sets",
"Paging and Intercom" => "Paging and Intercom",
"Parking Lot" => "Parking Lot",
"System Recordings" => "System Recordings",
"Backup" => "Backup/Restore",
"Remote Access" => "Remote Access",
"Callback" => "Callback",
"DISA" => "DISA",
);
?>
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
saudade
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Ladera Communications Location: Los Angeles Birthday: 10/03
Last Edit: 2010/08/13 23:02 By saudade.Reason: Typos again
M Molina
Reply Quote
 
#57703
Re:add freepbx module to PBX config 1 Year, 5 Months ago Karma: 0
I forgot to mention that in most cases however not always, you will have to clear the cache in the following folder:

/var/www/html/var/templates_c

These are the created templates you see on your browser. Also chances are that the browser itself may need a cache flush as well. If you do not see these templates after deleting them once simply use the refresh feature if you are using WinSCP.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
saudade
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Ladera Communications Location: Los Angeles Birthday: 10/03
M Molina
Reply Quote
 
#57707
Re:add freepbx module to PBX config 1 Year, 5 Months ago Karma: 155
If you don't consider your solution to be hard-coding, I suggest your concept of three files is off by a quite a few, please for completeness and for the non anglophones, post also your proposed changes to:-

bg.lang
cn.lang
el.lang
fa.lang
hu.lang
ko.lang
ro.lang
sr.lang
br.lang
da.lang
fr.lang
it.lang
pl.lang
ru.lang
ca.lang
de.lang
es.lang
hr.lang
ja.lang
pt-br.lang
sl.lang


all need to be orthogonal if you add a module. or as they say at google


Maak je geen zorgen ze zijn gewoon verdomd buitenlanders.
не волнуйтесь они просто чертовски иностранцев.
no te preocupes no son más que mierda extranjeros.

or even my favorite

msiwe na wasiwasi wao ni wageni fucking tu.

(luckily the last one will not transcode through g729 )
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
dicko
Ethically, I no longer support PaloSanto, Sorry.
Platinum Boarder
Posts: 4101
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Not available Birthday: 01/21
Last Edit: 2010/08/14 15:58 By dicko.
There are other solutions!!
Reply Quote
 
#57708
Re:add freepbx module to PBX config 1 Year, 5 Months ago Karma: 0
For a minute I thought I was going to be talking to someone half intelligent I guess I was wrong. i could nevertheless translate this into 5 languages if I wanted to. However the purpose of my reply was to let that person know how really it "really" is. Also maybe this guy only needed a guide which I gave to him. Perhaps you prefer to talk or should I say post in Spanish. that is fine also. However I will not use the kind of language you do nor would I insult you and call you "extranjero" despectivamente. I am proud to be an American if that is what you were referring to. (An educated one if I may say). Anyway enjoy your self and do not insult anybody. That's not the purpose of this forum.
I am sure the guy was not about to write a new module anyway.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
saudade
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Ladera Communications Location: Los Angeles Birthday: 10/03
M Molina
Reply Quote
 
#57709
Re:add freepbx module to PBX config 1 Year, 5 Months ago Karma: 155
You questioned my post, I merely replied, your solution is without doubt a hardcoded one and I might add a less than complete one, as I precisely pointed out. I am not unarmed, neither intellectually or linguistically.

Por favor, vaya con Dios y la paz

dicko
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
dicko
Ethically, I no longer support PaloSanto, Sorry.
Platinum Boarder
Posts: 4101
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Not available Birthday: 01/21
Last Edit: 2010/08/14 01:40 By dicko.
There are other solutions!!
Reply Quote
 
#57710
Re:add freepbx module to PBX config 1 Year, 5 Months ago Karma: 0
It simply gives the impression you are uneducated what can I say and your first post was wrong and totally without foundation Me entiendes o mejor digo Orale amigo? Stay with God my man. you need help. You are egocentric and not very proud of what you are.
I feel sorry for you.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
saudade
Fresh Boarder
Posts: 10
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Ladera Communications Location: Los Angeles Birthday: 10/03
M Molina
Reply Quote
 
#57711
Re:add freepbx module to PBX config 1 Year, 5 Months ago Karma: 155
My apologies saudade,

I forgot my manners three posts ago, I welcome you to these fora my friend, stick around, you might learn a thing or two.

regards

dicko
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
dicko
Ethically, I no longer support PaloSanto, Sorry.
Platinum Boarder
Posts: 4101
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Not available Birthday: 01/21
Last Edit: 2010/08/14 01:49 By dicko.
There are other solutions!!
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 12
Moderators: Bob, jgutierrez