I can not find a normal manual for a pure pjsip asterisk + goip gsm gateway , a lot of very old documentation for sip or work with freepbx. Both devices are on the local network and there is no NAT between them. Asterisk local ip 192.168.0.10 and gsm goip 192.168.0.20
If it supports it, your easiest option is use a static IP address, and identify by address, rather than user name. You might be able to identify by authuser, but if doing so, please read the cautions about doing so.
Thanks for the idea, this is my first install of asterisk, but if I understand correctly then my GoIP gateway registers correctly on the asterisk server, this can be seen pjsip show endpoints. I have endpoint sim1 Maybe the problem is in the dialplan, I receive incoming calls from the gateway in this way
The problem is clearly that the gateway is sending the caller ID and not its account name in the From header. That is the basis on which I made my suggestions.
It is identifying itself as the external caller, not as sim1, for incoming calls, even if it is registering with sim1 in the From header. Your choices are:
match it by IP address, in which case there is no point in its registering as you already know the address;
make it send sim1 in the From header, which might not be possible (which is why I didn’t list it above - it would also mean you had to select another means of providing the caller ID);
match it by the authorisation user ID, which is messy, because you have to take steps to avoid a security warning on the first INVITE attempt.
I also added additional acl section but it does not work, it is not clear why it is so confusingly implemented, it took a lot of time to figure it out. Thanks again!
Discussed error occurs during error in extension.conf
For dialing to GSM via GoIP you must write: Dial(PJSIP/${EXTEN}@sim1) not as Dial(SIP/sim1/${EXTEN})
Working example for GoIP1 is:
exten => _.,1,Dial(PJSIP/${EXTEN}@goip)
same = n,Hangup()