FOP2 Recording Issues in Elastix 2.2

  1. ‹ Older
  2. 12 years ago

    admin

    3 Feb 2012 Administrator

    Hi Dan,

    Your requests are kind of mutually exclusive, having fop2 recordings tab interface or having fop2 recordings appear on the recordings tab in Elastix.

    If you installed fop2 from the Elastix RPM, the native fop2 recording interface is disabled, as Elastix requested to not duplicate resources. Both the fop2 phonebook and fop2 recording interface are not available in the Elastix RPM.

    So, we are left with the option of making fop2 recordings appear in the Elastix recoridngs interface, unfortunately I am not an Elastix expert, I am not sure what are the requirements in the elastix recording interface so it is shown. In fop2 you can change the recording file name, and you can execute post recording scripts. Perhaps you can choose a recording filename wisely so it appears on the Elastix monitoring tab, or perhaps you not only need to change the name but also run some post recording script to update a database entry.

    I will have to talk to Elastix guys to try to make it work.

  3. Hi,

    I am facing this problem as well. Any news/update regarding this problem yet?

    Michael

  4. admin

    21 Feb 2012 Administrator

    I will add a script to update the cdr with the audio file link (required by the elastix monitoring tab), in the next elastix rpm update. It is not that hard to write the script, but requires some knowledge and coding experience.

    Best regards,

  5. Is there anyway I can do the changes first before waiting for the next RPM?

  6. admin

    5 Mar 2012 Administrator

    The fop2 version 2.25 tarball includes a script recordings_elastix.pl that you can use as the monitor_exec setting in fop2.cfg

  7. Thank you!!!! I have successfully done it!

  8. I am trying to send the FOP2 Recording to the Monitoring Tab of Elastix, and having a bit of troubled.

    I have reviewed the code, and believe I have everything done correctly, but it still doesn't show up. Recordings are being saved locally.

    Here is what I have edited:

    Fop2.CFG

    monitor_filename=/var/spool/asterisk/monitor/${ORIG_EXTENSION}_${DEST_EXTENSION}_%h%i%s_${UNIQUEID}
    monitor_format=wav
    monitor_mix=true
    monitor_exec=/usr/local/fop2/recording_elastix.pl

    recording_elastix.pl
    # configurable variables
    my $DESTFOLDER = "/var/spool/asterisk/monitor/";
    my $SOX = "/usr/bin/sox";
    my $SOXMIX = "/usr/bin/soxmix";

    When I record a call from FOP2, the file is created on the server, but does not show up in the monitor tab. Did I missing something? I have verified that sox and soxmix are there.

    Any advice would be great.

    -Ton

  9. admin

    18 Apr 2012 Administrator

    you have to check the cdr table and see if the userfield is being updated with audio:filename-of-recording , that is the important part to make them appear on the monitoring tab.

    The only way to truly troubleshot is to run the script as asterisk with the same parameters, you can see that system call on the asterisk full log when you enable debug. The problem is that the script mixes the two legs and remove the original wavs to leave the mixed one, if that part works, you cannot rerun the script as it will not find the original audio files. So you will have to edit the script, comment the lines that remove leg A and B so the files remain when you try to run them by hand.

  10. I have the same issue. When I click on the Voicemail tab none of the recordings show up, however I do see the recordings in the /var/spool/asterisk/monitor folder with the correct extension prefix.

    How can we fix this? Thanks

    Bill

  11. admin

    8 May 2012 Administrator

    I have the same issue. When I click on the Voicemail tab none of the recordings show up, however I do see the recordings in the /var/spool/asterisk/monitor folder with the correct extension prefix.

    How can we fix this? Thanks

    Bill

    Hi, not sure what "same issue" are you referring, this post talks about recordings, not voicemail tab. What tab are you referring too? From fop2 or from Elastix, or freepbx? Are you talking about ARI ?

  12. I am having the same problem. I used the recording_elastix.pl script but it still did not appear, so i decided to debug some more. This is what i have come across with. I'm not expert, but i have tried to put a logical mind in trying to get at the bottom of the problem.

    a.) the recording_elastix.pl script requires in and out files and the final output file .wav ( which i had done in the fop2.cfg )
    b.) the monitor_mix = true ( prevents the recording_elastix from running because it can no longer locate the 'in' and 'out' files ( so i set this to false ). This after looking at the recording_elastix.pl script that it mixes it too.
    c.) I noticed that the uniqueID in the CDR table for that specific call is NOT Equal to the uniqueID of that of the generated wav file after the recording by FOP2. It is incremented by "1" .. example 1338135904.7.wav whereas the cdr shows 1338135904.6 <--- notice the 6 and 7 . So this alone is not equal that is why the update script for mysql will never write the "audio:fnm" correctly.

    Now my setup is run on elastix and the fop2 version is the one provided by them 2.25. I only installed the license. I tried racking my brain looking at the forums and found this thread which i hope anybody out there from FOP2 can shed light on.

    I can fix this problem by editing the update portion of the script to the mysql table but my question in the first place would be, why the Increment in the UniqueID?

    Any help would be greatly appreciated. Thanks

  13. admin

    28 May 2012 Administrator

    Your problem is most probably the use/abuse of Local channels, where the call initially has a uniqueid but it changes to a different one do to a channel masquerading or similar.

    It is not something that can be easily fixed, as the manager monitor application uses the monitor app (instead of mixmonitor), and I am not sure if we can pass arguments to be expanded when the call ends (and not when the recording starts/middle of call).

    Mixmonitor has the option, but not sure if Monitor does. So, the script is ok, but the uniqueid does not match the cdr uniqueid and that is why the field is not populated. You could modify the script to do a fuzzy search of sorts, using src, dst, and aproximate uniqueid and timestamps, but it won't be too nice imho.

  14. admin

    28 May 2012 Administrator

    I am reviewing events and code, and I think the problem might be the channel you are monitoring. If you start recording on the channel that receives the call (leg B), the filename will have the uniqueid of that channel, but the cdr is saved with the uniqueid of the originating channel (leg A).

    Try starting a recording for an extension that is doing an outgoind call and check uniqueids, then do it when you receive a call. Do you see the difference in the later case?

  15. You are right. The recording leg is what is causing the uniqueid to be different. The destination is clicked and recorded it no longer matches the one on cdr because what is recorded is the source uniqueid. Is there any work around on this because when you use fop2 for recording the calls, there are cases wherein you don't know who originated the call. So i might be clicking on the destination and when i click on record, it will not process the recording.

    Also, is that right about what i commented that the monitor_mix should be set to false for this script to run successfully?

  16. admin

    31 May 2012 Administrator

    I am working on a fix, so fop2 sends the other leg uniqueid as a parameter to the post recording script. On my initial tests it seems to work, you should see it working on the next release. If you want to test it before release, catch me on the live help and I will provide a link to download a test version.

    Regarding monitor_mix, it does not affect the script. If you set monitor_exec asterisk IGNORES the mix option, and records unmixed and passes 3 parameters to the script.

    Best regards,

  17. Hi,

    I am also experiencing this issue, where the calls are being recorded and mixed together then not appearing in the Monitoring tab.

    -rw-r--r-- 1 asterisk asterisk 289964 Oct 9 13:47 7026_7030_134235_1349786396.140275.wav

    Im using Elastix 2.3.0 Revision 8 (according to the web interface).

    Nicholas - Did you resolve the issue you were looking into ?

  18. admin

    9 Oct 2012 Administrator

    Yes, the issue is fixed on what it would be the next release. Just to be sure we are talking about this, I will describe the issue : using elastix and the update script provided for monitor_exec is that the recording appears depending on the call leg you start the recording in fop2. Suppose you have extension 100 talking to extension 200, and you start recording , it works when you record 100, but it does not work when you record 200. (actually , the recordings *are* made, but the uniqueid of the call does not match the cdr entry, and so the link is lost)

  19. Hi Nicholas,

    Yes this is correct, the issue I am experiencing.

    Am I able to obtain a copy of the next release for testing as this feature is mostly being requested in house?

    Many Thanks,

    Gavin

  20. admin

    11 Oct 2012 Administrator

    wait. wait. I smell a "I too have this problem" when you are actually not having the same problem.

    One thing is not having the recordings populated in the recordings interface because you did not configure them, and a totally different thing is that you have SOME recordings on the *Elastix* recording interface (not fop2 interface) showing up when using the special purpose recordings_elastix.pl script supplied with the latest fop2 version.

    If you do not see *anything* in the fop2 recordings interfaces then it is not the same problem, the most probable cause is what I said above, you did not configure the monitor_exec option in fop2.cfg.

    Recordings, by default, are *not* enabled because they will most probably require some intervention from your part.

    Look for this line in fop2.cfg,

    ; monitor_exec=/usr/local/fop2/recording_fop2.pl

    remove the semicolon so it becomes active:

    monitor_exec=/usr/local/fop2/recording_fop2.pl

    Then restart fop2:

    service fop2 restart

    After that, you *might* start seeing recordings that you initiate via fop2 in the recordings tab. If you have "all" permissions you will see all recordings, if not you will see only your own.

    Best regards,

  21. Hi Nicolas,

    Thank you very much for your reply.

    To confirm.

    I am extension 7026 , my colleague is extension 7027

    If I make a call from 7026 and record it - this call is shown in the Monitoring tab in Elastix.

    If my colleague makes a call (7027) and I record it with my user 7026 (I have all permissions), then the recording is visible on the disc and the channels gets mixed together but is NOT visible under the Monitoring tab when i log in as user 7026.

    So I believe the monitor_exec scripts are being called correctly. I am calling ;

    monitor_exec=/usr/local/fop2/recording_elastix.pl

    Here is my call recorded as user 7026 for user 7027 ;

    /var/spool/asterisk/monitor
    -rw-r--r-- 1 asterisk asterisk 844204 Oct 9 14:19 7026_7027_140622_1349787888.140752.wav

    This call isnt displayed under the Monitoring tab.

    --
    Gavin

  22. Newer ›

or Sign Up to reply!