git-svn-id: https://svn.code.sf.net/p/freetel/code@991 01035d8c-6547-0410-b346-abe4f9...
authorhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 16 Nov 2012 23:15:40 +0000 (23:15 +0000)
committerhorse69 <horse69@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 16 Nov 2012 23:15:40 +0000 (23:15 +0000)
mini-asterisk-gui2/voiplines.js

index 00b03e3290b3798d873548abd4841271e5d54a6d..aca715130c3f39c2f03d28c1ed53c3e2528e6fc0 100644 (file)
@@ -111,7 +111,8 @@ function loadSipConf(doc,status) {
                        }
                        if (line.indexOf("sipnat-mini-asterisk") != -1) {
                                if (line.indexOf("username") != -1) {
-                                       var s = line.split("\s|=");
+                                       var myregexp = /\s|=/;
+                                       var s = line.split(myregexp);
                                        //var t = s[1].split[' '); 
                                        sipnat_user = s[0]; //  save user1
                                }