Use Obi call recording function as portable voice recorder? [solved]

<< < (3/3)

unvalidUser:

Finally got mine working. Only slightly different than azrobert's...
Mine simply starts recording immediately .. no prompts, no beeps .. and when done, just hang up.

Code:

<?php
//
// Record for up to 4 hours, hang-up to terminate
// Transfer recorded audio file to FTP destination
//
date_default_timezone_set('America/Chicago');
$dateTime = date("YmdHis");
$maxSessSecs = 14400;
record("",
       array ("maxTime" => $maxSessSecs,
              "beep" => false,
              // wav format produces <1mb per minute so 4 hours = <240mb
              // "recordFormat" => "audio/wav",
              "recordURI" => "ftp://ftp.tropo.com/recordings/$dateTime.wav",
              "recordUser" => "my_tropo_username",
              "recordPassword" => "my_tropo_password",
              // Tropo will hang-up if silence for 5 seconds (default) so set to max
              "silenceTimeout" => $maxSessSecs,
              "terminator" => "#" // optional; can just hang-up
             )
      );
?>



azrobert, thanks for the help. Finally got through to Tropo support directly and they helped fix my problem quick (there were a couple offending characters in my password causing problems).

Zopa:
I'm trying to replicate this and I'm getting stumbled on something basic. Creating application on Tropo is easy, but I don't the whole flow conceptually, maybe because I have a bit more complex setup.

How it is supposed to work? You setup a speed dial as let's say "9" -- sp2(9991234567@sip.tropo.com), for the tropo app using let's say the code above, then to record a call, you simply conference in this app via "9" speed-dial, before you place a call you want to record (or conference in Tropo during a call in progress)? This part is lost on me a bit.

Now here is my setup. I am in US. I have Obi202, with:

SP1 - GV for outbound domestic calls
SP2 - CallCentric for inbound calls via GV to use their free CNUM lookup
SP3 - CallWithUS for international calls
SP4 - Proxy for my Panasonic KX-TGP550T04 SIP phone

If someone can guide me for how to properly set this up, it would be highly appreciated. The ideal setup would be to have another SIP ID to bound one on of the lines on the phone, which would automatically setup a conf call to Tropo prior to connecting the call. This way I could place regular calls as I do right now and have an option to record them if I wish. (If I'm not mistaken I need more an SP for each SIP ID, so I may need to setup another Obi202, unless there is a way to use the same ID)

I apologies if my questions are too basic and thank everyone in advance.

azrobert:
You can call my Tropo app using a speed dial. At this point you can test the app by recording your own voice. Now hit Flash to put the app on hold and then call someone. Hit flash again to conference in the app. You can reverse the process by calling someone first and put them on hold then call the app.

I don't understand what you're trying to do. I've played with Tropo on and off for several years, but I'm far from an expert, so if you want to do something complex I might not be able to help.

wpsb:
Can I use Tropo on my OBIHAI phone to make local US# calls?

Ie, can I set up one of my SP numbers to make outgoing US# calls?

Navigation

[0] Message Index

[*] Previous page