You want to collect 11 or 10 digits and send it out flowroute which requires 1+ number. The 1? makes the one optional. So now we only collect 10 digits and append the on in the bridge line.
<extension name="Long Distance - flowroute">
<condition field="destination_number" expression="^1?(\d{10})$">
<action application="set" data="effective_caller_id_number=10000000000"/>
<!-- If your provider does not provide ringback (180 or 183) you may simulate ringback by uncommenting the following line. -->
<!-- action application="ringback" /-->
<action application="bridge" data="sofia/gateway/flowroute/flowrouteAccount#1$1"/>
</condition>
</extension>
/b
On May 11, 2009, at 5:23 PM, Lars Zeb wrote:
I'm sorry, but do not understand what it is that I should try. Are you
saying to change the data attribute in the action command of the dialplan?