09-14-2017 03:50 AM - edited 03-15-2019 05:39 AM
Hello,
We want to setup CUBE having multiple SIP trunks, but we want to totally separate the dial-peers for every SIP trunk so that when the call will come on CUBE from provider 1 it will only match the dial peers of that specific SIP trunk.
Incoming call from provider A ---SIP Trunk 1 (Provider A) ---- Customer A
Incoming call from provider B ---SIP Trunk 2 (Provider B) ---- Customer B
Incoming call from provider C ---SIP Trunk 3 (Provider C)---- Customer C
And same for outgoing calls.
dial-peer voice 1 voip
preference 2
destination-pattern .T
session protocol sipv2
session target ipv4:1.1.1.1:5100
session transport udp
incoming called-number .
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
dial-peer voice 8006 voip
corlist outgoing PROVIDERB
translation-profile outgoing A-SIP-OUT
destination-pattern .T
session protocol sipv2
session target dns:abc.com
session transport udp
voice-class codec 1
dtmf-relay rtp-nte
no vad
!
I have configured the above dial peers, when incoming call is coming through Provider 2 router is using dial-peer 1 as incoming dial peer.
Can anyone please suggest me which method can be used for this setup?