<div>Hi,</div>
<div> </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> </div>
<div>What I have tried so far:</div>
<div> </div>
<div>[macro-eva-on-sip]<br>exten => s,1,NoOp(${CALLERID(name)})<br>exten => s,n,NoOp(${CALLERID(num)})<br>exten => s,n,Set(v=${CALLERID(num)})<br>exten => s,n,Set(sep=";")<br>exten => s,n,NoOp(${CUT(v,sep,1)})
<br>exten => s,n,Dial(SIP/evavox/${MACRO_EXTEN})<br>exten => s,n,Hangup()</div>
<div> </div>
<div>I'm convinced there's a very simple solution to this, but I don't see it.</div>
<div>Anybody?!</div>
<div> </div>
<div>Grtz,</div>
<div> </div>
<div>Koen</div>