Пример настройки SIP транка для SIPNET.RU

Trunk Name

sipnet

PEER Details

type=friend
secret=PASSWORD
qualify=yes
nat=force_rport,comedia
insecure=invite
host=sipnet.ru
fromuser=SIP_ID
fromdomain=sipnet.ru
dtmfmode=info
disallow=all
defaultuser=SIP_ID
allow=alaw
allow=ulaw
allow=g729

Register String

userID:PASSWORD@sipnet.ru

Скриншоты

FreePBX 12 PjSIP trunk SIPNET.RU

Connectivity > Add SIP (chan_pjsip) Trunk

sipnet pjsip trunk

pjsip.aor.conf

[sipnet.ru]
type=aor
qualify_frequency=60
contact=sip:SIP_ID@sipnet.ru:5060

pjsip.auth.conf

[sipnet.ru]
type=auth
auth_type=userpass
password=PASSWORD
username=SIP_ID

pjsip.endpoint_custom.conf

[sipnet.ru]
type=endpoint
transport=0.0.0.0-udp
context=from-pstn
disallow=all
allow=ulaw,alaw
outbound_auth=sipnet.ru
aors=sipnet.ru

pjsip.identify_custom.conf

[sipnet.ru]
type=identify
endpoint=sipnet.ru
match=sipnet.ru

pjsip.registration_custom.conf

[sipnet.ru]
type=registration
transport=0.0.0.0-udp
outbound_auth=sipnet.ru
retry_interval=60
expiration=3600
auth_rejection_permanent=yes
server_uri=sip:sipnet.ru:5060
client_uri=sip:SIP_ID@sipnet.ru:5060

pjsip.transports.conf

[0.0.0.0-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
external_media_address=195.144.244.52
external_signaling_address=195.144.244.52
local_net=192.168.0.0/24
ubuntu*CLI> pjsip show endpoints

 Endpoint:  <Endpoint/CID.....................................>  <State.....>  <Channels.>
    I/OAuth:  <AuthId/UserName...........................................................>
        Aor:  <Aor............................................>  <MaxContact>
      Contact:  <Aor/ContactUri...............................>  <Status....>  <RTT(ms)..>
  Transport:  <TransportId........>  <Type>  <cos>  <tos>  <BindAddress..................>
   Identify:  <MatchList.................................................................>
    Channel:  <ChannelId......................................>  <State.....>  <Time(sec)>
        Exten: <DialedExten...........>  CLCID: <ConnectedLineCID.......>
 =========================================================================================

 Endpoint:  sipnet.ru                                            Not in use    0 of inf
    OutAuth:  sipnet.ru/SIP_ID
        Aor:  SIP_ID                                             0
      Contact:  sipnet.ru/sip:SIP_ID@sipnet.ru:5060             Avail              23.398
  Transport:  0.0.0.0-udp               udp      0      0  0.0.0.0:5060
   Identify:  212.53.40.40/32,2a02:2f8:2:3::40/128

Connectivity > Outbound Routes

FreePBX SIP Trunk

FreePBX 13 исходящая маршрутизация.

FreePBX

Только авторизованные участники могут оставлять комментарии.

Войти через: Google Facebook