<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Remember the dialplan is NOT executed when its parsed so you can't set a var then condition on that exact var on the next line.. that var doesn't exist.</div><div><br></div><div>/b</div><div><br></div><br><div><div>On Mar 27, 2009, at 11:25 AM, Peter P GMX wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">&nbsp;&nbsp;&nbsp;&lt;extension name="Any"&gt; &lt;!-- Set the variables --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;condition field="destination_number" expression="^[0-9]\d[0,16}$"<br>continue="true"&gt;.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="destination_number=0049xxxxxxxxx"/&gt;.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="export"<br>data="destination_number=0049xxxxxxxxx"/&gt;.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="info"/&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;condition field="${variable_destination_number}"<br></span></blockquote><div><br></div><div>Its ${destination_number}</div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">expression="^(00[1-9]\d{4,13})$"&gt; &lt;!-- Now parse the new variables --&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set"<br>data="effective_caller_id_number=unknown"/&gt;.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="set" data="effective_caller_id_name=unknown"/&gt;.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;action application="bridge"<br>data="<a href="mailto:sofia/gateway/QSC_DE/$1@sip.qsc.de">sofia/gateway/QSC_DE/$1@sip.qsc.de</a>"/&gt;.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/condition&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;condition ............&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.<br>&nbsp;&nbsp;&nbsp;&lt;/extension&gt;<br></span></blockquote></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Brian West</div><div><a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a></div><div><br></div></div></span>-- Meet us a ClueCon! &nbsp;<a href="http://www.cluecon.com/">http://www.cluecon.com</a><br><div><br></div></div></span><br class="Apple-interchange-newline"> </div><br></body></html>