Author Topic: Recordings  (Read 10908 times)

0tt0

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
Recordings
« on: May 08, 2009, 11:05:41 AM »
Hi,

I've tried installing several of the packages I've seen mentioned here and have a question concerning one of them. In the package 'Recordings' from http://www.zrnet.it/askozia/free_packages.html one is supposed to "Call 00003344 to record your message". First when I called that number I got a busy signal, not sure if I shoul've rebooted or something. That number was not part of my dial plan so I don't know how it could be busy. Now after having disabled it I enabled it and tried it again and now it's just quite. Not sure anything picks up, it says "calling.." and it's just quiet.

Can someone verify the functionality of that package and how to use it?

TIA,


zetaerre

  • Full Member
  • ***
  • Posts: 71
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #1 on: May 08, 2009, 05:41:55 PM »

Can someone verify the functionality of that package and how to use it?


Ops, you have found a bug. Sorry.
I'll fix tomorrow.

Thanks.

kimran

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #2 on: May 08, 2009, 05:49:51 PM »
samething happened to me only instead it's a reorder tone,and disabling and re-enabling don't help my case none at all.

zetaerre

  • Full Member
  • ***
  • Posts: 71
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #3 on: May 11, 2009, 12:26:04 AM »
Hi,

I've fixed the Recordings package now version 0.3, the file format is  gsm under
/usr/local/share/asterisk/recordings/

So many requests into this forum could be satisfyed.

Download (link below) and install the application then enable it by clicking on lamp.
Call 00003344 and record you message with your open hours after the beep then hang up.
Under Packages->Recording you should see you file. Rename it as you pleasure.

Now create two applications:

The fiirst:

Extension: #444
Name: Night&Day switch
Logic:
1,Answer()
2,SET(ONOFF=${DB(NIGHTDAY/ONOFF)})
3,GotoIf($[${ONOFF}] = 1)?6)
4,SET(DB(NIGHTDAY/ONOFF)=1)
5,Goto(7)
6,SET(DB(NIGHTDAY/ONOFF)=0)
7,HangUp()

and the second:

Extension: 9999
Name: Close&open
Logic:
1,NoOp(Close&open)
2,Answer()
3,GotoIf($[${ONOFF}] = 1)?7)
4,NoOp(Office closed)
5,Playback(/usr/local/share/asterisk/recordings/rec-0)
6,Hangup()
7,NoOp(Office open)
8,Macro(main|SIP/200&SIP/201&SIP/202|200|200|tTo|20)
9,HangUp()

Ps. Change line 4 with correct file name, and 7 with current ringing group (mine are 200,201 and 202).
if you want that the switch could be permanent even on reboot install astmedia package by Giovanni (search under packages).

Now modify your Incoming Extension(s) into your Accounts->Providers and point to Close&open application.

To switch between Night & Day call #444.

To download:

http://www.zetaerre.net/askozia/recordings_0.3.pbxpkg

Enjoy,
 - Roberto



N.B- Don't cry baby, think, solve, write code, test it & SHARE it!!  ;D
« Last Edit: July 17, 2009, 11:04:45 AM by zetaerre »

0tt0

  • Newbie
  • *
  • Posts: 19
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #4 on: May 11, 2009, 11:31:15 AM »
Nice, thanx. Will try.

Cheers,


kimran

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #5 on: May 12, 2009, 04:45:26 PM »
Hi there sir
I personally think u guys are doing a great job out there.I'd like to extend a special thanks to u guys.This whole askozia PBX has been really interesting.Tell me something though is there anyway that after making a recording,it could be played back to the person to see if it's acceptable before putting it into use?I know we're askng alot from u guys but i guess even the questions throws back ideas at u guys in making the applications better.
thanks.

zetaerre

  • Full Member
  • ***
  • Posts: 71
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #6 on: May 12, 2009, 10:19:05 PM »

I personally think u guys are doing a great job out there

THANKS!! ;D


it could be played back to the person to see if it's acceptable before putting it into use?

That's my mistake. Press # to stop recording and the message will be playbacked.

-Roberto

kimran

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #7 on: May 13, 2009, 07:16:29 PM »
hi there Roberto ,I tried your instructions on the pressing of the pound key to stop and replay message recorded but it doesn't do the replaying function,could u take a look at your logic again please just to make sure.
thanks

zetaerre

  • Full Member
  • ***
  • Posts: 71
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #8 on: May 14, 2009, 10:35:54 AM »
...I tried your instructions on the pressing of the pound key to stop and replay message recorded but it doesn't do the replaying function...

Hi,

I've looked into app_record module source code and I can confirm that the # key is used to stop recording and skip on next instruction on the dial plan. Mmmh very strange thing.    
I thought that does not work for other reasons, in the weekend I will give it a look.

Be patience,
-Roberto

fthomas137

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #9 on: May 23, 2009, 05:26:37 AM »
Folks, I'm seeing to have troubles with this app. I've tried on several occasions to record a message and my box (running on soekris 5501) will pick up the call and after two seconds, I hear about 1/2second of my voice echoing back and this I get a busy signal...  ???

Any ideas?

Here's the log from the pbx tab:

Quote
May 22 21:21:42 -- Starting simple switch on 'Zap/4-1'
May 22 21:21:46 -- Executing [00003344@ANALOG-PHONE-18120048904a17111fdfc7e:1] NoOp("Zap/4-1", "internal calling application: Recordings") in new stack
May 22 21:21:46 -- Executing [00003344@ANALOG-PHONE-18120048904a17111fdfc7e:2] Dial("Zap/4-1", "Local/00003344@APPLICATION-MAPPING-13016574715a52f80a7a820/n") in new stack
May 22 21:21:46 -- Called 00003344@APPLICATION-MAPPING-13016574715a52f80a7a820/n
May 22 21:21:46 -- Executing [00003344@APPLICATION-MAPPING-13016574715a52f80a7a820:1] Answer("Local/00003344@APPLICATION-MAPPING-13016574715a52f80a7a820-0c64,2", "") in new stack
May 22 21:21:46 -- Executing [00003344@APPLICATION-MAPPING-13016574715a52f80a7a820:2] Wait("Local/00003344@APPLICATION-MAPPING-13016574715a52f80a7a820-0c64,2", "2") in new stack
May 22 21:21:46 -- Local/00003344@APPLICATION-MAPPING-13016574715a52f80a7a820-0c64,1 answered Zap/4-1
May 22 21:21:48 -- Executing [00003344@APPLICATION-MAPPING-13016574715a52f80a7a820:3] Record("Local/00003344@APPLICATION-MAPPING-13016574715a52f80a7a820-0c64,2", "/usr/local/share/asterisk/recordings/rec-%d:gsm") in new stack
May 22 21:21:48 -- <Local/00003344@APPLICATION-MAPPING-13016574715a52f80a7a820-0c64,2> Playing 'beep' (language 'en')
May 22 21:21:48 file.c:1075 in ast_writefile: Unable to open file /usr/local/share/asterisk/recordings/rec-0.gsm: No such file or directory
May 22 21:21:48 app_record.c:272 in record_exec: Could not create file /usr/local/share/asterisk/recordings/rec-%d

May 22 21:21:48 -- Executing [00003344@APPLICATION-MAPPING-13016574715a52f80a7a820:4] Wait("Local/00003344@APPLICATION-MAPPING-13016574715a52f80a7a820-0c64,2", "2") in new stack
May 22 21:21:51 -- Executing [00003344@APPLICATION-MAPPING-13016574715a52f80a7a820:5] Playback("Local/00003344@APPLICATION-MAPPING-13016574715a52f80a7a820-0c64,2", "") in new stack
May 22 21:21:51 app_playback.c:397 in playback_exec: Playback requires an argument (filename)
May 22 21:21:51 == Spawn extension (APPLICATION-MAPPING-13016574715a52f80a7a820, 00003344, 5) exited non-zero on 'Local/00003344@APPLICATION-MAPPING-13016574715a52f80a7a820-0c64,2'
May 22 21:21:51 == Spawn extension (ANALOG-PHONE-18120048904a17111fdfc7e, 00003344, 2) exited non-zero on 'Zap/4-1'
May 22 21:21:51 -- Hungup 'Zap/4-1'
Thanks!

Frank
« Last Edit: May 23, 2009, 05:31:23 AM by fthomas137 »

zetaerre

  • Full Member
  • ***
  • Posts: 71
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #10 on: May 23, 2009, 11:15:10 AM »
Thanks for the logs.

here is the 0.4 http://www.zetaerre.net/askozia/recordings_0.4.pbxpkg version ready.
Please back-up you audio files before delete or upgrade the package.
Now it's possible to preview the audio at any time.

Regards
-Roberto
« Last Edit: July 17, 2009, 11:05:26 AM by zetaerre »

fthomas137

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #11 on: May 23, 2009, 03:57:00 PM »
Roberto,

Two thumbs up mate! Not only was I impressed by your prompt reply, it works 100% now!

Frank  ;D

ronca78

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #12 on: June 22, 2009, 08:07:42 PM »
Hi all,
would be great if the messages were written in the astmedia package custom directory

/storage/astmedia.pkg/sys.overlap/usr/local/share/asterisk/sounds/custom

thanks

zetaerre

  • Full Member
  • ***
  • Posts: 71
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #13 on: June 25, 2009, 11:06:12 PM »
Hi all,
would be great if the messages were written in the astmedia package custom directory

/storage/astmedia.pkg/sys.overlap/usr/local/share/asterisk/sounds/custom

thanks

It's easy ...

Edit application Recordings 00003344 and in the line 3:

3,Record(/usr/local/share/asterisk/recordings/rec-%d:gsm)

change like:

3,Record(/storage/astmedia.pkg/sys.overlap/usr/local/share/asterisk/sounds/custom/rec-%d:gsm)

-Save & test

Should work...

-Roberto

ronca78

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
    • View Profile
Re: Recordings
« Reply #14 on: June 26, 2009, 09:49:31 AM »
Hi Roberto,
yes, i had already done this, but the gui web interface read files from the old directory.

Diego