The
${EXTEN} variable properly has the syntax ${EXTEN:x:y}, where x is the starting position and y is the number of digits to return. Given the following dial string:94169671111
${EXTEN:1:3}would contain416${EXTEN:4:7}would contain9671111${EXTEN:-4:4}would start four digits from the end and return four digits, giving us1111${EXTEN:2:-4}would start two digits in and exclude the last four digits, giving us16967${EXTEN:-6:-4}would start six digits from the end and exclude the last four digits, giving us67${EXTEN:1}would give us everything after the first digit, or4169671111(if the number of digits to return is left blank, it will return the entire remaining string)
No hay comentarios:
Publicar un comentario