bkruse: branch 2.0 r3942 - /branches/2.0/config/js/pbx.js

SVN commits to the Asterisk-GUI project asterisk-gui-commits at lists.digium.com
Mon Oct 6 13:04:26 CDT 2008


Author: bkruse
Date: Mon Oct  6 13:04:25 2008
New Revision: 3942

URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=3942
Log:
Bug report where setting a trunk to dynamic (where
the other Asterisk box will register to it) is not
working properly, as the GUI tries to register
with the host "dynamic". This fixes the issue.
(closes issue #13529)
(patch by bkruse)
(tested by dkerr)

Modified:
    branches/2.0/config/js/pbx.js

Modified: branches/2.0/config/js/pbx.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/pbx.js?view=diff&rev=3942&r1=3941&r2=3942
==============================================================================
--- branches/2.0/config/js/pbx.js (original)
+++ branches/2.0/config/js/pbx.js Mon Oct  6 13:04:25 2008
@@ -947,7 +947,12 @@
 
 		// add some default values for any SIPTrunk
 		tr.hasiax = 'no' ; tr.registeriax = 'no';
-		tr.hassip = 'yes' ; tr.registersip = 'yes';
+		tr.hassip = 'yes' ;
+		if ( tr.host == "dynamic" ) {
+			tr.registersip = 'no';
+		} else {
+			tr.registersip = 'yes';
+		}
 		tr.trunkstyle ='voip';
 		tr.hasexten = 'no';
 		tr.disallow ='all';




More information about the asterisk-gui-commits mailing list