<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">put a slash right after the ^ In the expression or you have to feed it a proper regex in that chanvar.<div><br></div><div><br><div><br><div dir="ltr">Sent from my iPhone</div><div dir="ltr"><br><blockquote type="cite">On Sep 14, 2021, at 14:33, David Villasmil <david.villasmil.work@gmail.com> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div dir="ltr">Hello all,<div><br></div><div>I'm trying to compare 2 variables in a condition, something like</div><div><br></div><div><condition field="${sip_from_user}" expression="^${some_other_phone_number}$" inline="true"></div><div><br></div><div>But it looks like FS expands the variable, and does the comparison. The problem with this is, those 2 phone numbers are in e.164, i.e.:<br><br></div><div>sip_from_user = +18885551212</div><div>some_other_phone_number = +18005551212<br></div><div><br></div><div>and so the condition ends up being:</div><div><br></div><div><condition field="+18885551212" expression="^+18005551212$" inline="true"></div><div><br></div><div>which of course won't work....</div><div><br></div><div>Is there any way of escaping the variables automatically when comparing?</div><div>I haven't found a way.</div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Thanks!<br><div><br></div>David Villasmil<div>email: <a href="mailto:david.villasmil.work@gmail.com" target="_blank">david.villasmil.work@gmail.com</a></div><div>phone: +34669448337</div></div></div></div></div></div>
<span>_________________________________________________________________________</span><br><span></span><br><span>The FreeSWITCH project is sponsored by SignalWire https://signalwire.com</span><br><span>Enhance your FreeSWITCH install with disruptive priced SMS and PSTN services.</span><br><span>Build your next product on our scalable cloud platform.</span><br><span></span><br><span>Join our online community to chat in real time https://signalwire.community</span><br><span></span><br><span>Professional FreeSWITCH Services</span><br><span>sales@freeswitch.com</span><br><span>https://freeswitch.com</span><br><span></span><br><span>Official FreeSWITCH Sites</span><br><span>https://freeswitch.com/oss</span><br><span>https://freeswitch.org/confluence</span><br><span>https://cluecon.com</span><br><span></span><br><span>FreeSWITCH-users mailing list</span><br><span>FreeSWITCH-users@lists.freeswitch.org</span><br><span>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</span><br><span>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users</span><br><span>https://freeswitch.com</span></div></blockquote></div></div></body></html>