search for: strpart3

Displaying 2 results from an estimated 2 matches for "strpart3".

Did you mean: strpart1
2005 Sep 23
3
Removing "-" (Dash) from Dialed Numbers
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)?
2005 Sep 27
1
failed make install on Solaris 10
...d write a diaplan macro for this. If the numbers are in a fixed format (4th character is a -, 7th character is a -, etc), then it's really simple. Something like this: exten => s,1,SetVar(strPart1 = ${myNumber:0:3} exten => s,2,SetVar(strPart2 = ${myNumber:4:3} exten => s,3,SetVar(strPart3 = ${myNumber:7:3} exten => s,4,SetVar(myNumber = $strPart1$strPart2$strPart3 But I'm using quite an old Asterisk, so current syntax might be a little different, but the Wiki suggests this still works. -- Andreas Sikkema bbned NV Van Vollenhovenstraat 3 3016 BE Rott...