08-01-2025 10:06 AM - edited 08-01-2025 10:07 AM
Hi all,
I recently got an used VG224 for my lab, successfully configured a FreePBX which I tested with softphones, and now comes the time to configure the gateway. I managed to configure the local interfaces, but I don't understand how I can use different SIP accounts associated with different FXS interfaces.
08-01-2025 10:08 AM - edited 08-01-2025 10:10 AM
Here is the current configuration
VG>en
VG#sh run
Building configuration...
Current configuration : 2448 bytes
!
version 12.4
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname VG
!
boot-start-marker
boot-end-marker
!
logging message-counter syslog
!
no aaa new-model
clock timezone CET 1
clock summer-time CEST recurring
clock save interval 8
ip source-route
ip cef
!
!
no ipv6 cef
!
!
!
!
!
voice call send-alert
voice rtp send-recv
!
voice service pots
!
voice service voip
fax protocol pass-through g711ulaw
modem passthrough nse codec g711ulaw
sip
!
voice class codec 1
codec preference 1 g711ulaw
!
!
!
!
!
!
!
!
!
!
!
!
!
voice-card 0
!
!
application
service dsapp
param callWaiting TRUE
param callTransfer TRUE
!
global
service default dsapp
!
!
archive
log config
hidekeys
!
!
!
!
!
interface FastEthernet0/0
ip address dhcp
duplex full
speed auto
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
!
ip forward-protocol nd
ip route profile
no ip http server
!
!
!
control-plane
!
!
!
voice-port 2/0
timeouts call-disconnect 5
timing hookflash-in 110 70
station-id name Main_Phone
station-id number 6801
caller-id enable
!
voice-port 2/1
timeouts call-disconnect 5
timing hookflash-in 110 70
station-id name Shop_Phone
station-id number 6802
caller-id enable
!
voice-port 2/2
!
voice-port 2/3
!
voice-port 2/4
!
voice-port 2/5
!
voice-port 2/6
!
voice-port 2/7
!
voice-port 2/8
!
voice-port 2/9
!
voice-port 2/10
!
voice-port 2/11
!
voice-port 2/12
!
voice-port 2/13
!
voice-port 2/14
!
voice-port 2/15
!
voice-port 2/16
!
voice-port 2/17
!
voice-port 2/18
!
voice-port 2/19
!
voice-port 2/20
!
voice-port 2/21
!
voice-port 2/22
!
voice-port 2/23
!
ccm-manager fax protocol cisco
!
!
!
!
dial-peer voice 10 voip
description **Outgoing Calls to FreePBX - Outbound calling**
destination-pattern .T
voice-class codec 1
session protocol sipv2
session target ipv4:[REDACTED]
dtmf-relay rtp-nte
no vad
!
dial-peer voice 11 voip
description **Outgoing Calls to FreePBX - 4 digit Internal**
destination-pattern ....
voice-class codec 1
session protocol sipv2
session target ipv4:[REDACTED]
dtmf-relay rtp-nte
no vad
!
dial-peer voice 6801 pots
description **Extension on VG224 port - 6801**
destination-pattern 6801
port 2/0
!
dial-peer voice 6802 pots
description **Extension on VG224 port - 6802**
destination-pattern 6802
port 2/1
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
end
VG#
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide