Vtiger 7.3 issue with click2call | FreePbx 16 Asterisk 18

Hi there.

I have been looking for a way to use a CRM with my telephony system (FREEPBX) to ease things up for my operators.

As an open source lover, I was looking for a solution that can be hosted on premise and found Vtiger community.

I am using SPAsteriskConnector and it works fine, the only problem I still have is:
In Vtiger contacts dashboard, If I click on the phone number of a client it will trigger a click to call that will open up my Zoipper client to emit the call to the same number calling, so I am calling myself.

For testing purposes, I have open 2 zoipper clients, one with extension 2000 (vtiger admin) and 2001 client, when I am calling from the admin dashboard the extension 2001, the call will not be received on 2001 but I will receive it in 2000.

I dont know what might be the issue here, I dont have experience, with FREEPBX nor with PBX telephony system, this is my first attempt at diving in this.

I can provide you with any things you ask me for.

Thank you and have a nice day.

Because the click to dial is calling you first and when you pick up it calls the destination. So because you’re logged in as Admin and 2000 is the Admin extension, clicking to dial 2001 is going to call your Admin extension first (2000) then when you answer, call 2001.

Also, if you have issues with Vtiger you need to work with them and their community first. This is not a place for Vtiger support.

Thank you for your answer, I will try this once I get home.
Do you think there is a better alternative to vtiger with freepbx? I mean an open source one.

When I pick up the call it will drop right after and never rings in the client’s extension.
I get these logs:

(2001 is admin the one initializing the call, 2000 is the client extension)

20303 [2024-04-29 21:04:05] VERBOSE[28174] asterisk.c: Asterisk Ready.
20304 [2024-04-29 21:04:10] VERBOSE[28403] netsock2.c: Using SIP RTP TOS bits 184
20305 [2024-04-29 21:04:10] VERBOSE[28403] netsock2.c: Using SIP RTP CoS mark 5
20306 [2024-04-29 21:04:10] VERBOSE[28405] dial.c: Called 2001
20307 [2024-04-29 21:04:10] VERBOSE[28405] dial.c: SIP/2001-00000000 is ringing
20308 [2024-04-29 21:04:18] VERBOSE[28405] dial.c: SIP/2001-00000000 answered
20309 [2024-04-29 21:04:18] ERROR[28405][C-00000001] pbx_functions.c: Function CALLERID not registered
20310 [2024-04-29 21:04:18] VERBOSE[28405][C-00000001] pbx.c: Executing [2000@vtiger:1] Set(“SIP/2001-00000000”, “CALLFILENAME=OUT_29042024_21-04__2000”) in new stack
20311 [2024-04-29 21:04:18] VERBOSE[28405][C-00000001] pbx.c: Executing [2000@vtiger:2] MixMonitor(“SIP/2001-00000000”, “/var/spool/asterisk/monitor/OUT_29042024_21-04__2000.wav,b”) in new stack
20312 [2024-04-29 21:04:18] WARNING[28405][C-00000001] pbx.c: No application 'Set ’ for extension (vtiger, 2000, 3)
20313 [2024-04-29 21:04:18] VERBOSE[28405][C-00000001] pbx.c: Spawn extension (vtiger, 2000, 3) exited non-zero on ‘SIP/2001-00000000’
20314 [2024-04-29 21:04:18] VERBOSE[28427][C-00000001] app_mixmonitor.c: Begin MixMonitor Recording SIP/2001-00000000
20315 [2024-04-29 21:04:18] VERBOSE[28427][C-00000001] app_mixmonitor.c: MixMonitor close filestream (mixed)
20316 [2024-04-29 21:04:18] VERBOSE[28427][C-00000001] app_mixmonitor.c: End MixMonitor Recording SIP/2001-00000000

I do believe the issue is caused by the extensions conf:

exten = X.,1,Set(CALLFILENAME=${STRFTIME(${EPOCH},OUT%d%m%Y_%H-%M)}${CALLERID (num)}${EXTEN})
exten = _X.,2,MixMonitor(/var/spool/asterisk/monitor/${CALLFILENAME}.wav,b)
exten = _X.,3,Set (CDR (recordpath)=/var/spool/asterisk/monitor/${CALLFILENAME}.wav)
exten = _X.,4,Dial(SIP/${EXTEN})

we generally don’t know the vtiger context you are using here, you need to take it to their forum