<div dir="ltr">I would like to check if the called number contains a country code, if not then one should be added.<div>I&#39;ve got a variable in my user&#39;s XML file called country_code containing +44.</div><div><br></div><div>This is my code so far, however, I think the last to conditions overlap:</div><div><br></div><div>







<p class=""><span class="">    </span><span class="">&lt;condition</span><span class=""> field=&quot;destination_number&quot; expression=&quot;^(\+\d{3,20})$&quot;</span><span class="">&gt;</span></p>
<p class=""><span class="">      </span><span class="">&lt;action</span><span class=""> application=&quot;export&quot; data=&quot;dialed_extension=$1&quot;/</span><span class="">&gt;</span></p>
<p class=""><span class="">    </span><span class="">&lt;/condition&gt;</span></p>
<p class=""><span class="">    </span><span class="">&lt;condition</span><span class=""> field=&quot;destination_number&quot; expression=&quot;^00(\d{3,20})$&quot;</span><span class="">&gt;</span></p>
<p class=""><span class="">      </span><span class="">&lt;action</span><span class=""> application=&quot;export&quot; data=&quot;dialed_extension=+$1&quot;/</span><span class="">&gt;</span></p>
<p class=""><span class="">    </span><span class="">&lt;/condition&gt;</span></p>
<p class=""><span class="">    </span><span class="">&lt;condition</span><span class=""> field=&quot;destination_number&quot; expression=&quot;^(\d{3,20})$&quot;</span><span class="">&gt;</span></p>
<p class=""><span class="">      </span><span class="">&lt;action</span><span class=""> application=&quot;export&quot; data=&quot;dialed_extension=${country_code}$1&quot;/</span><span class="">&gt;</span></p>
<p class=""><span class="">    </span><span class="">&lt;/condition&gt;</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">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.</span></p></div></div>