I had a similar question recently but on incoming registration, I don’t know if this will be a violation.
I need to register on the GoIP8 GSM gateway to make outgoing calls to mobile phones. I took an example from the asterisk help system and tried to apply it.
Asterisk server IP 192.168.0.10
GoIP8 IP 192.168.0.20
login:sim1
password:sim1
res_pjsip_outbound_registration.c:1047 schedule_retry: No response received from ‘sip:sim1@192.168.0.20:5060’ on registration attempt to ‘sip:sim1@192.168.0.20:5060’, retrying in ‘60’
pjsip show registrations
mytrunk/sip:sim1@192.168.0.20:5060 mytrunk Rejected (exp. 63s ago)
For some reason, core reload with which I applied the changes from pjsip.conf stopped working. After a reboot the situation was fixed.
Applied last configuration and get error
res_pjsip_outbound_registration.c:1047 schedule_retry: No response received from ‘sip:sim1@192.168.0.20:5060’ on registration attempt to ‘sip:sim1@192.168.0.20:5060’, retrying in ‘60’
I updated the content itself in the text of the question
He’s added it because he believes he needs to register with the gateway to make outbound calls.
No response isn’t what you should get if you try register when you shouldn’t. It is what you get when the request is sent to the wrong address, or lost, or the the response is sent to the wrong address, or lost.
I suppose it could also happen if Asterisk is configured for NAT and the local networks don’t cover 192.168.0.20
I use this manualA SIP trunk to your service provider, including outbound registration
According to information from the Internet, in order to use the gateway for incoming and outgoing calls, I need to create two trunks
The trunk that comes from GoIP and transfers incoming calls to the asterisk and its type endpoint
The trunk that goes from the asterisk to the GoIP is used for outgoing calls and its type registration
You helped set up the first trunk for incoming calls, it works, but I don’t understand how to implement outgoing calls via GoIP to mobile numbers. According to your comment, is it enough for me to have just one trunk for incoming and outgoing calls?
I would expect a single SIM mobile gateway to be a single endpoint, but people do strange things.
It wasn’t a good idea to start a new thread, as one need information from you other thread,. This is basically all about interfacing the GoIP, not two unrelated questions.
First of all need to make clear what is the current situation.
On GoIP user manual depending on the models, have many configuration modes (please refer to your product information).
Single Server Mode
Config. By Line
Config. By Group
Trunk Gateway Mode
By the way, on call configuration items it refers to a SIP Registrar Server.
The gateway is designed for several SIM cards and it does not matter to me how to use it in which mode. Initially, I chose Config By Line he is in this mode.
It is more strange for me that I cannot find just a ready-made example of a configuration file for a GoIP gsm gateway in pjsip format. This gateway is for 8 sim cards and I set it up in the Config By Line mode. I currently have only one SIM card in the gateway for the test, but maybe in the future I will add SIM cards.
At this stage, it does not matter to me how to configure the gateway and asterisk, in what mode they will work. All the information that I find on this topic is either about sip or for the web interface of free pbx, the asterisk wikipedia is also quite confusing and there are no working examples. Are there really thousands of different models of gateways in the world? Why can’t people add 2-3 very simple but working examples, if they were, then I would not ask such stupid questions here.
I don’t know how best to proceed, because the topics are still different, in the first one the incoming connection is configured, in this outgoing one. From my experience, even if the topics are similar but different, there will be confusion later on.
Isn´t the type of question, is based on the information inside the question, were other people can understand and give the right information.
Just for your reference in example on GoIP8 GSM gateway one the configuration mode it contemplate with no registration mode.
So how can expect other people can assume in your post how is configured your GSM gateway? and have the best answer.
I think you are making some kind of magic out of an asterisk. This gsm GoIP gateway is many years old and it seems that I am the first person to configure it in pjsip mode? It doesn’t matter to me how to connect to it, in what mode, but I still can’t find a really working pjsip asterisk configuration file for it.