I’m trying to create a trunk that goes to a Cisco ISR setup as a voice gateway. The ISR is setup with no authentication, and I’ve defined the trunk as follows:
add trunk
name ISRGateway
maximum channels 1
pjsip settings general
authentication none
registration none
sip server: IP address of ISR
On saving it, this is what I get in the output for Asterisk Info
Endpoint: ISRGateway Unavailable 0 of inf
Aor: ISRGateway 0
Contact: ISRGateway/sip:172.16.160.3 5ca5187d8f Unavail nan
Transport: 0.0.0.0-udp udp 3 96 0.0.0.0:5060
Identify: ISRGateway/ISRGateway
Match: 172.16.160.3/32
The idea is to use the ISR to replace my Cisco 1760 that is working however it is using chan_sip
The 1760 trunk chan sip outbound config is:
trunk name: out5032355833
host=172.16.1.6
port=5060
type=peer
insecure=port,invite
dtmfmode=rfc2833
disallow=all
allow=ulaw
The config in the ISR is pretty much a duplicate of the working config in the 1700, of which the relevant bits are:
!
voice rtp send-recv
!
voice service voip
fax protocol pass-through g711alaw
modem passthrough nse codec g711alaw
sip
!
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g729r8 bytes 40
codec preference 3 g723r63 bytes 96
codec preference 4 g726r16 bytes 80
!
!
!
interface FastEthernet0/0
ip address 172.16.1.6 255.255.255.0
ip route-cache flow
speed auto
no cdp enable
voice-port 3/0
no battery-reversal
timing hookflash-out 50
connection plar 5833
description trunk 503-235-5833
caller-id enable
!
!
!
!
dial-peer voice 1 voip
preference 1
destination-pattern 5833
voice-class codec 1
session protocol sipv2
session target sip-server
dtmf-relay rtp-nte
no vad
!
dial-peer voice 11 pots
preference 1
destination-pattern .T
port 3/0
!
!
sip-ua
retry invite 3
retry response 3
retry bye 3
retry cancel 3
timers trying 1000
timers expires 300000
sip-server ipv4:172.16.1.16
!
I tried setting up a pj_sip trunk to the 1700 once before and could never make it work while chan_sip worked immediately. But that was maybe a decade ago.
Virtually every example I’ve found out there going to a Cisco gateway of any kind is chan_sip on the FreePBX side.
I almost forgot - it works for INCOMING calls from the gateway. But not outgoing.
Oh and I also forgot to mention - this is on a parallel FreePBX PBX not the same one that the chan_sip trunks are working on
Any suggestions?