call recording with Snom and SIP-INFO not working
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I found that call recording using Snoms which sending a SIP-INFO with "Record: on" leads to a disconnect. My sip-Profile has arecord-template defined: <param name="record-template" value="recordings/${caller_id_number}.${destination_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/> AFAIK this is the default one. My dialplan hast the following bind-meta-app: <action application="export" data="RECORD_STEREO=true"/> <action application="bind_meta_app" data="9 ab s record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/> $base_dir is "/opt/app/voip/ippbx" "recordings"-directory exists. When I press the record button on my Snom, it sends a SIP-INFO containing a "Record: on" entry. FS detects this and disconnects the call. FS's logfile shows this: [...] EXECUTE sofia/internal/2850@85.16.246.6 bind_meta_app(9 ab s record_session::/opt/app/voip/ippbx/recordings/2850.2010-05-10-13-24-37.wav) 2010-05-10 13:24:37.257965 [INFO] switch_ivr_async.c:2332 Bound A-Leg: 9 record_session::/opt/app/voip/ippbx/recordings/2850.2010-05-10-13-24-37.wav 2010-05-10 13:24:37.257965 [INFO] switch_ivr_async.c:2339 Bound B-Leg: 9 record_session::/opt/app/voip/ippbx/recordings/2850.2010-05-10-13-24-37.wav [...] Sending SIP-INFO from Snom now 2010-05-10 13:24:40.157036 [ERR] mod_sndfile.c:195 Error Opening File [/opt/app/voip/ippbx/recordings//opt/app/voip/ippbx/recordings/2850.4916.2010-05-10-13-24-40.wav] [System error : Datei oder Verzeichnis nicht gefunden.] 2010-05-10 13:24:40.157036 [ERR] switch_ivr_async.c:997 Error opening /opt/app/voip/ippbx/recordings//opt/app/voip/ippbx/recordings/2850.4916.2010-05-10-13-24-40.wav 2010-05-10 13:24:40.157036 [NOTICE] switch_ivr_async.c:998 Hangup sofia/internal/2850@85.16.246.6 [CS_EXECUTE] [DESTINATION_OUT_OF_ORDER] [...] So it's quite clear what happens here: Somehow FS creates a wrong file path ("/opt/app/voip/ippbx/recordings//opt/app/voip/ippbx/" instead of "/opt/app/voip/ippbx/recordings/"] When I do the same by using "*9" on my Snom, everything works fine. I'm using "FreeSWITCH Version 1.0.head (17097:17188M)" Any ideas what I'm doing wrong? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFL5/ES4tZeNddg3dwRAgYGAJ9NWJP08vUfNpM3FtmVxmvSGyRVjACfQcIX zxCC4CGXo7j1lsHaUOLX3NM= =3D1h -----END PGP SIGNATURE-----
No its clear you didn't set the record-template and record-path correctly on the sofia profile. <param name="record-path" value="$${recordings_dir}"/> <param name="record-template" value="${caller_id_number}.${target_domain}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/> Please verify you set the record-path too. /b On May 10, 2010, at 6:42 AM, Helmut Kuper wrote:
So it's quite clear what happens here: Somehow FS creates a wrong file path ("/opt/app/voip/ippbx/recordings//opt/app/voip/ippbx/" instead of "/opt/app/voip/ippbx/recordings/"]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Brian, yep, right. Found that too. I added "<param name="record-path" value="$${recordings_dir}"/>" to sip-profile and removed any path information from record-template. I rescaned sofia profile the result was this: 2010-05-10 16:28:22.715231 [ERR] mod_sndfile.c:195 Error Opening File [/opt/app/voip/ippbx/recordings/recordings/2850.4916.2010-05-10-16-28-22.wav] [System error : Datei oder Verzeichnis nicht gefunden.] 2010-05-10 16:28:22.715231 [ERR] switch_ivr_async.c:997 Error opening /opt/app/voip/ippbx/recordings/recordings/2850.4916.2010-05-10-16-28-22.wav Then I set recordings_dir in vars.xml to "$${base_dir}/recordings" which led to success. Thx for your help. On 10.05.2010 15:58, Brian West wrote:
No its clear you didn't set the record-template and record-path correctly on the sofia profile.
<param name="record-path" value="$${recordings_dir}"/> <param name="record-template" value="${caller_id_number}.${target_domain}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
Please verify you set the record-path too.
/b
- -- Mit freundlichen Grüßen Helmut Kuper Geschäftseinheit FD - Lösungen für Finanzdienstleister Telefax: (0441) 8000-2799 mailto:helmut.kuper@ewetel.de ___________________________________ EWE TEL GmbH Cloppenburger Straße 310 26133 Oldenburg EWE TEL GmbH Handelsregister Amtsgericht Oldenburg HRB 3723 Vorsitzender des Aufsichtsrates: Dr. Werner Brinker Geschäftsführung: Hans-Joachim Iken (Vorsitzender), Ulf Heggenberger, Dr. Norbert Schulz, Dirk Thole Homepage: http://www.ewetel.de ___________________________________ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFL6Bm+4tZeNddg3dwRAjocAJ9LqaD5xgdzlhcBer9j+U+zXjjMEgCeIrhg XUcDBJOfGod9x3diQSfnLG0= =MOkE -----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Brian, I enhanced your wiki about this. A further question to this: The options (a,b,o,s,i ... ) which can be used in bind_meta_app are not accessible by this way of session recording? regards Helmut On 10.05.2010 16:35, Helmut Kuper wrote:
Hi Brian,
yep, right. Found that too. I added "<param name="record-path" value="$${recordings_dir}"/>" to sip-profile and removed any path information from record-template.
I rescaned sofia profile the result was this:
2010-05-10 16:28:22.715231 [ERR] mod_sndfile.c:195 Error Opening File [/opt/app/voip/ippbx/recordings/recordings/2850.4916.2010-05-10-16-28-22.wav] [System error : Datei oder Verzeichnis nicht gefunden.] 2010-05-10 16:28:22.715231 [ERR] switch_ivr_async.c:997 Error opening /opt/app/voip/ippbx/recordings/recordings/2850.4916.2010-05-10-16-28-22.wav
Then I set recordings_dir in vars.xml to "$${base_dir}/recordings" which led to success.
Thx for your help.
On 10.05.2010 15:58, Brian West wrote:
No its clear you didn't set the record-template and record-path correctly on the sofia profile.
<param name="record-path" value="$${recordings_dir}"/> <param name="record-template" value="${caller_id_number}.${target_domain}.${strftime(%Y-%m-%d-%H-%M-%S)}.wav"/>
Please verify you set the record-path too.
/b
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iD8DBQFL6CMl4tZeNddg3dwRAo4mAJ4uEfWL8zu8Yb3Ftlo/CFfkv8MeSgCfZYsc U4ldad1vFxlhDVTIiZYQOUQ= =BGVq -----END PGP SIGNATURE-----
participants (2)
-
Brian West
-
Helmut Kuper