I have a script that will do just that, and it's pretty simple, it's written in ruby :).<br><br><a href="http://fisheye.freeswitch.org/browse/FreeSWITCH/contrib/diegoviola/ruby/callcard/cdr.rb">http://fisheye.freeswitch.org/browse/FreeSWITCH/contrib/diegoviola/ruby/callcard/cdr.rb</a><br>
<br>Best regards,<br><br>Diego<br><br><div class="gmail_quote">On Tue, Sep 8, 2009 at 12:18 AM, Michael S Collins <span dir="ltr"><<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I get the feeling that you are trying to use the wrong tool for the<br>
job. If you need to launch a script after the call ends AND you need<br>
access to the CSV file then you either should switch to XML CDR or<br>
just write a Perl script that runs as a daemon that sits and waits for<br>
CSV files to appear and process them accordingly. Don't use<br>
api_hang_hook when you need to post process calls and work with CDR<br>
data.<br>
<br>
-MC<br>
<br>
Sent from my iPhone<br>
<div><div></div><div class="h5"><br>
On Sep 7, 2009, at 4:47 AM, NOx-WHV <<a href="mailto:enno.egbert@googlemail.com">enno.egbert@googlemail.com</a>> wrote:<br>
<br>
><br>
> I just see, that i have a second problem.<br>
><br>
> If I have a call and this call is without any response on the called<br>
> side,<br>
> the FS doesn´t call the script.<br>
><br>
><br>
><br>
><br>
><br>
> NOx-WHV wrote:<br>
>><br>
>> Thanks for help!<br>
>><br>
>> I works, but now i have a new problem. The script works with the<br>
>> csv file<br>
>> from /FS/log/cdr-csv/XXX.csv.<br>
>><br>
>> The problem is that the action application first starts and then<br>
>> the FS<br>
>> write the entry in the csv file.<br>
>><br>
>> Does anybody have a tipp, how to call the script after writing the<br>
>> csv<br>
>> file?<br>
>><br>
>> Thanks<br>
>><br>
>> NOx<br>
>><br>
>><br>
>><br>
>> mercutioviz wrote:<br>
>>><br>
>>><br>
>>><br>
>>> Sent from my iPhone<br>
>>><br>
>>> On Sep 3, 2009, at 6:08 AM, NOx-WHV <<a href="mailto:enno.egbert@googlemail.com">enno.egbert@googlemail.com</a>><br>
>>> wrote:<br>
>>><br>
>>>><br>
>>>> Hi,<br>
>>>><br>
>>>> does anybody have a tip how to start a batchfile after hanging up.<br>
>>>><br>
>>>> After ext. 1000 calls 1001 and hang up, i need a request to call:<br>
>>>><br>
>>>> /../../FS/batchfile 1000<br>
>>>><br>
>>>> if 1001 calls 1000 i need:<br>
>>>><br>
>>>> /../../FS/batchfile 1001<br>
>>>><br>
>>>> and so on...<br>
>>>><br>
>>> Try something like this in your Dialplan:<br>
>>><br>
>>> <action application="set" data="api_hangup_hook=system batchfile $<br>
>>> {sip_from_user}"/><br>
>>><br>
>>> -MC<br>
>>>><br>
>>>> Thanks for help<br>
>>>> --<br>
>>>> View this message in context:<br>
>>>> <a href="http://www.nabble.com/select-batchfile-after-call-tp25275633p25275633.html" target="_blank">http://www.nabble.com/select-batchfile-after-call-tp25275633p25275633.html</a><br>
>>>> Sent from the Freeswitch-users mailing list archive at Nabble.com.<br>
>>>><br>
>>>><br>
>>>> _______________________________________________<br>
>>>> FreeSWITCH-users mailing list<br>
>>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>><br>
>>> _______________________________________________<br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>>><br>
>>><br>
>><br>
>><br>
><br>
> --<br>
> View this message in context: <a href="http://www.nabble.com/select-batchfile-after-call-tp25275633p25329259.html" target="_blank">http://www.nabble.com/select-batchfile-after-call-tp25275633p25329259.html</a><br>
> Sent from the Freeswitch-users mailing list archive at Nabble.com.<br>
><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>