I can get a authenticated SIP binding to run a PRI and that works great (basic config below)
I can get a SIP trunk (no binding) to allow the FXS lines to individually register (basic config below)
but----the FXS lines dont register on the authenticated binding for the PBX
or the FXS lines use PBX caller ID with unauthenticated binding
Ive seen others ask about combining these features but not specifically a scenario with Metaswitch.
+++++
PRI------simple and works
+++++
voice trunk T01 type sip
sip-server primary x.x.x.x
registrar primary x.x.x.x
registrar threshold absolute 20
dial-string source to
codec-list TRUNK both
authentication username "Adtran_Test" password "abcdefg"
!
voice trunk T02 type isdn
resource-selection circular descending
connect isdn-group 1
modem-passthrough
rtp delay-mode adaptive
codec-list PRI-Trunk
!
!
voice grouped-trunk SIP
trunk T01
accept $ cost 0
!
!
voice grouped-trunk PRI
trunk T02
accept $ cost 0
!
!
----------------------------------
++++++
FXS voice lines -- works great
++++++
voice trunk T01 type sip
sip-server primary x.x.x.x
registrar primary x.x.x.x
registrar threshold absolute 20
dial-string source to
codec-list TRUNK both
!
!
voice grouped-trunk SIP
trunk T01
accept $ cost 0
!
!
voice user 1234567890
connect fxs 0/1
no cos
password "1234"
sip-identity 1234567890 T01 register auth-name "1234567890" password "easyas123"
vad
codec-list USERS
Have the Metaswitch add the DIDs for the FXS lines to the registered trunk and just program them as voice users without individually registering. The TA900 will match the number of the voice user and route the call appropriately.
I have not got back around to that little project but I'm sure you are right.
I may have stopped testing before finishing the matrix of possible configurations