02-10-2009 02:57 AM - edited 03-15-2019 04:06 PM
Hi,
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
sip
registrar server
!
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
destination-pattern [0,3]T
voice-class sip dtmf-relay force rtp-nte
session protocol sipv2
session target sip-server
dtmf-relay rtp-nte
codec g711alaw
no vad
!
!
sip-ua
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
no remote-party-id
registrar dns:voip.eutelia.it expires 3600
sip-server dns:voip.eutelia.it
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?
Thanks