jmb

dial such number from spark, e.g "031 123 45 67", "+41 31 123 45 67"

Discussion created by jmb on May 10, 2006
Latest reply on May 25, 2006 by andrew

Hello,

 

At the moment, spark is not able to dial numbers containing spaces or a leadind +. I tried to patch AsteriskPhoneManager.java, but it does not work

 

--- AsteriskPhoneManager.java.old       2006-05-08 23:40:13.000000000 +0200

+++ AsteriskPhoneManager.java   2006-05-09 22:50:20.000000000 +0200

@@ -152,6 +152,8 @@

             throw new PhoneException("User has not identified a number with himself");

         }

 

+        extension = extension.replaceAll( "
s+", ""   );

+        extension = extension.replaceAll( "^
+" , "00" );

 

         dial(username, extension, target);

     }

 

Any ideas?

 

Greets

 

Jean-Marc

Outcomes