<div>Hi, Kaloyan.</div>
<div>&nbsp;</div>
<div>I tried to use non-curl version and test it as your tips and the How2Test.1.5-56340.doc.</div>
<div>But I got error messages on console, it seems never&nbsp;check the URL periodically(I can only find one). &nbsp;In fact, it didn&#39;t check the URL during my test. What&#39;s wrong in my configuration file?</div>
<div>I can make sure the URL is correct ( I test it using IE (InterNet&nbsp;Explorer)).</div>
<div>&nbsp;</div>
<div>Can you please give me more tips?</div>
<div>&nbsp;</div>
<div>Thank you.</div>
<div>&nbsp;</div>
<div>Error Messages:</div>
<div>&nbsp;&nbsp;&nbsp; -- Limit Data for this call:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; timelimit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 30000<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; recheck each&nbsp;&nbsp; = 5000<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; recheck app&nbsp;&nbsp;&nbsp; = {CURL(<a href="http://127.0.0.1/test.php?app=rtcc&amp;accountcode=&amp;dst=&amp;channelid=&amp;seqnum=1">http://127.0.0.1/test.php?app=rtcc&amp;accountcode=&amp;dst=&amp;channelid=&amp;seqnum=1</a>)}<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; recheck delay&nbsp; = 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; play_warning&nbsp;&nbsp; = 10000<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; play_to_caller = yes<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; play_to_callee = no<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; warning_freq&nbsp;&nbsp; = 0<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; start_sound&nbsp;&nbsp;&nbsp; = (null)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; warning_sound&nbsp; = timeleft<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; end_sound&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = (null)<br>&nbsp;&nbsp;&nbsp; -- Called <a href="mailto:AnswerAndWait@default">AnswerAndWait@default</a><br>&nbsp;&nbsp;&nbsp; -- Executing [AnswerAndWait@default:1] Wait(&quot;<a href="mailto:Local/AnswerAndWait@ppcall-intercom-70ef,2">Local/AnswerAndWait@<u><font color="#0000ff">default</font></u>-70ef,2</a>&quot;, &quot;10&quot;) in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing [AnswerAndWait@ppcall-intercom:2] Answer(&quot;<a href="mailto:Local/AnswerAndWait@ppcall-intercom-70ef,2">Local/AnswerAndWait@<u><font color="#0000ff">default</font></u>-70ef,2</a>&quot;, &quot;&quot;) in new stack<br>
&nbsp;&nbsp;&nbsp; -- Executing [AnswerAndWait@ppcall-intercom:3] Wait(&quot;<a href="mailto:Local/AnswerAndWait@ppcall-intercom-70ef,2">Local/AnswerAndWait@<u><font color="#0000ff">default</font></u>-70ef,2</a>&quot;, &quot;10&quot;) in new stack<br>
&nbsp;&nbsp;&nbsp; -- <a href="mailto:Local/AnswerAndWait@ppcall-intercom-70ef,1">Local/AnswerAndWait@<u><font color="#0000ff">default</font></u>-70ef,1</a> answered SIP/2922-1<br>[Mar 31 15:55:43] WARNING[6269]: app_dial.c:864 ast_call_governor: Could not find application ({CURL(<a href="http://127.0.0.1/test.php?app=rtcc&amp;accountcode=&amp;dst=&amp;channelid=&amp;seqnum=1">http://127.0.0.1/test.php?app=rtcc&amp;accountcode=&amp;dst=&amp;channelid=&amp;seqnum=1</a>)}). Timelimit not checked for call (1206950127.3)<br>
[Mar 31 15:55:48] WARNING[6269]: app_dial.c:864 ast_call_governor: Could not find application ({CURL(<a href="http://127.0.0.1/test.php?app=rtcc&amp;accountcode=&amp;dst=&amp;channelid=&amp;seqnum=1">http://127.0.0.1/test.php?app=rtcc&amp;accountcode=&amp;dst=&amp;channelid=&amp;seqnum=1</a>)}). Timelimit not checked for call (1206950127.3)</div>

<div>&nbsp;</div>
<div>&nbsp;</div>
<div>My extensions.conf :</div>
<div>&nbsp;</div>
<div>[globals]</div>
<div>LIMIT_RECHECK_INTERVAL=5000</div>
<div>
<p>LIMIT_RECHECK_APP=$<br>LIMIT_RECHECK_APP=${LIMIT_RECHECK_APP}{CURL(<a href="http://127.0.0.1/test.php">http://127.0.0.1/test.php</a>?<br>LIMIT_RECHECK_APP=${LIMIT_RECHECK_APP}app=rtcc&amp;accountcode=$<br>LIMIT_RECHECK_APP=${LIMIT_RECHECK_APP}{ACCOUNTCODE}&amp;dst=$<br>
LIMIT_RECHECK_APP=${LIMIT_RECHECK_APP}{EXTEN}&amp;channelid=$<br>LIMIT_RECHECK_APP=${LIMIT_RECHECK_APP}{UNIQUEID}&amp;seqnum=1)}</p>
<p>[default]</p>
<p>exten =&gt; AnswerAndWait,1,Wait(10)<br>exten =&gt; AnswerAndWait,2,Answer()<br>exten =&gt; AnswerAndWait,3,Wait(10)<br>exten =&gt; AnswerAndWait,4,Goto(3)</p>
<p>exten =&gt; _X.,1,Set(TimeLimit=30000)&nbsp;&nbsp;&nbsp;&nbsp; ;; 30 sec<br>exten =&gt; _X.,n,Set(RTCC_INTERVAL=10000)&nbsp;&nbsp;&nbsp; ;; 10 sec<br>exten =&gt; _X.,n,Dial(<a href="mailto:Local/AnswerAndWait@default,,L(${TimeLimit}:${RTCC_INTERVAL">Local/AnswerAndWait@default,,L(${TimeLimit}:${RTCC_INTERVAL</a>}))<br>
exten =&gt; _X.,n,Hangup</p>
<p>&nbsp;</p>
<p>&nbsp;</p></div>
<div>&nbsp;</div>
<div>[Mar 31 15:43:57] WARNING[6125]: app_dial.c:864 ast_call_governor: Could not find application (${CURL(<a href="http://127.0.0.1/test.php?app=rtcc&amp;accountcode=${ACCOUNTCODE}&amp;dst=${EXTEN}&amp;channelid=${UNIQUEID}&amp;seqnum=1)}{CURL(http://127.0.0.1/test.php?app=rtcc&amp;accountcode=&amp;dst=&amp;channelid=&amp;seqnum=1">http://127.0.0.1/test.php?app=rtcc&amp;accountcode=${ACCOUNTCODE}&amp;dst=${EXTEN}&amp;channelid=${UNIQUEID}&amp;seqnum=1)}{CURL(http://127.0.0.1/test.php?app=rtcc&amp;accountcode=&amp;dst=&amp;channelid=&amp;seqnum=1</a>)}). Timelimit not checked for call (1206949422.10)<br>
[Mar 31 15:44:02] WARNING[6125]: app_dial.c:864 ast_call_governor: Could not find application (${CURL(<a href="http://127.0.0.1/test.php?app=rtcc&amp;accountcode=${ACCOUNTCODE}&amp;dst=${EXTEN}&amp;channelid=${UNIQUEID}&amp;seqnum=1)}{CURL(http://127.0.0.1/test.php?app=rtcc&amp;accountcode=&amp;dst=&amp;channelid=&amp;seqnum=1">http://127.0.0.1/test.php?app=rtcc&amp;accountcode=${ACCOUNTCODE}&amp;dst=${EXTEN}&amp;channelid=${UNIQUEID}&amp;seqnum=1)}{CURL(http://127.0.0.1/test.php?app=rtcc&amp;accountcode=&amp;dst=&amp;channelid=&amp;seqnum=1</a>)}). Timelimit not checked for call (1206949422.10)</div>

<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">2008/3/28, Grey Man &lt;<a href="mailto:greymanvoip@gmail.com">greymanvoip@gmail.com</a>&gt;:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Thu, Mar 27, 2008 at 10:10 AM, Charles Wang &lt;<a href="mailto:lazy.charles@gmail.com">lazy.charles@gmail.com</a>&gt; wrote:<br>
&gt; Hi all,<br>&gt;<br>&gt; I tried to using rtcc-curl-1.4.13.patch in bug id 6335<br>&gt; <a href="http://bugs.digium.com/view.php?id=6335">http://bugs.digium.com/view.php?id=6335</a> reported by KNK. I patch it to<br>&gt; asterisk <a href="http://1.4.18.1">1.4.18.1</a> and it seems work.<br>
&gt;<br>&gt; My extensions.conf lists below:<br>&gt;<br>&gt; exten =&gt;<br>&gt; _X.,1,Set(TimeLimit=${CURL(<a href="http://127.0.0.1/test.php?app=rtcc&amp;accountcode=${ACCOUNTCODE}&amp;dst=${EXTEN}&amp;channelid=${UNIQUEID}&amp;seqnum=1)}">http://127.0.0.1/test.php?app=rtcc&amp;accountcode=${ACCOUNTCODE}&amp;dst=${EXTEN}&amp;channelid=${UNIQUEID}&amp;seqnum=1)}</a>)<br>
&gt;&nbsp;&nbsp;exten =&gt; _X.,n,Set(TimeLimit=${MATH(${TimeLimit}+5,int)})<br>&gt; exten =&gt; _X.,n,Set(TimeLimit=${MATH(${TimeLimit}*1000,int)})<br>&gt; exten =&gt; _X.,n,Set(dst=${EXTEN})<br>&gt; exten =&gt; _X.,n,NoOp(Initial time limit for ${ACCOUNTCODE} and ${EXTEN} set<br>
&gt; at ${TimeLimit})<br>&gt;&nbsp;&nbsp;exten =&gt; _X.,n,Set(RTCC_START_SEQNUM=2)<br>&gt; exten =&gt; _X.,n,Set(RTCC_INTERVAL=60000)<br>&gt; exten =&gt; _X.,n,Dial(SIP/1025,,L(${TimeLimit}:::<a href="http://127.0.0.1/test.php)">http://127.0.0.1/test.php)</a>)<br>
&gt; exten =&gt; _X.,n,Hangup<br>&gt;<br>&gt; My URL test.php always reponses interger 120. It is pure text format without<br>&gt; any symbol before/after it.<br>&gt;<br>&gt; My test.php: ( one row only )<br>&gt; 120<br>&gt;<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; -- Accepting AUTHENTICATED call from XXX.XXX.XXX.XXX:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; requested format = ilbc,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; requested prefs = (),<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; actual format = ilbc,<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; host prefs = (ilbc),<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; priority = mine<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- Executing [_X.@default:1] Set(&quot;SIP/2922-10&quot;, &quot;TimeLimit=120&quot;) in new<br>&gt; stack<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [_X.@default:2] Set(&quot;SIP/2922-10&quot;, &quot;TimeLimit=125&quot;) in new<br>
&gt; stack<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [_X.@default:3] Set(&quot;SIP/2922-10&quot;, &quot;TimeLimit=125000&quot;) in<br>&gt; new stack<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- Executing [_X.@default:4] Set(&quot;SIP/2922-10&quot;, &quot;dst=295&quot;) in new stack<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [_X.@default:5] NoOp(&quot;SIP/2922-10&quot;, &quot;Initial time limit for<br>&gt; and 295 set at 45000&quot;) in new stack<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- Executing [_X.@default:6] Set(&quot;SIP/2922-10&quot;, &quot;RTCC_START_SEQNUM=2&quot;)<br>
&gt; in new stack<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; -- Executing [_X.@default:7] Set(&quot;SIP/2922-10&quot;, &quot;RTCC_INTERVAL=60000&quot;)<br>&gt; in new stack<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-- Executing [_X.@default:8] Dial(&quot;SIP/2922-10&quot;,<br>&gt; &quot;SIP/1025||L(125000::<a href="http://127.0.0.1/test.php)">http://127.0.0.1/test.php)</a>&quot;) in new stack<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp; -- Limit Data for this call:<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; timelimit&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= 125000<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; play_warning&nbsp;&nbsp; = 0<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; play_to_caller = yes<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; play_to_callee = no<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; warning_freq&nbsp;&nbsp; = 0<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; rtcc url&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = //127.0.0.1/test.php<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; rtcc interval&nbsp;&nbsp;= 60000<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &gt; rtcc exp intvl = 0<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; rtcc seqnum&nbsp;&nbsp;&nbsp;&nbsp; = 2<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; start_sound&nbsp;&nbsp;&nbsp;&nbsp;= (null)<br>
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; warning_sound&nbsp;&nbsp;= timeleft<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt; end_sound&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;= (null)<br>&gt;<br>&gt; During the period, I trace the /var/log/httpd/access_log. I can&#39;t find any<br>&gt; request to test.php. Should it be visited each 6 sec ?<br>
<br>You&#39;ve got the interval set at 60s. If you want the rtcc call to be<br>made every 6s change to:<br><br>exten =&gt; _X.,n,Set(RTCC_INTERVAL=6000)<br><br>&gt; (Only this line)<br>&gt; <a href="http://127.0.0.1">127.0.0.1</a> - - [27/Mar/2008:17:51:54 +0800] &quot;GET<br>
&gt; /test.php?app=rtcc&amp;accountcode=&amp;dst=295&amp;channelid=1206611514.2&amp;seqnum=1<br>&gt; HTTP/1.1&quot; 200 3 &quot;-&quot; &quot;asterisk-libcurl-agent/1.0&quot;<br>&gt;<br>&gt; Then, I tried to reduce the integer number 120 to 80. I wish it can be hunup<br>
&gt; when 80 seconds reached. But the answer was NO. It made my asterisk crashed.<br>&gt; I got this message in debug mode.<br>&gt;<br>&gt; [Mar 27 17:52:58] DEBUG[32053]: app_dial.c:877 rtcccallback: call control<br>&gt; accountcode=2922, dst=295.<br>
&gt; asterisk: symbol lookup error: /usr/lib/asterisk/modules/app_dial.so:<br>&gt; undefined symbol: curl_easy_init<br>&gt;<br>&gt; Can anyone kindly give me any idea?<br><br>It&#39;s bad if the patch crashed Asterisk. The latest patch I did was for<br>
1.14.17 and it should have a better chance of working properly. I&#39;ve<br>attached the 1.4.17 patch since I can&#39;t upload files to the bug<br>tracker anymore since it was decided by someone somewhere that rtcc is<br>
of no interest to Asterisk users even though it&#39;s regularly requested<br>and there are two patch options available.<br><br>Regards,<br><br>Greyman.<br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--">http://www.api-digital.com--</a><br>
<br>asterisk-dev mailing list<br>To UNSUBSCRIBE or update options visit:<br>&nbsp;&nbsp;<a href="http://lists.digium.com/mailman/listinfo/asterisk-dev">http://lists.digium.com/mailman/listinfo/asterisk-dev</a><br><br></blockquote></div>
<br><br clear="all"><br>-- <br><br>Best Regards<br>Charles