Page 1 of 1

Carrier unreachable in asterisk CLI

PostPosted: Fri Jul 10, 2020 6:46 am
by Tom75
Hi all, I created a carrier trunk:

Registration String:
xxxx@host.fr:xxxx@host.fr:5060

Account Entry
[xxx]
allow=ulaw
type=peer
username=xxxx
secret=xxxx
host=host.fr
dtmfmode=auto
nat=force_rport
insecure=very
maxexpiry=3600
qualify=yes

Protocol:
SIP

Globals String:

Dialplan Entry:
exten => _933.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _933.,2,Dial(xxxx@host.fr:xxxx@host.fr:5060/${EXTEN:2},,tTor)
exten => 933.,3,Hangup

Server IP:
192.168.147.128

But when I use "sip show peers", the carrier I created is unreachable.




Vicibox 9.0 from .iso | Vicidial 3133-2.14-718a Build 190902-0839| Asterisk 13.27.0 | Single Server | vmware | No Extra Software After Installation

Re: Carrier unreachable in asterisk CLI

PostPosted: Fri Jul 10, 2020 11:05 am
by carpenox
That's your local ip. You need your public ip set

Re: Carrier unreachable in asterisk CLI

PostPosted: Sun Jul 12, 2020 1:32 am
by Kabis
In sip.conf
Add your public IP. Your carrier is public IP. So if you want to reach the carrier means, you need to change the server ip in public IP. Then it will reach.

Re: Carrier unreachable in asterisk CLI

PostPosted: Mon Jul 13, 2020 3:21 am
by Tom75
Hi, thank you for your answer. I need some help because setting this public ip please. I'm running the server on a vmware. So should I use the public ip of my windows machine or how can i get the public ip for the server?

Re: Carrier unreachable in asterisk CLI

PostPosted: Mon Jul 13, 2020 7:25 am
by carpenox
yes of your windows machine, your publicly accessible IP address from whatismyipaddress.com

Re: Carrier unreachable in asterisk CLI

PostPosted: Mon Jul 13, 2020 8:16 am
by Tom75
which parameter should I change ,please. I changed the externip, but nothing has changed.

Re: Carrier unreachable in asterisk CLI

PostPosted: Mon Jul 13, 2020 8:22 am
by carpenox
you set it in server settings and rebuild confs??
Image

Re: Carrier unreachable in asterisk CLI

PostPosted: Mon Jul 13, 2020 8:30 am
by Tom75
No, I directly change the sip.conf file, I will try it againa and see if it is running

Re: Carrier unreachable in asterisk CLI

PostPosted: Mon Jul 13, 2020 8:42 am
by Tom75
It is still unreachable.

Re: Carrier unreachable in asterisk CLI

PostPosted: Mon Jul 13, 2020 8:53 am
by carpenox
with my carrier I have to submit my server ip to them, perhaps this is the case with your sip trunk as well? for the end termination