I have a CME 7.1 on a Cisco 2811 router.
I'm trying to configure more than one SIP account. I have two or more numbers taken from the same SIP provider, but each one with different username and password.
what I have done until now is this:
voice service voip
allow-connections sip to sip
voice translation-rule 1
rule 1 /1003/ /0690282XXX/
rule 2 /1051/ /0690282YYY/
voice translation-rule 2
rule 1 /0690282XXX/ /1003/
rule 2 /0690282YYY/ /1051/
voice translation-profile In-Sip
translate called 2
voice translation-profile out-SipTrunk
translate calling 1
dial-peer voice 220 voip
translation-profile incoming In-Sip
translation-profile outgoing out-SipTrunk
voice-class sip dtmf-relay force rtp-nte
session protocol sipv2
session target sip-server
credentials username 0690282XXX password 7 XXX realm voip.eutelia.it
credentials username 0690282YYY password 7 YYY realm voip.eutelia.it
authentication username 0690282XXX password 7 XXX realm voip.eutelia.it
registrar dns:voip.eutelia.it expires 3600
With the two "credentials" commands I was able to register the two numbers towards the SIP provider and it's possible to recieve the calls directed to 0690282XXX and 0690282YYY on the phones.
show sip-ua register status
Line peer expires(sec) registered P-Associated-URI
============ ============= ============ =========== ================
0690282YYY -1 1042 yes
0690282XXX -1 1015 yes
Instead calling from this number to outside it's impossible.
To resolve this I have added the command "authentication username 0690282XXX ..." but I was able to call outside using only the 0690282XXX.
Sip-ua can manage only one authentication string.
How can I make this work?