Changeset 5450
- Timestamp:
- 12/11/07 09:06:25 (1 year ago)
- Files:
-
- modules/branches/2.4/core/etc/extensions.conf (modified) (1 diff)
- modules/branches/2.4/core/etc/iax.conf (modified) (1 diff)
- modules/branches/2.4/core/etc/sip.conf (modified) (2 diffs)
- modules/branches/2.4/core/functions.inc.php (modified) (6 diffs)
- modules/branches/2.4/core/module.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.4/core/etc/extensions.conf
r5348 r5450 1 ; do not edit this file, this is an auto-generated file by freepbx 2 ; all modifications must be done from the web gui 3 1 4 ; FreePBX 2 5 ; Copyright (C) 2004 Coalescent Systems Inc (Canada) 3 6 ; Copyright (C) 2006 Why Pay More 4 Less Pty Ltd (Australia) 7 ; Copyright (C) 2007 Astrogen LLC (USA) 4 8 ; Released under the GNU GPL Licence version 2. 5 9 modules/branches/2.4/core/etc/iax.conf
r5234 r5450 1 ; do not edit this file, this is an auto-generated file by freepbx 2 ; all modifications must be done from the web gui 3 1 4 [general] 2 bindport = 4569 ; Port to bind to (IAX is 4569)3 bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)4 disallow=all5 allow=ulaw6 allow=alaw7 allow=gsm8 mailboxdetail=yes9 5 6 ; These will all be included in the [general] context 7 #include iax_general_additional.conf 10 8 #include iax_general_custom.conf 11 9 #include iax_registrations_custom.conf 12 10 #include iax_registrations.conf 11 12 ; These should all be expected to come after the [general] context 13 ; 13 14 #include iax_custom.conf 14 15 #include iax_additional.conf modules/branches/2.4/core/etc/sip.conf
r5234 r5450 1 ; Note: If your SIP devices are behind a NAT and your Asterisk 2 ; server isn't, try adding "nat=1" to each peer definition to 3 ; solve translation problems. 1 ; do not edit this file, this is an auto-generated file by freepbx 2 ; all modifications must be done from the web gui 4 3 5 4 [general] 6 #include sip_general_additional.conf 7 8 bindport = 5060 ; Port to bind to (SIP is 5060) 9 bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine) 10 disallow=all 11 allow=ulaw 12 allow=alaw 13 ; If you need to answer unauthenticated calls, you should change this 14 ; next line to 'from-trunk', rather than 'from-sip-external'. 15 ; You'll know this is happening if when you call in you get a message 16 ; saying "The number you have dialed is not in service. Please check the 17 ; number and try again." 18 context = from-sip-external ; Send unknown SIP callers to this context 19 callerid = Unknown 20 tos=0x68 21 22 ; Reported as required for Asterisk 1.4 23 notifyringing=yes 24 notifyhold=yes 25 limitonpeers=yes 26 5 ; 27 6 ; enable and force the sip jitterbuffer. If these settings are desired 28 7 ; they should be set in the sip_general_custom.conf file as this file … … 32 11 ; jbforce=yes 33 12 34 ; #, in this configuration file, is NOT A COMMENT. This is exactly 35 ; how it should be. 13 ; These will all be included in the [general] context 14 ; 15 #include sip_general_additional.conf 36 16 #include sip_general_custom.conf 37 17 #include sip_nat.conf 38 18 #include sip_registrations_custom.conf 39 19 #include sip_registrations.conf 20 21 ; These should all be expected to come after the [general] context 22 ; 40 23 #include sip_custom.conf 41 24 #include sip_additional.conf modules/branches/2.4/core/functions.inc.php
r5386 r5450 15 15 $files[] = 'sip_general_additional.conf'; 16 16 } 17 if (isset($this->_iax_general) && is_array($this->_iax_general)) { 18 $files[] = 'iax_general_additional.conf'; 19 } 17 20 return $files; 18 21 } … … 32 35 return $this->generate_sip_registrations($version); 33 36 break; 37 case 'iax_general_additional.conf': 38 return $this->generate_iax_general_additional($version); 39 break; 34 40 case 'iax_additional.conf': 35 41 return $this->generate_iax_additional($version); … … 45 51 46 52 function addSipGeneral($key, $value) { 47 $this->_sip_general[ $key] = $value;53 $this->_sip_general[] = array('key' => $key, 'value' => $value); 48 54 } 49 55 … … 52 58 53 59 if (isset($this->_sip_general) && is_array($this->_sip_general)) { 54 foreach ($this->_sip_general as $key => $value) { 55 $output .= "$key=$value\n"; 60 foreach ($this->_sip_general as $values) { 61 $output .= $values['key']."=".$values['value']."\n"; 62 } 63 } 64 return $output; 65 } 66 67 function addIaxGeneral($key, $value) { 68 $this->_iax_general[] = array('key' => $key, 'value' => $value); 69 } 70 71 function generate_iax_general_additional($ast_version) { 72 $output = ''; 73 74 if (isset($this->_iax_general) && is_array($this->_iax_general)) { 75 foreach ($this->_iax_general as $values) { 76 $output .= $values['key']."=".$values['value']."\n"; 56 77 } 57 78 } … … 403 424 global $version; // this is not the best way to pass this, this should be passetd together with $engine 404 425 global $amp_conf; 426 global $core_conf; 405 427 406 428 $modulename = "core"; … … 408 430 switch($engine) { 409 431 case "asterisk": 432 433 // Now add to sip_general_addtional.conf 434 // 435 if (isset($core_conf) && is_a($core_conf, "core_conf")) { 436 $core_conf->addSipGeneral('bindport','5060'); 437 $core_conf->addSipGeneral('bindaddr','0.0.0.0'); 438 $core_conf->addSipGeneral('disallow','all'); 439 $core_conf->addSipGeneral('allow','ulaw'); 440 $core_conf->addSipGeneral('allow','alaw'); 441 $core_conf->addSipGeneral('context','from-sip-external'); 442 $core_conf->addSipGeneral('callerid','Unknown'); 443 $core_conf->addSipGeneral('tos','0x68'); // This really doesn't do anything with astersk not running as root 444 $core_conf->addSipGeneral('notifyringing','yes'); 445 if (version_compare($ast_version, "1.4", "ge")) { 446 $core_conf->addSipGeneral('notifyhold','yes'); 447 $core_conf->addSipGeneral('limitonpeers','yes'); 448 } 449 $core_conf->addIaxGeneral('bindport','4569'); 450 $core_conf->addIaxGeneral('bindaddr','0.0.0.0'); 451 $core_conf->addIaxGeneral('disallow','all'); 452 $core_conf->addIaxGeneral('allow','ulaw'); 453 $core_conf->addIaxGeneral('allow','alaw'); 454 $core_conf->addIaxGeneral('allow','gsm'); 455 $core_conf->addIaxGeneral('mailboxdetail','yes'); 456 } 457 410 458 // FeatureCodes 411 459 $fcc = new featurecode($modulename, 'userlogon'); modules/branches/2.4/core/module.xml
r5447 r5450 4 4 <category>Basic</category> 5 5 <name>Core</name> 6 <version>2.4.0beta1. 0</version>6 <version>2.4.0beta1.1</version> 7 7 <candisable>no</candisable> 8 8 <canuninstall>no</canuninstall> 9 9 <changelog> 10 *2.4.0beta1.1* moved all sip.conf and iax.conf settings into _general_additional.conf files for auto-generation 10 11 *2.4.0beta1.0* addition of zapchandids page and removal of Channel in inbound routes, Extension/Destination Registry support, Adhoc Device 11 12 and login/out improvments. Added ringing to Terminate Call Destinations, #2493, #1974, #2470, #1697, #2357, #2393 pinless dialing
