<div dir="ltr"><div>Hello guys,</div><div><br></div><div>I've got this in my dialplan:</div><div><br></div><div><span class="" style="white-space:pre">                </span><action application="set" data="rand_val=${expr randomize(&x);ceil(random(0,100,&x))}"/></div>
<div><span class="" style="white-space:pre">                </span><action application="log" data="INFO Random dialplan ${expr randomize(&x);ceil(random(0,100,&x))}"/></div><div><span class="" style="white-space:pre">                </span><action application="log" data="INFO Random value is ${rand_val}"/></div>
<div><br></div><div>and this is what i see in my cli:</div><div><br></div><div>Dialplan: sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> Regex (PASS) [respond] destination_number(1234) =~ /^.*/ break=on-false</div>
<div>Dialplan: sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> Action set(rand_val=${expr randomize(&x);ceil(random(0,100,&x))}) </div><div>Dialplan: sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> Action log(INFO Random dialplan ${expr randomize(&x);ceil(random(0,100,&x))}) </div>
<div>Dialplan: sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> Action log(INFO Random value is ${rand_val}) </div><div>2013-08-29 16:40:48.834592 [DEBUG] switch_core_state_machine.c:167 (sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>) State Change CS_ROUTING -> CS_EXECUTE</div>
<div>2013-08-29 16:40:48.834592 [DEBUG] switch_core_session.c:1341 Send signal sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> [BREAK]</div><div>2013-08-29 16:40:48.834592 [DEBUG] switch_core_state_machine.c:471 (sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>) State ROUTING going to sleep</div>
<div>2013-08-29 16:40:48.834592 [DEBUG] switch_core_state_machine.c:416 (sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>) Running State Change CS_EXECUTE</div><div>2013-08-29 16:40:48.834592 [DEBUG] switch_core_state_machine.c:478 (sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a>) State EXECUTE</div>
<div>2013-08-29 16:40:48.834592 [DEBUG] mod_sofia.c:230 sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> SOFIA EXECUTE</div><div>2013-08-29 16:40:48.834592 [DEBUG] switch_core_state_machine.c:209 sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> Standard EXECUTE</div>
<div>EXECUTE sofia/external/<a href="mailto:12345@1.2.3.4">12345@1.2.3.4</a> log(INFO ASR 40 we got )</div><div>2013-08-29 16:40:48.854572 [INFO] mod_dptools.c:1567 ASR 40 we got </div><div><br></div><div><br></div><div>
Why is the "${rand_val}" not being parsed?</div>
<div><br></div><div>Thanks,</div><div><br></div><div>David</div><div><br></div></div>