FreePBX PJSIP Trunk to Adtran TA924e

Hello,

I have a FreePBX instance that is connected to an Adtran TA924e. The Adtran is a gateway that provides 24 FXS ports that register as SIP/PJSIP extensions on the FreePBX, the Adtran also converts a SIP trunk in FreePBX to a PRI on a legacy PBX so that we can make ext to ext calls from the legacy PBX to the FreePBX and vice versa. The PRI is/was also setup to allow the legacy pbx to access the dialtone from our sip trunk provider through the FreePBX.

I had everything working fine on CHAN SIP. Over the past few days I have been trying to get everything converted over to PJSIP.

Because of the way the Adtran works, if the extensions the FXS ports register to are converted to PJSIP, then I have to also convert the sip trunk that connects the FreePBX to the Adtran for the PRI to PJSIP.

I have converted all of the extension for the FXS port to PJSIP and the register just fine, provided that the PJSIP trunk to the Adtran is disabled. If I enable the PJSIP trunk, then the PRI works, but the extensions can no longer register.

Here are the CHAN SIP trunk settings that I used:
SIP Settings:
Outgoing:
Trunk Name: SIP_to_FreePBX

Peer Detail:
type=friend
qualify=yes
port=5060
insecure=port,invite
host=192.168.100.10 (Adtran IP Address)
dtmfmode=rfc2833
disallow=all
context=from-internal
canreinvite=no
allow=ulaw

Incoming: All settings empty

Here are the settings for the PJSIP Trunk I created:
Trunk Name: Adtran

PJSIP Settings:
General:
Username: (Authentication Disabled)
Secret: (Authentication Disabled)
Authentication: None
Registration: None
Language Code: Default
SIP Server: 192.168.100.10 (Adtran IP Address)
SIP Server Port: 5060
Contect: from-internal
Transport: 0.0.0.0-udp

Advanced: (all set to default)

Codecs: ulaw

When I made the conversion, really all I had to do in the Adtran was change the ports from 5160 (SIP Port) to 5060 (PJSIP Port).

Any help would be appreciated.

Thanks,
Daniel

If it is helpful, below is the config of the Adtran:

interface eth 0/1
  ip address  192.168.100.10  255.255.255.0
  no shutdown
  media-gateway ip primary
!
!
interface eth 0/2
  no ip address
  no awcp
  shutdown
!
!
!
!
interface t1 0/1
  shutdown
!
interface t1 0/2
  shutdown
!
interface t1 0/3
  shutdown
!
interface t1 0/4
  description To PBX
  tdm-group 1 timeslots 1-24 speed 64
  no shutdown
!
!
interface pri 1
  description pri 1
  isdn switch-type dms
  role network b-channel-restarts enable
  isdn name-delivery display
  connect t1 0/4 tdm-group 1
  no shutdown
!
!
interface fxs 0/1
  no shutdown
!
interface fxs 0/2
  no shutdown
!
interface fxs 0/3
  no shutdown
!
interface fxs 0/4
  no shutdown
!
interface fxs 0/5
  no shutdown
!
interface fxs 0/6
  no shutdown
!
interface fxs 0/7
  no shutdown
!
interface fxs 0/8
  no shutdown
!
interface fxs 0/9
  no shutdown
!
interface fxs 0/10
  no shutdown
!
interface fxs 0/11
  no shutdown
!
interface fxs 0/12
  no shutdown
!
interface fxs 0/13
  mwi neon cadence 1000ms voltage high
  no shutdown
!
interface fxs 0/14
  mwi neon cadence 1000ms voltage high
  no shutdown
!
interface fxs 0/15
  mwi neon cadence 1000ms voltage high
  no shutdown
!
interface fxs 0/16
  mwi neon cadence 1000ms voltage high
  no shutdown
!
interface fxs 0/17
  mwi neon cadence 1000ms voltage high
  no shutdown
!
interface fxs 0/18
  mwi neon cadence 1000ms voltage high
  no shutdown
!
interface fxs 0/19
  mwi neon cadence 1000ms voltage high
  no shutdown
!
interface fxs 0/20
  mwi neon cadence 1000ms voltage high
  no shutdown
!
interface fxs 0/21
  mwi neon cadence 1000ms voltage high
  no shutdown
!
interface fxs 0/22
  mwi neon cadence 1000ms voltage high
  no shutdown
!
interface fxs 0/23
  mwi neon cadence 1000ms voltage high
  no shutdown
!
interface fxs 0/24
  mwi neon cadence 1000ms voltage high
  no shutdown
!
!
interface fxo 0/0
  description "Doorbox"
  no shutdown
!
!
isdn-group 1
  connect pri 1
!
!
!
!
!
!
!
!
!
!
!
ip route 192.168.0.0 255.255.255.0 192.168.100.254
!
no tftp server
no tftp server overwrite
http server
http secure-server
no snmp agent
no ip ftp server
no ip scp server
no ip sntp server
!
!
!
!
!
!
!
!
sip
sip udp 5060
no sip tcp
!
!
!
voice feature-mode network
voice number-complete disable star
voice transfer-mode local
voice forward-mode local
!
!
!
!
!
!
!
!
voice dial-plan 1 local 9$
voice dial-plan 4 local $
!
!
!
!
!
!
voice trunk T01 type sip
  description "SIP_to_FreePBX"
  match dnis "8-NXX-XXXX" substitute "8-NXX-XXXX"
  match dnis "8-1-NXX-NXX-XXXX" substitute "8-1-NXX-NXX-XXXX"
  match dnis "NXX-XXXX" substitute "9-NXX-XXXX"
  match dnis "1-NXX-NXX-XXXX" substitute "9-1-NXX-NXX-XXXX"
  sip-server primary 192.168.100.3
  registrar primary 192.168.100.3
!
voice trunk T02 type isdn
  description "PRI to PBX"
  resource-selection linear ascending
  connect isdn-group 1
  no early-cut-through
  rtp delay-mode adaptive
!
voice trunk T03 type analog supervision loop-start
  description "Doorbox"
  blind-dial
  trunk-number 6105
  connect fxo 0/0
  rtp delay-mode adaptive
!
!
voice grouped-trunk 1
  description "ToFreePBX"
  trunk T01
  accept *$ cost 0
  accept 9$ cost 0
  accept $ cost 0
!
!
voice grouped-trunk 2
  description "PRI to Mitel"
  trunk T02
  accept $ cost 0
!
!
voice grouped-trunk 3
  description "Doorbox"
  trunk T03
  accept 6105 cost 0
!
!
voice user 5001
  connect fxs 0/1
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5001 T01 register auth-name "5001" password "(Redcated)"
!
!
!
voice user 5002
  connect fxs 0/2
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5002 T01 register auth-name "5002" password "(Redcated)"
!
!
!
voice user 5003
  connect fxs 0/3
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5003 T01 register auth-name "5003" password "(Redcated)"
!
!
!
voice user 5004
  connect fxs 0/4
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5004 T01 register auth-name "5004" password "(Redcated)"
!
!
!
voice user 5005
  connect fxs 0/5
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5005 T01 register auth-name "5005" password "(Redcated)"
!
!
!
voice user 5006
  connect fxs 0/6
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5006 T01 register auth-name "5006" password "(Redcated)"
!
!
!
voice user 5007
  connect fxs 0/7
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5007 T01 register auth-name "5007" password "(Redcated)"
!
!
!
voice user 5008
  connect fxs 0/8
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5008 T01 register auth-name "5008" password "(Redcated)"
!
!
!
voice user 5009
  connect fxs 0/9
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5009 T01 register auth-name "5009" password "(Redcated)"
!
!
!
voice user 5010
  connect fxs 0/10
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5010 T01 register auth-name "5010" password "(Redcated)"
!
!
!
voice user 5011
  connect fxs 0/11
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5011 T01 register auth-name "5011" password "(Redcated)"
!
!
!
voice user 5012
  connect fxs 0/12
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5012 T01 register auth-name "5012" password "(Redcated)"
!
!
!
voice user 5013
  connect fxs 0/13
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5013 T01 register auth-name "5013" password "(Redcated)"
!
!
!
voice user 5014
  connect fxs 0/14
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5014 T01 register auth-name "5014" password "(Redcated)"
!
!
!
voice user 5015
  connect fxs 0/15
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5015 T01 register auth-name "5015" password "(Redcated)"
!
!
!
voice user 5016
  connect fxs 0/16
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5016 T01 register auth-name "5016" password "(Redcated)"
!
!
!
voice user 5017
  connect fxs 0/17
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5017 T01 register auth-name "5017" password "(Redcated)"
!
!
!
voice user 5018
  connect fxs 0/18
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5018 T01 register auth-name "5018" password "(Redcated)"
!
!
!
voice user 5019
  connect fxs 0/19
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5019 T01 register auth-name "5019" password "(Redcated)"
!
!
!
voice user 5020
  connect fxs 0/20
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5020 T01 register auth-name "5020" password "(Redcated)"
!
!
!
voice user 5021
  connect fxs 0/21
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5021 T01 register auth-name "5021" password "(Redcated)"
!
!
!
voice user 5022
  connect fxs 0/22
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5022 T01 register auth-name "5022" password "(Redcated)"
!
!
!
voice user 5023
  connect fxs 0/23
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5023 T01 register auth-name "5023" password "(Redcated)"
!
!
!
voice user 5024
  connect fxs 0/24
  no cos
  first-name "Daniel"
  last-name "Williams"
  password "1234"
  sip-identity 5024 T01 register auth-name "5024" password "(Redcated)"

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.