<div>Hi</div>
<div> </div>
<div>Can you send any example of this command like</div>
<div> </div>
<div>Set(CALLERID(num)=value)</div>
<div> </div>
<div>Thanks</div>
<div> </div>
<div>Rehan<br><br> </div>
<div><span class="gmail_quote">On 12/28/05, <b class="gmail_sendername">C F</b> <<a href="mailto:shmaltz@gmail.com">shmaltz@gmail.com</a>> 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> <<a href="mailto:turby@seznam.cz">turby@seznam.cz</a>> wrote:<br>> is it possible rewrite CALLERIDNUM in the ZAP channel? I use<br>><br>> [int-transfer]<br>> exten => _00XXXX.,1,SetVar(CALLERIDNUM=${CALLNR})
<br>> exten => _00XXXX.,2,MYSQL(Connect connid localhost webcdr ser91623 cdr)<br>> exten => _00XXXX.,3,MYSQL(Query resultid ${connid} select\<br>> if((floor(u.credit/p.cost))>1\,ceil((u.credit)/p.cost)*60\,0)\ as\
<br>> sekund\ from\ user\ u\,\ sip\ s\,\ pricelist\ p\ where\<br>> u.iduser=s.iduser\ and\ s.idsip=\'${CALLERIDNUM}\'\ and\<br>> p.acode=s.acode\ and\ u.currency=p.currency\ and\<br>> right(left(\'${EXTEN}\'\,CHAR_LENGTH(
p.ccode)+2)\,CHAR_LENGTH(p.ccode))\<br>> like\ concat(p.ccode\,\'%\')\ order\ by\ p.ccode\ desc\ limit\ 1)<br>> exten => _00XXXX.,4,MYSQL(Fetch foundRow ${resultid} sekund) ; fetch row<br>> ..<br>> ..<br>
><br>> without success. At row 3 have var ${CALLERIDNUM} original value,<br>> not value from ${CALLNR}.<br>><br>><br>> --<br>> <a href="mailto:turby@seznam.cz">turby@seznam.cz</a><br>><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>> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>><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> <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>