convert_alpha_characters_in_number
Converts all alpha characters in a number to their respective digits on a keypad, but retains existing formatting.
This action does not use any parameters.
Consider the following dialplan fragments:
<action application="phonenumber" data="convert_alpha_characters_in_number caller"/>
will set the phonenumber_caller_alpha_characters_in_number
channel variable to the resulting value.
<action application="phonenumber" data="convert_alpha_characters_in_number destination"/>
will set the phonenumber_destination_alpha_characters_in_number
channel variable to the resulting value.
<action application="phonenumber" data="convert_alpha_characters_in_number all"/>
will set both the phonenumber_caller_alpha_characters_in_number
and the phonenumber_destination_alpha_characters_in_number
channel variables to the resulting value.
<action application="phonenumber" data="convert_alpha_characters_in_number ${variable}"/>
will set the phonenumber_number_alpha_characters_in_number
channel variable to the resulting value.
freeswitch@test> phonenumber convert_alpha_characters_in_number +1800MICROSOFT
+1800642767638
freeswitch@test> phonenumber convert_alpha_characters_in_number '(800) FLOWERS'
(800) 3569377
Consider the following hook definitions:
<hook>
<param name="scope" value="caller"/>
<param name="actions" value="convert_alpha_characters_in_number"/>
</hook>
will set the phonenumber_caller_alpha_characters_in_number
channel variable to the resulting value.
<hook>
<param name="scope" value="destination"/>
<param name="actions" value="convert_alpha_characters_in_number"/>
</hook>
will set the phonenumber_destination_alpha_characters_in_number
channel variable to the resulting value.
<hook>
<param name="scope" value="all"/>
<param name="actions" value="convert_alpha_characters_in_number"/>
</hook>
will set both the phonenumber_caller_alpha_characters_in_number
and the phonenumber_destination_alpha_characters_in_number
channel variables to the resulting value.