<div>Hi,</div>
<div>&nbsp;</div>
<div>I have the most stupid problem in my dialplan.</div>
<div>I need to do something as trivial as splitting a string, with a semicolon as separator.</div>
<div>I was thinking the 'CUT' function would be perfect for this.</div>
<div>But the problem is the semicolon. In the dialplan it is always understood as a separator for parameters.</div>
<div>&nbsp;</div>
<div>What I have tried so far:</div>
<div>&nbsp;</div>
<div>[macro-eva-on-sip]<br>exten =&gt; s,1,NoOp(${CALLERID(name)})<br>exten =&gt; s,n,NoOp(${CALLERID(num)})<br>exten =&gt; s,n,Set(v=${CALLERID(num)})<br>exten =&gt; s,n,Set(sep=&quot;;&quot;)<br>exten =&gt; s,n,NoOp(${CUT(v,sep,1)})
<br>exten =&gt; s,n,Dial(SIP/evavox/${MACRO_EXTEN})<br>exten =&gt; s,n,Hangup()</div>
<div>&nbsp;</div>
<div>I'm convinced there's a very simple solution to this, but I don't see it.</div>
<div>Anybody?!</div>
<div>&nbsp;</div>
<div>Grtz,</div>
<div>&nbsp;</div>
<div>Koen</div>