<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Koen,<br>
<br>
Try:<br>
exten => s,n,NoOp(CUT(${v},${sep},1))<br>
<br>
Cheers<br>
<br>
<br>
Koen Van Impe wrote:
<blockquote
cite="mid2dce5e710611300041m662c83eax2cc16450a586c40f@mail.gmail.com"
type="cite">
<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>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a>
</pre>
</blockquote>
</body>
</html>