08-21-2013 03:22 AM - edited 03-16-2019 06:58 PM
hello ,
I have configure cisco 2801 for Voip service.The network has 10 phones 6921 and they all were register . The problem is this: I can call and foreign and local numbers but I can not accept call from an external number. Which commands show and debbug can find where is the problem?
Solved! Go to Solution.
08-23-2013 05:24 AM
As indicated above already, you need to configure 38112719xxxx as secondary number to the phone where you want the call to ring.
08-23-2013 06:31 AM
ok, can you help me with that?
08-23-2013 06:41 AM
Just do what is indicated above.
08-23-2013 06:57 AM
how to configure secondary number to the phone?
08-23-2013 07:03 AM
Using 'secondary' in 'number' command.
You can reference the mnual for more information.
08-23-2013 09:12 AM
Hi,
You created outgoing translation rule to replace the calling number from 20x to 38112719xxxx
Now, you create another translation rule for incoming calls which replace the called 38112719xxxx to 20x as below
voice translation-rule 2
rule 1 /38112719xxxx/ /201/
rule 2 /38112719xxxx/ /202/
voice translation-profile SIP-INCOMING
translate called 2
dial-peer voice xxx voip
translation-profile incoming SIP-INCOMING
Note: the secondary number is not needed here, the call will land to the respective inetrnal number.
Regards
Selvarathnam
08-23-2013 09:18 AM
Note: the secondary number is not needed here, the call will land to the respective inetrnal number.
The point is: secondary number configuration allow to avoid all translations with a single, simple command.
Normally, translation is used when there is a range of DID, but often SIP trunk subscribers only have few discontinuous numbers, so the secondary approach if preferable.
Then each one can choose what he wants.
08-23-2013 10:21 AM
I remove my old dial-peer voice 5000 voip an add:
voice translation-rule 2
rule 1 /38112719xxxx/ /201/
rule 2 /38112719xxxx/ /202/
voice translation-profile SIP-INCOMING
translate called 2
dial-peer voice 999 voip
translation-profile incoming SIP-INCOMING
corlist incoming Mobil
session protocol sipv2
session target sip-server
incoming called-number 38112719xxxx
I still have a problem:
Ruter#debug ccsip error
SIP Call error tracing is enabled
Ruter#
Aug 23 19:07:14.288: //-1/0E1D6E6283AC/SIP/Error/ccsip_ipip_media_forking_update_preferred_codec:
MF: Not a Forked SIP leg..
SIP: (11163) Attribute mid, level 1 instance 1 not found.
Aug 23 19:07:14.288: //11163/0E1D6E6283AC/SIP/Error/sipSPI_ipip_update_codec_params_in_channelInfo:
failed to update call entry
Aug 23 19:07:14.288: //11163/0E1D6E6283AC/SIP/Error/sipSPI_ipip_update_call_entry:
failed to update call entry
Aug 23 19:07:14.288: //-1/xxxxxxxxxxxx/SIP/Error/sipSPI_ipip_set_channel_count:
Unable to set CHANNEL_COUNT for callid 11163
Aug 23 19:07:14.288: //11163/0E1D6E6283AC/SIP/Error/sip_iwf_sip_copy_sdp_to_channelInfo:
Channel count is not set at this point. Not SIP-SIP or SET_MODE is not done.
Aug 23 19:07:14.300: //11163/0E1D6E6283AC/SIP/Error/sipSPI_ipip_set_history_info_header:
Not SIP2SIP mode
Aug 23 19:07:29.304: //11163/0E1D6E6283AC/SIP/Error/sipSPI_ipip_set_history_info_header:
Not SIP2SIP mode
Aug 23 19:07:29.308: //-1/xxxxxxxxxxxx/SIP/Error/ccsip_set_release_source_for_peer:
Failed AV set
Aug 23 19:07:29.308: //-1/xxxxxxxxxxxx/SIP/Error/sipSPIGetContentQSIG:
No Inbound Container Created !!!
Aug 23 19:07:29.308: //-1/xxxxxxxxxxxx/SIP/Error/sipSPIGetContentQ931:
No Inbound Container Created !!!
Aug 23 19:07:52.532: //11165/000000000000/SIP/Error/ccsip_api_register_result_ind:
Message Code Class 4xx Method Code 100 received for REGISTER
Aug 23 19:07:52.532: //11165/000000000000/SIP/Error/sipSPIRegPthruProcessResponse:
Error NO RPCB
Aug 23 19:07:52.532: //11166/000000000000/SIP/Error/ccsip_api_register_result_ind:
Message Code Class 4xx Method Code 100 received for REGISTER
Aug 23 19:07:52.532: //11166/000000000000/SIP/Error/sipSPIRegPthruProcessResponse:
Error NO RPCB
Aug 23 19:07:52.536: //11167/000000000000/SIP/Error/ccsip_api_register_result_ind:
Message Code Class 4xx Method Code 100 received for REGISTER
Aug 23 19:07:52.536: //11167/000000000000/SIP/Error/sipSPIRegPthruProcessResponse:
Error NO RPCB
Aug 23 19:07:52.568: //11168/000000000000/SIP/Error/ccsip_api_register_result_ind:
Message Code Class 4xx Method Code 100 received for REGISTER
Aug 23 19:07:52.568: //11168/000000000000/SIP/Error/sipSPIRegPthruProcessResponse:
Error NO RPCB
Aug 23 19:07:52.624: //11169/000000000000/SIP/Error/ccsip_api_register_result_ind:
Message Code Class 4xx Method Code 100 received for REGISTER
Aug 23 19:07:52.624: //11169/000000000000/SIP/Error/sipSPIRegPthruProcessResponse:
Error NO RPCB
Aug 23 19:07:52.804: //11170/000000000000/SIP/Error/ccsip_api_register_result_ind:
Message Code Class 4xx Method Code 100 received for REGISTER
Aug 23 19:07:52.804: //11170/000000000000/SIP/Error/sipSPIRegPthruProcessResponse:
Error NO RPCB
08-23-2013 10:27 AM
Ruter#DEBUG CCSIP CALL
SIP Call statistics tracing is enabled
Ruter#
Aug 23 19:26:13.128: //11244/ABF6220D83B3/SIP/Call/sipSPICallInfo:
The Call Setup Information is:
Call Control Block (CCB) : 0x0x23809A88
State of The Call : STATE_DEAD
TCP Sockets Used : NO
Calling Number : 064294xxxx
Called Number : 38112719xxxx
Source IP Address (Sig ): 10.1.7.110
Destn SIP Req Addr:Port : 10.0.0.18:5060
Destn SIP Resp Addr:Port : 10.0.0.18:5060
Destination Name : 10.0.0.18
Aug 23 19:26:13.128: //11244/ABF6220D83B3/SIP/Call/sipSPIMediaCallInfo:
Number of Media Streams: 1
Media Stream : 1
Negotiated Codec : g729r8
Negotiated Codec Bytes : 20
Nego. Codec payload : 18 (tx), 18 (rx)
Negotiated Dtmf-relay : 0
Dtmf-relay Payload : 0 (tx), 0 (rx)
Source IP Address (Media): 10.1.7.110
Source IP Port (Media): 16686
Destn IP Address (Media): 10.0.0.18
Destn IP Port (Media): 32562
Orig Destn IP Address:Port (Media): [ - ]:0
Aug 23 19:26:13.128: //11244/ABF6220D83B3/SIP/Call/sipSPICallInfo:
Disconnect Cause (CC) : 16
Disconnect Cause (SIP) : 302
08-23-2013 10:34 AM
and I added a command
voice service voip
no supplementary-service sip moved-temporarily
and finally I established a connection.
I am so happy
08-24-2013 02:26 AM
Now I have another problem. When I call number 38112719xxxb it rings on both phones 38112719xxxa (201) and 38112719xxxb (202)
voice translation-rule 2
rule 1 /38112719xxxa/ /201/
rule 2 /38112719xxxb/ /202/
voice translation-profile SIP-INCOMING
translate called 2
dial-peer cor custom
name mobilni
dial-peer cor list Mobil
member mobilni
dial-peer voice 999 voip
corlist incoming Mobil
translation-profile incoming SIP-INCOMING
session protocol sipv2
session target sip-server
incoming called-number 381127195xxxa
dial-peer voice 991 voip
corlist incoming Mobil
translation-profile incoming SIP-INCOMING
session protocol sipv2
session target sip-server
incoming called-number 38112719xxxb
ephone-dn 1 dual-line
number 201
label 201
description 201
name Info 201
corlist incoming Mobil
!
!
ephone-dn 2 dual-line
number 202
label 202
description 202
name Office 202
corlist incoming Mobil
ephone 1
device-security-mode none
video
mac-address B4E9.B001.cccc
max-calls-per-button 2
username "user1" password 201
type 6921
button 1:1
!
!
!
ephone 2
device-security-mode none
video
mac-address B4E9.B001.yyyy
max-calls-per-button 2
username "user2" password 202
type 6921
button 1:2
08-24-2013 02:59 AM
Why you required two dial-peer 999 and 991
no need of incoming called-number command or change it to incoming called-number 38112719....
see how many dial-peer it is created:
#show telephony-service dial-peer
08-24-2013 04:01 AM
I remove dial-peer 991 and change incoming number to 38112719....
but still the same problem
Rute#sh telephony-service dial-peer
dial-peer voice 20001 pots
destination-pattern 201$
huntstop
corlist incoming Mobil
progress_ind setup enable 3
port 50/0/1
dial-peer voice 20002 pots
destination-pattern 202$
huntstop
corlist incoming Mobil
progress_ind setup enable 3
port 50/0/2
08-24-2013 04:14 AM
Please, provide us with the full running-configuration of the router.
08-24-2013 04:47 AM
ip dhcp pool VOICE
network 10.10.108.0 255.255.255.0
default-router 10.10.108.1
option 150 ip 10.10.108.1
!
!
!
ip domain name ims.nnnnnnnnn.com
ip host ims.nnnnnnnn.com 10.0.0.18
no ipv6 cef
voice-card 0
!
!
!
voice service voip
ip address trusted list
ipv4 10.0.0.18 255.255.255.255
gcid
callmonitor
no cti shutdown
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
supplementary-service h450.12
no supplementary-service sip moved-temporarily
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
h323
call start slow
modem passthrough nse codec g711alaw
sip
header-passing
registrar server expires max 1200 min 60
early-offer forced
midcall-signaling passthru
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
!
!
!
!
voice translation-rule 1
rule 1 /201/ /38112719xxxx/
rule 2 /202/ /38112719xxx1/
rule 3 /203/ /38112719xxx2/
rule 4 /204/ /38112719xxx3/
rule 5 /205/ /38112719xxx4/
rule 6 /206/ /38112719xxx5/
rule 7 /207/ /38112719xxx6/
rule 8 /208/ /38112719xxx7/
rule 9 /209/ /38112719xxx8/
rule 10 /210/ /38112719xxx9/
rule 11 /211/ /38112719xx10/
!
voice translation-rule 2
rule 1 /38112719xxxx/ /201/
rule 2 /38112719xxx1/ /202/
rule 3 /38112719xxx2/ /201/
rule 4 /38112719xxx3/ /204/
rule 5 /38112719xxx4/ /205/
rule 6 /38112719xxx5/ /206/
rule 7 /38112719xxx6/ /207/
rule 8 /38112719xxx7/ /208/
rule 9 /38112719xxx8/ /209/
rule 10 /38112719xxx9/ /210/
rule 11 /38112719xx10/ /211/
!
!
voice translation-profile SIP-INCOMING
translate called 2
!
voice translation-profile SIP-OUTGOING
translate calling 1
!
!
!
class-map match-all L3-to-L2_VoIP-Cntrl
match ip dscp af31
class-map match-all L3-to-L2_VoIP-RTP
match ip dscp ef
class-map match-all SIP
match protocol sip
class-map match-all RTP
match protocol rtp
!
policy-map output-L3-to-L2
class L3-to-L2_VoIP-RTP
set cos 5
class L3-to-L2_VoIP-Cntrl
set cos 3
policy-map EthOut
class RTP
!
dial-peer cor custom
name medjunarodni
name mobilni
name fiksni
name lokalni
name besplatni
name igrenasrecu
name sanaplatom
name hitnesluzbe
name servisnesluzbe
!
!
dial-peer cor list POZIVmedjunarodni
member medjunarodni
!
dial-peer cor list POZIVmobilni
member mobilni
!
dial-peer cor list POZIVfiksni
member fiksni
!
dial-peer cor list POZIVlokalni
member lokalni
!
dial-peer cor list POZIVbesplatni
member besplatni
!
dial-peer cor list POZIVsanaplatom
member sanaplatom
!
dial-peer cor list POZIVigrenasrecu
member igrenasrecu
!
dial-peer cor list POZIVhitnesluzbe
member hitnesluzbe
!
dial-peer cor list POZIVservisnesluzbe
member servisnesluzbe
!
dial-peer cor list SviPozivi
member medjunarodni
member mobilni
member fiksni
member lokalni
member besplatni
member igrenasrecu
member sanaplatom
member hitnesluzbe
member servisnesluzbe
!
dial-peer cor list Mobil
member mobilni
member fiksni
member lokalni
member besplatni
member hitnesluzbe
member servisnesluzbe
!
dial-peer cor list Fiksni
member fiksni
member lokalni
member besplatni
member hitnesluzbe
!
!
dial-peer voice 1001 voip
corlist outgoing POZIVmedjunarodni
destination-pattern 00T
session protocol sipv2
session target dns:ims.nnnnnnn.com
dtmf-relay sip-notify rtp-nte
codec g711alaw
!
dial-peer voice 1002 voip
corlist outgoing POZIVfiksni
translation-profile outgoing SIP-OUTGOING
destination-pattern 0[1-3]T
modem passthrough nse codec g711alaw
session protocol sipv2
session target dns:ims.nnnnnnn.com
dtmf-relay sip-notify rtp-nte
codec g711alaw
fax rate disable
no vad
!
dial-peer voice 1003 voip
corlist outgoing POZIVigrenasrecu
translation-profile outgoing SIP-OUTGOING
destination-pattern 0[4-5]T
session protocol sipv2
session target dns:ims.nnnnn.com
dtmf-relay sip-notify rtp-nte
codec g711alaw
!
dial-peer voice 1004 voip
corlist outgoing POZIVmobilni
translation-profile outgoing SIP-OUTGOING
destination-pattern 06T
session protocol sipv2
session target dns:imsn.nnnnnn.com
dtmf-relay sip-notify rtp-nte
codec g711alaw
!
dial-peer voice 1005 voip
corlist outgoing POZIVsanaplatom
translation-profile outgoing SIP-OUTGOING
destination-pattern 0[79]T
session protocol sipv2
session target dns:ims.nnnnnnnnn.com
dtmf-relay sip-notify rtp-nte
codec g711alaw
!
dial-peer voice 1006 voip
corlist outgoing POZIVbesplatni
translation-profile outgoing SIP-OUTGOING
destination-pattern 0[8]T
session protocol sipv2
session target dns:ims.nnnnnnnn.com
dtmf-relay sip-notify rtp-nte
codec g711alaw
!
dial-peer voice 1007 voip
corlist outgoing POZIVlokalni
translation-profile outgoing SIP-OUTGOING
destination-pattern [1-8]T
session protocol sipv2
session target dns:ims.tnnnnnnn.com
dtmf-relay sip-notify rtp-nte
codec g711alaw
!
dial-peer voice 1008 voip
corlist outgoing POZIVhitnesluzbe
translation-profile outgoing SIP-OUTGOING
destination-pattern 9[2-4]T
session protocol sipv2
session target dns:ims.nnnnnnn.com
dtmf-relay sip-notify rtp-nte
codec g711alaw
!
dial-peer voice 1009 voip
corlist outgoing POZIVservisnesluzbe
translation-profile outgoing SIP-OUTGOING
destination-pattern 9[5-8]T
session protocol sipv2
session target dns:ims.nnnnnn.com
dtmf-relay sip-notify rtp-nte
codec g711alaw
!
dial-peer voice 999 voip
corlist incoming Mobil
translation-profile incoming SIP-INCOMING
session protocol sipv2
session target sip-server
incoming called-number 38112719....
!
!
sip-ua
credentials number 38112719xxxx username 38112719xxxx@ims.tnnnnnnnnn.com password 7 010107520F53515E75 realm ims.nnnnnnn.com
registrar dns:ims.nnnnn.com expires 3600
sip-server ipv4:10.0.0.18:5060
host-registrar
refer-ood enable
handle-replaces
!
!
!
gatekeeper
no shutdown
!
!
telephony-service
no auto-reg-ephone
pin 11319 override
max-ephones 24
max-dn 72
ip source-address 10.10.108.1 port 2000
calling-number initiator
service phone videoCapability 1
timeouts interdigit 5
system message MESSAGE
cnf-file location flash:
time-zone 28
time-format 24
date-format dd-mm-yy
max-conferences 8 gain -6
call-forward pattern .T
moh "music-on-hold.au"
dn-webedit
time-webedit
transfer-system full-consult dss
create cnf-files version-stamp 7960 Aug 21 2013 22:05:22
!
!
ephone-dn 1 dual-line
number 201
label 201
description 201
name 201
corlist incoming Mobil
!
!
ephone-dn 2 dual-line
number 202
label 202
description OFFICE 202
name Office 202
corlist incoming Mobil
!
!
ephone-dn 3 dual-line
number 203
label 203
corlist incoming Mobil
!
!
ephone-dn 4 dual-line
number 204
label 204
corlist incoming Mobil
!
!
ephone-dn 5 dual-line
number 205
label 205
description 205
name 205
corlist incoming Mobil
!
!
ephone-dn 6 dual-line
number 206
label 206
description 206
corlist incoming Mobil
!
!
ephone-dn 7 dual-line
number 207
label 207
name 207
corlist incoming Mobil
!
!
ephone-dn 8 dual-line
number 208
label 208
description 208
name 208
corlist incoming Mobil
!
!
ephone-dn 9 dual-line
number 209
label 209
description 209
name 209
corlist incoming Mobil
!
!
ephone-dn 10 dual-line
number 210
label 210
description 210
name 210
corlist incoming Mobil
!
!
ephone-dn 11 dual-line
number 211
label 211
description 211
name 211
corlist incoming Mobil
!
ephone 1
device-security-mode none
video
mac-address B4E9.B001.xxxx
max-calls-per-button 2
username "user1" password 201
type 6921
button 1:1
!
!
!
ephone 2
device-security-mode none
video
mac-address B4E9.B001.vvvv
max-calls-per-button 2
username "user2" password 202
type 6921
button 1:2
!
!
!
ephone 3
device-security-mode none
video
username "user3" password 203
!
!
!
ephone 4
device-security-mode none
video
mac-address B4E9.B001.gggg
max-calls-per-button 2
username "user4" password 204
type 6921
button 1:4
!
!
!
ephone 5
device-security-mode none
video
mac-address B4E9.B001.hhhh
max-calls-per-button 2
username "user5" password 205
type 6921
button 1:5
!
!
!
ephone 7
device-security-mode none
video
mac-address B4E9.B001.jjjjj
max-calls-per-button 2
username "user7" password 207
type 6921
button 1:7
!
!
!
ephone 8
device-security-mode none
video
mac-address B4E9.B001.hhhh
max-calls-per-button 2
username "user8" password 208
type 6921
button 1:8
!
!
!
ephone 9
device-security-mode none
video
mac-address B4E9.B001.jiii
max-calls-per-button 2
username "user9" password 209
type 6921
button 1:9
!
!
!
ephone 10
device-security-mode none
video
mac-address B4E9.B001.rrrr
max-calls-per-button 2
username "user10" password 210
type 6921
button 1:10
!
!
!
ephone 11
device-security-mode none
video
max-calls-per-button 2
username "user11" password 211
type 6921
!
!
!
!
line con 0
login local
line aux 0
line 2
--More--
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: