Full picture / problem(s) description
I am trying to setup an inbound trunk using a DID provided by DIDWW.com .
The only way to receive the calls is using
Allow Anonymous Inbound SIP Calls = Yes
Allow SIP Guests = Yes
in the SIP settings.
When the call is received, I get this Asterisk log:
Received incoming SIP connection from unknown peer
And when the call is forwarded to a mobile number, the forwarding fails and I get this Asterisk log:
Details and full logs
In order to get full logs, I am trying to use this post, but in the CDR I don’t see the call at all.
The only way to see the call in the CDR is to forward the call to a voice mail. In that case I am able to get the Call-ID, which is the Unix Timestamp, i.e. 1622550430.37, but using the grep command with this ID I only get one single log line:
[2021-06-01 14:27:20] VERBOSE[C-00000020] pbx.c: Executing [s@macro-user-callerid:1] Set(“PJSIP/anonymous-0000001f”, “TOUCH_MONITOR=1622550430.37”) in new stack
On the other side, if I look at the Asterisk logs, I see the logs also for the call with destination set to calling the mobile number, but I cannot see the Call-ID, nor the incoming INVITE.