Hello everybody.
I have the Asterisk 16.21.1 built by mockbuild @ olive.ph.tucny.com on a x86_64 running Linux on 2021-10-11 22:54:58 UTC
I have trunk to the service provider (SP) for call recording and analyzing.
SP after receiving incoming call instantly make call via same trunk with the same CID and EXTEN.
But the incoming call Asterisk proccesses in the context of the original call, not in the trunk context.
Question: is it possible to implement such scheme (with single trunk to SP) of a call routing?
mangosip.ru
host=81.88.86.55
insecure=port,invite
context=from-mango
directmedia=no
immediate=yes
trunk=yes
encrypt=no
nat=route
transport=udp
t1min=1500
timert1=1500
[from-mango]
exten => _XXXX,1,NoOp(Call via Mango)
same => n,Answer()
same => n,BackGround(beep)
same => n,BackGround(_nomer)
same => n,SayDigits(${CALLERID(number)},c)
same => n,HangUp
exten => s,1,NoOp( From mango )
same => n,BackGround(beep)
same => n,HangUp()