0xdecafbad.com

Archive for April, 2009

My FT-897

by trixter on Apr.18, 2009, under Yaesu FT-897

Yaesu FT-897 portable radio

My base/mobile radio is a Yaesu FT-897. This is an all mode transceiver covering HF as well as 2m and 70cm. I have the optional batteries so I can go out in the sticks and still have a usable radio.

I also got the remote mic, which lets me control just about every radio function without having to mess with the radio itself, and as a bonus this mic also works as a morse keyer.

Comments Off more...

My VX-8r

by trixter on Apr.18, 2009, under Yaesu VX-8r

Yaesu VX-8r

Yaesu VX-8r

I have a Yaesu VX-8r as my primary handheld. I like this radio, it has a built in TNC for APRS tracking. This radio has wideband receive, and does fairly well receiving shortwave broadcasts (although the VX6r appears to be better).

This radio is a quad band 6m,1.25m,2m,70cm transceiver as well with 2 full VFOs, allowing me to listen to a wide range of things at the same time.

I added the optional bluetooth module and paired it with an Ant headset which works quite well. I also added the optional GPS receiver, making the APRS functionality more meaningful.

Comments Off more...

Welcome

by trixter on Apr.18, 2009, under site specific

I just reinstalled this after a prolonged absence, hopefully I can post relevant information here in the near future.

Comments Off more...

Better XML-CDR processing for FreeSWITCH

by trixter on Apr.18, 2009, under Telephony

As some of you may know I wrote a xml-cdr curl processing class in PHP for FreeSWITCH.  This was required because PHP4 did not have a native XML processor.  PHP5 is old enough that it should be installed everywhere now, and that usually provides a simple xml parsing library.  I like the simplexml stuff in PHP5 better than I do the stuff I wrote, so I will explain how to use it.

<?php

if(isset($_POST['cdr'])) {

$cdr = simplexml_load_string($_POST['cdr']);

// do your validation code here

// This is just an example, you would probably want to store this in a database instead

$fh = fopen(“/tmp/cdr.xml.”.uniqid(), ‘wb’);

fwrite($fh,”Channel created at ” . $cdr->callflow->times->created_time . “\n”);
fwrite($fh, $_POST['cdr'] . “\n\nprint_r\n\n”);
fwrite($fh,print_r($cdr,true).”\n\n”);
fclose($fh);

}
?>

That is all there is to it, much easier to use, although there is a slightly different way to access variables from what I had previously written.  You may notice the $cdr->callflow->times->created_time variable.  How this works is you have an XML file, callflow is a child of the root node, times is a child of callflow and created_time is a child of times.  It is fairly straight forward to process.  If you have multiple entries for example application nodes in the app_log node, you would access it as $cdr->app_log->application[0] and so on.

3 Comments more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...