[Asterisk-Users] Removing "-" (Dash) from Dialed Numbers

Ron Wellsted ron at wellsted.org.uk
Fri Sep 23 12:34:17 MST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Scott Miller wrote:
> I am trying to enable dial-by-email by using LDAPget to query an Active
> Directory server.  I?ve got it retrieving the phone number fine. 
> Unforunately, the numbers stored in active directory are either in the
> format:  (xxx) xxx-xxxx or xxx-xxx-xxxx.   Is there any way to parse
> characters out of the dialed phone number so that I only end up with
> digits (remove spaces, parenthesis and dashes)?   From there, my
> outbound routes can take care of where to send the call.
> 
>  
> 
> Help is always appreciated! J 
> 
>  
> 
> Thank you,
> 
> Scott Miller

How about the Cut application (depreciated)

<http://www.voip-info.org/tiki-index.php?page=Asterisk+cmd+cut>

or the CUT function

<http://www.voip-info.org/tiki-index.php?page=Asterisk+func+cut>

depending on which version you are running?

- --
Ron Wellsted
http://www.wellsted.org.uk
ron at wellsted.org.uk
FWD:519961
N 52.567623, W 2.137621
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iQEVAwUBQzRYuUtP/KMNOfRbAQJOLAf/XkvLC/YvvfQDv4KgRiouXSUvjxSQwi5J
C1HdKL5BNW1rsUnyxvqP5etQ3XyK0Xj3Vf4slqqXzI3TZzMITwQw9jQA2qroqagO
3DR5Dbao100IZhCq4MYEJIvmZYcd0PR5cd4s7acIwfwoA0OYeV9JMs7hQWMu/yOy
PmGM2DQe21AT417uyIZ3rKWZfCkuAPL36q1p/rVfHpwVOzPj2PjjDB/gb6H+o/BK
jiWhPTOpkDaKx2SeImF3T1vGjRJLEyVQRK63EmAUAzLnImqU011T0vQeeCVRTjND
3/sOwSVSKVH1t+bwZ5COvf3XHwWz1K6zitX67iAZQTN2gjZfzNNM5g==
=/vq+
-----END PGP SIGNATURE-----



More information about the asterisk-users mailing list