[Freeswitch-users] call recording with Snom and SIP-INFO not working
Helmut Kuper
helmut.kuper at ewetel.de
Mon May 10 04:42:10 PDT 2010
-----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 at 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 at 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-----
More information about the FreeSWITCH-users
mailing list