Askozia Forums
May 21, 2012, 08:45:43 pm
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Askozia Forums
>
AskoziaPBX
>
Bug Reports
>
r403 Duplicate SIP Extensions
Pages: [
1
]
« previous
next »
Print
Author
Topic: r403 Duplicate SIP Extensions (Read 556 times)
devon
Guest
r403 Duplicate SIP Extensions
«
on:
February 10, 2008, 08:38:27 pm »
r403 allows creation of duplicate sip extensions. After looking through /usr/local/www/phones_sip_edit.php I can see that it looks for a match in an array built by function 'pbx_get_extensions' in /etc/inc/pbx.inc which calls function 'sip_get_extensions' in /etc/inc/sip.inc. Should the strings highlighted below in red be 'phone' instead of 'phones'?
/**
* Returns an array of all assigned phone extensions
*/
function sip_get_extensions() {
global $config;
$extensions = array();
if (is_array($config['sip']['
phones
'])) {
foreach($config['sip'][
'phones
'] as $phone) {
$extensions[] = $phone['extension'];
}
}
return $extensions;
}
Logged
Michael
Askozia Staff
Hero Member
Karma: 49
Posts: 1020
Re: r403 Duplicate SIP Extensions
«
Reply #1 on:
February 11, 2008, 12:56:16 pm »
Nice find, thanks! All of the phones' extensions were being gathered incorrectly (stupid copy and paste). I've changed them for the next image. Some work is still needed to properly check for duplicate extensions system-wide.
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Announcements
=> Events
=> Meta
-----------------------------
AskoziaPBX
-----------------------------
=> General
=> Call Flow Editor
=> Handbook
=> Installation
=> Hardware
===> For Sale / Wanted
=> Interface Configuration
=> Provider Accounts
=> Phone Accounts
=> Dialplan
===> Applications
=> Packages
=> Bug Reports
=> Feature Requests
=> Development
===> Bounties
=> Internationalization
-----------------------------
International
-----------------------------
=> Nederlands
=> 普通話
=> Deutsch
=> Español
=> Français
=> Italiano
=> 日本語
=> Português
=> Русский язык
Loading...