“your call cannot be completed as dialed” message is an indication that the number you called could not be matched to any outbound route or local extension.
You should work with the gateway vendor to get this figured out.
You have configured your trunk so that the gateway registers to asterisk (host=dynamic in the user section) and you have configured an IP address or hostname for outbound calling in the Peer section. Pretty much makes no sense at all.
Maybe you’d like to share your use case here also, if you want to get any help. I am aware of many a scammer using GSM banks with throwaway SIMs and frankly have little interest in seeing another one succeed.
Thank you for taking your time to respond, please can you explain what you mean by use case?
I have shared a trace call here on pastebin, is that helpful?
You’ve created a chan_sip trunk, but the device is sending calls to the pjsip port. You’ve enabled anonymous calls, so the INVITE is accepted, routed to the inbound route and sent to Queue 122. From the full log, the inbound call appeared to be successful, despite the device not being configured correctly.