Feature code linked to a recording does not update it

Hello,

So we have a recording for which we enabled the Link to Feature Code option so that the admin person can update directly when needed. It doesn’t seem to update the recording though. It’s just creating a file with .g729 extension!

The recording file is called “Announcements.wav” and dialing the feature code just creates a file called “Announcements.g729” and obviously the recording is not updated.

Any idea what the problem is?

Thanks

Do you use g729 in your system for normal calls? If so, why?

Post a screenshot of the Edit Recording page for this recording. Paste the Asterisk log for an attempted update (via the feature code) at pastebin.freepbx.org and post the link here.

We do attempt to use g729 on the SIP trunks but not internal calls since the PBX is onsite.

Here’s the Asterisk log: Sys Rec Update - FreePBX Pastebin (Ext nb has been masked as XXX)

Edit Recording screenshot attached.

Thanks

Starting at line 97:

[2021-09-21 12:42:38] VERBOSE[24186][C-000009d2] pbx.c: Executing [[email protected]:8] AGI("SIP/XXX-00001844", "agi://127.0.0.1/recordings.agi") in new stack
[2021-09-21 12:42:38] VERBOSE[24186][C-000009d2] res_agi.c: agi://127.0.0.1/recordings.agi: Incoming recording format is g729
[2021-09-21 12:42:38] VERBOSE[2624] asterisk.c: Remote UNIX connection
[2021-09-21 12:42:38] VERBOSE[24246] asterisk.c: Remote UNIX connection disconnected
[2021-09-21 12:42:38] VERBOSE[2624] asterisk.c: Remote UNIX connection
[2021-09-21 12:42:38] VERBOSE[24248] asterisk.c: Remote UNIX connection disconnected
[2021-09-21 12:42:38] VERBOSE[2624] asterisk.c: Remote UNIX connection
[2021-09-21 12:42:38] VERBOSE[24250] asterisk.c: Remote UNIX connection disconnected
[2021-09-21 12:42:38] VERBOSE[24186][C-000009d2] res_agi.c: <SIP/XXX-00001844>AGI Script agi://127.0.0.1/recordings.agi completed, returning 0

A similar fragment from my system:

1371298	[2021-09-21 12:14:38] VERBOSE[10237][C-00000997] pbx.c: Executing [[email protected]:8] AGI("PJSIP/1012-00000bad", "agi://127.0.0.1/recordings.agi") in new stack	
1371299	[2021-09-21 12:14:38] VERBOSE[10237][C-00000997] res_agi.c: agi://127.0.0.1/recordings.agi: Incoming recording format is ulaw	
1371300	[2021-09-21 12:14:38] VERBOSE[5693] asterisk.c: Remote UNIX connection	
1371301	[2021-09-21 12:14:38] VERBOSE[10329] asterisk.c: Remote UNIX connection disconnected	
1371302	[2021-09-21 12:14:38] VERBOSE[5693] asterisk.c: Remote UNIX connection	
1371303	[2021-09-21 12:14:38] VERBOSE[10331] asterisk.c: Remote UNIX connection disconnected	
1371304	[2021-09-21 12:14:38] VERBOSE[5693] asterisk.c: Remote UNIX connection	
1371305	[2021-09-21 12:14:38] VERBOSE[10333] asterisk.c: Remote UNIX connection disconnected	
1371306	[2021-09-21 12:14:38] VERBOSE[5693] asterisk.c: Remote UNIX connection	
1371307	[2021-09-21 12:14:38] VERBOSE[10336] asterisk.c: Remote UNIX connection disconnected	
1371308	[2021-09-21 12:14:38] VERBOSE[5693] asterisk.c: Remote UNIX connection	
1371309	[2021-09-21 12:14:38] VERBOSE[10341] asterisk.c: Remote UNIX connection disconnected	
1371310	[2021-09-21 12:14:38] VERBOSE[5693] asterisk.c: Remote UNIX connection	
1371311	[2021-09-21 12:14:38] VERBOSE[10345] asterisk.c: Remote UNIX connection disconnected	
1371312	[2021-09-21 12:14:38] VERBOSE[10237][C-00000997] res_agi.c: agi://127.0.0.1/recordings.agi: Converting /var/lib/asterisk/sounds/en/custom/testing.ulaw To: /var/lib/asterisk/sounds/en/custom/testing.wav	
1371313	[2021-09-21 12:14:38] VERBOSE[10237][C-00000997] res_agi.c: <PJSIP/1012-00000bad>AGI Script agi://127.0.0.1/recordings.agi completed, returning 0

So it appears that the AGI failed to convert g729 to wav. Can the system convert in general, or are you doing g729 passthrough on normal calls? What codecs are enabled for the extension, and in what order? As a test, set up an extension to allow only ulaw and alaw. From this extension, does the recording update correctly? Do outside calls work correctly?

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.