|
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.
|
|
|
|
|
|
|
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
|
|
|
|
Last Edit: 2010/08/11 21:52 By dicko.
There are other solutions!!
|
|
|
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
|
|
|
|
|
|
|
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&display=extensions" >{$Extensions}</a></li>
<li><a href="/?menu=pbxconfig&display=featurecodeadmin" >{$Feature_Codes}</a></li>
<li><a href="/?menu=pbxconfig&display=general" >{$General_Settings}</a></li>
<li><a href="/?menu=pbxconfig&display=routing" >{$Outbound_Routes}</a></li>
<li><a href="/?menu=pbxconfig&display=trunks" >{$Trunks}</a></li>
<li>{$Inbound_Call_Control}</li>
<li><a href="/?menu=pbxconfig&display=did" >{$Inbound_Routes}</a></li>
<li><a href="/?menu=pbxconfig&display=zapchandids" >{$Zap}</a></li>
<li><a href="/?menu=pbxconfig&display=announcement" >{$Announcements}</a></li>
<li><a href="/?menu=pbxconfig&display=daynight" >{$Day_Night}</a></li>
<li><a href="/?menu=pbxconfig&display=findmefollow" >{$Follow_Me}</a></li>
<li><a href="/?menu=pbxconfig&display=ivr" >{$IVR}</a></li>
<li><a href="/?menu=pbxconfig&display=miscdests" >{$Misc_Destinations}</a></li>
<li><a href="/?menu=pbxconfig&display=queues" >{$Queues}</a></li>
<li><a href="/?menu=pbxconfig&display=queueprio" >{$Queue_Prio}</a></li>
<li><a href="/?menu=pbxconfig&display=ringgroups" >{$Ring_Groups}</a></li>
<li><a href="/?menu=pbxconfig&display=timegroups" >{$Time_Groups}</a></li>
<li><a href="/?menu=pbxconfig&display=timeconditions" >{$Time_Conditions}</a></li>
<li>{$Internal_Options_Configuration}</li>
<li><a href="/?menu=pbxconfig&display=conferences" >{$Conferences}</a></li>
<li><a href="/?menu=pbxconfig&display=miscapps" >{$Misc_Applications}</a></li>
<li><a href="/?menu=pbxconfig&display=music" >{$Music_on_Hold}</a></li>
<li><a href="/?menu=pbxconfig&display=pinsets" >{$PIN_Sets}</a></li>
<li><a href="/?menu=pbxconfig&display=paging" >{$Paging_Intercom}</a></li>
<li><a href="/?menu=pbxconfig&display=parking" >{$Parking_Lot}</a></li>
<li><a href="/?menu=pbxconfig&display=recordings" >{$System_Recordings}</a></li>
<li><a href="/?menu=pbxconfig&display=backup" >{$Backup}</a></li>
<li>{$Remote_Access}</li>
<li><a href="/?menu=pbxconfig&display=callback" >{$Callback}</a></li>
<li><a href="/?menu=pbxconfig&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",
);
?>
|
|
|
|
Last Edit: 2010/08/13 23:02 By saudade.Reason: Typos again
|
|
|
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.
|
|
|
|
|
|
|
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  )
|
|
|
|
Last Edit: 2010/08/14 15:58 By dicko.
There are other solutions!!
|
|
|
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.
|
|
|
|
|
|
|
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
|
|
|
|
Last Edit: 2010/08/14 01:40 By dicko.
There are other solutions!!
|
|
|
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.
|
|
|
|
|
|
|
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
|
|
|
|
Last Edit: 2010/08/14 01:49 By dicko.
There are other solutions!!
|
|
|