<div>Hi</div>
<div>&nbsp;</div>
<div>Can you send any example of this command like</div>
<div>&nbsp;</div>
<div>Set(CALLERID(num)=value)</div>
<div>&nbsp;</div>
<div>Thanks</div>
<div>&nbsp;</div>
<div>Rehan<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 12/28/05, <b class="gmail_sendername">C F</b> &lt;<a href="mailto:shmaltz@gmail.com">shmaltz@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">in 1.2 and on (or CVS HEAD) you have to use: Set(CALLERID(num)=value)<br><br>On 12/28/05, <a href="mailto:turby@seznam.cz">
turby@seznam.cz</a> &lt;<a href="mailto:turby@seznam.cz">turby@seznam.cz</a>&gt; wrote:<br>&gt; is it possible rewrite CALLERIDNUM in the ZAP channel? I use<br>&gt;<br>&gt; [int-transfer]<br>&gt;&nbsp;&nbsp;exten =&gt; _00XXXX.,1,SetVar(CALLERIDNUM=${CALLNR})
<br>&gt;&nbsp;&nbsp;exten =&gt; _00XXXX.,2,MYSQL(Connect connid localhost webcdr ser91623 cdr)<br>&gt;&nbsp;&nbsp;exten =&gt; _00XXXX.,3,MYSQL(Query resultid ${connid} select\<br>&gt;&nbsp;&nbsp;if((floor(u.credit/p.cost))&gt;1\,ceil((u.credit)/p.cost)*60\,0)\ as\
<br>&gt;&nbsp;&nbsp;sekund\ from\ user\ u\,\ sip\ s\,\ pricelist\ p\ where\<br>&gt;&nbsp;&nbsp;u.iduser=s.iduser\ and\ s.idsip=\'${CALLERIDNUM}\'\ and\<br>&gt;&nbsp;&nbsp;p.acode=s.acode\ and\ u.currency=p.currency\ and\<br>&gt;&nbsp;&nbsp;right(left(\'${EXTEN}\'\,CHAR_LENGTH(
p.ccode)+2)\,CHAR_LENGTH(p.ccode))\<br>&gt;&nbsp;&nbsp;like\ concat(p.ccode\,\'%\')\ order\ by\ p.ccode\ desc\ limit\ 1)<br>&gt;&nbsp;&nbsp;exten =&gt; _00XXXX.,4,MYSQL(Fetch foundRow ${resultid} sekund) ; fetch row<br>&gt; ..<br>&gt; ..<br>
&gt;<br>&gt; without success. At row 3 have var ${CALLERIDNUM} original value,<br>&gt; not value from ${CALLNR}.<br>&gt;<br>&gt;<br>&gt; --<br>&gt;&nbsp;&nbsp;<a href="mailto:turby@seznam.cz">turby@seznam.cz</a><br>&gt;<br>&gt; _______________________________________________
<br>&gt; --Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br>&gt;<br>&gt; Asterisk-Users mailing list<br>&gt; To UNSUBSCRIBE or update options visit:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>&gt;<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a href="http://Easynews.com">Easynews.com</a> --<br><br>Asterisk-Users mailing list
<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br><br clear="all"><br>
-- <br>Rehan Ahmed AllahWala<br><a href="http://www.SuperTec.com">http://www.SuperTec.com</a> - Tommrow's Technology, Today.<br><a href="http://www.didx.net">http://www.didx.net</a> - DID Number Exchange and Peering Service.
<br>