I thought I could use CUBE and CME on the same router, but I am struggling to get it to work.
Both work on their own:
a) I configure the sip trunk to the provider using sip-ua. I can register successfully and see inbound PSTN calls coming in.
or I don't above and
b) I configure voice register global / mode cme and voice service voip / sip / registrar server and my phone will register with CME.
I am suspecting the problem to be here:
In case of a), I configure a bind all source-interface to the provider facing Dialer 1. SIP-Trunk works, phones don't.
In case of b), I configure a bind all source-interface to the Voice VLAN SVI. Phones register, SIP-Trunk does not.
I read that I can also set this configuration per dial-peer, but I did not understand what the DPs would look like if CUBE and CME are on the same device. I tried to configure a dial-peer for my phone, destination-pattern 1111 and then set voice-class sip bind media source-interface Vlan777, but it did not seem to make any difference. I probably fail to understand what to match the dial-peers on and how many of them I would require at a minimum..
I would greatly appreciate if someone could put me in the right direction.
Config for a)
voice service voip
ip address trusted list
ipv4 1.1.1.1
mode border-element
allow-connections sip to sip
address-hiding
sip
bind all source-interface Dialer1
sip-ua
credentials username 111111 password 7 111111111111111 realm provider.com
authentication username 111111 password 7 111111111111111
registrar ipv4:1.1.1.1 expires 120
sip-server ipv4:1.1.1.1
Config for b)
voice service voip
sip
registrar server
bind all source-interface Vlan777
voice register global
mode cme
source-address 10.70.0.254 port 5060
max-dn 20
max-pool 20
load 9971 sip9971.9-4-2SR4-1
authenticate register
create profile sync 005503224322506A
!
voice register dn 1
number 1111
!
voice register pool 1
id mac aaaa.bbbb.cccc
session-transport tcp
type 9971
number 1 dn 1
dtmf-relay rtp-nte
username 1111 password 1111
codec g711ulaw
!