<condition field="destination_number" expression="^(\+\d{3,20})$">
<action application="export" data="dialed_extension=$1"/>
</condition>
<condition field="destination_number" expression="^00(\d{3,20})$">
<action application="export" data="dialed_extension=+$1"/>
</condition>
<condition field="destination_number" expression="^(\d{3,20})$">
<action application="export" data="dialed_extension=${country_code}$1"/>
</condition>
I would like to change 00 to +, and if no + is on the number then use country_code from the user. If it does contain a +, then just use the dialled number.