don't record local calls

Status
Not open for further replies.

jimmygee2003

New Member
Oct 29, 2021
8
0
1
68
Hi

I don't want to record internal calls(extension to extension) or calls to the mailbox. I just want to record inbound and outbound calls.
I have modified a copy of the user_record ( user_record_test) dialplan to try to achieve this, however all calls are still being recorded. In this example both extensions are set to record all.

From the cli, I am seeing the following output:

EXECUTE [depth=0] sofia/internal/2003@tenant1@mypbx.com export(call_direction=local)
2024-02-25 09:49:27.646974 97.87% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [call_direction]=[local]
Dialplan: sofia/internal/2003@tenant1@mypbx.com parsing [tenant1@mypbx.com->user_record_test] continue=true

Dialplan: sofia/internal/2003@tenant1@mypbx.com Regex (PASS) [user_record_test] ${user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/2003@tenant1@mypbx.com Regex (FAIL) [user_record_test] ${call_direction}(local) =~ /^inbound$/ break=never
Dialplan: sofia/internal/2003@tenant1@mypbx.com Regex (FAIL) [user_record_test] ${user_record}(local) =~ /^all$/ break=never

Dialplan: sofia/internal/2003@tenant1@mypbx.com Regex (PASS) [user_record_test] ${user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/2003@tenant1@mypbx.com Regex (FAIL) [user_record_test] ${call_direction}(local) =~ /^outbound$/ break=never
Dialplan: sofia/internal/2003@tenant1@mypbx.com Regex (FAIL) [user_record_test] ${user_record}(local) =~ /^all$/ break=never

Dialplan: sofia/internal/2003@tenant1@mypbx.com Regex (PASS) [user_record_test] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/2003@tenant1@mypbx.com Action set(from_user_record=${user_data ${sip_from_user}@${sip_from_host} var user_record}) INLINE
EXECUTE [depth=0] sofia/internal/2003@tenant1@mypbx.com set(from_user_record=all)
2024-02-25 09:49:27.646974 97.87% [DEBUG] mod_dptools.c:1673 SET sofia/internal/2003@tenant1@mypbx.com [from_user_record]=[all]

Dialplan: sofia/internal/2003@tenant1@mypbx.com Regex (PASS) [user_record_test] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/2003@tenant1@mypbx.com Regex (FAIL) [user_record_test] ${call_direction}(local) =~ /^inbound$/ break=never
Dialplan: sofia/internal/2003@tenant1@mypbx.com Regex (PASS) [user_record_test] ${from_user_record}(all) =~ /^all$/ break=never
Dialplan: sofia/internal/2003@tenant1@mypbx.com Action set(record_session=true) INLINE
EXECUTE [depth=0] sofia/internal/2003@tenant1@mypbx.com set(record_session=true)
2024-02-25 09:49:27.646974 97.87% [DEBUG] mod_dptools.c:1673 SET sofia/internal/2003@tenant1@mypbx.com [record_session]=[true]

Dialplan: sofia/internal/2003@tenant1@mypbx.com Regex (PASS) [user_record_test] ${from_user_exists}(true) =~ /^true$/ break=never
Dialplan: sofia/internal/2003@tenant1@mypbx.com Regex (FAIL) [user_record_test] ${call_direction}(local) =~ /^outbound$/ break=never
Dialplan: sofia/internal/2003@tenant1@mypbx.com Regex (PASS) [user_record_test] ${from_user_record}(all) =~ /^all$/ break=never
Dialplan: sofia/internal/2003@tenant1@mypbx.com Action set(record_session=true) INLINE
EXECUTE [depth=0] sofia/internal/2003@tenant1@mypbx.com set(record_session=true)



I have attached the dialplan.


Can anyone help me understand why its not working please????

Thanks

Jim
 

Attachments

  • user_record_test.JPG
    user_record_test.JPG
    145.7 KB · Views: 7
Status
Not open for further replies.