Hello all!
I’ve created a web page with a dialer to create a call in Asterisk, the way we managed to get it working was through the Channel Originate command:
channel originate PJSIP/extension extension extensiongettingthecall@testeligacoes
Now, this command is working perfectly, I’ve created the dialplan for testeligacoes as such:
exten => _X.,1,NoOp(Teste de ligacoes teams)
exten => _X.,n,Set(CALLERID(name) “teste”)
exten => _X.,n,Dial(PJSIP/${EXTEN}, 60)
exten => _X.,n,Hangup()
; ==-- Fim do teste de ligações – ==
However, the line that sets the calleridname seems to be getting ignored, as all calls are coming in through Anonymous extension for the PJSIP/EXTENSION, the receiving end is visualizing the call as being set from the other ext, as programmed, but I want the person ORIGINATING the call to get the callerid “Internal Call”, how can I achieve this?
smartcore*CLI> channel originate PJSIP/6656 extension 6692@testeligacoes
– Called 6656
– PJSIP/6656-0000024f is ringing
> 0x7f62e9bc3e60 – Strict RTP learning after remote address set to: 172.17.2.52:26202
– PJSIP/6656-0000024f answered
– Executing [6692@testeligacoes:1] NoOp(“PJSIP/6656-0000024f”, “Teste de ligacoes teams”) in new stack
– Executing [6692@testeligacoes:2] Set(“PJSIP/6656-0000024f”, “CALLERID(name) “teste””) in new stack
[2022-07-08 10:37:24] WARNING[93453][C-0000081c]: pbx_variables.c:1208 pbx_builtin_setvar: Set requires an ‘=’ to be a valid assignment.
– Executing [6692@testeligacoes:3] Dial(“PJSIP/6656-0000024f”, “PJSIP/6692, 60”) in new stack
– Called PJSIP/6692
> 0x7f62e9bc3e60 – Strict RTP switching to RTP target address 172.17.2.52:26202 as source
– PJSIP/6692-00000250 is ringing
== Spawn extension (testeligacoes, 6692, 3) exited non-zero on ‘PJSIP/6656-0000024f’
And here is a Printscreen for what’s being said in the softphone:
Sorry for the print, can someone give me a light?
Thank you all!