cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1117
Views
0
Helpful
4
Replies

Connect authenticated SIP trunk from CME to ITSP sip server

Lukas Krejci
Level 1
Level 1

Hello,

we had to move our CME from public IP behind NAT, so our ISTP changed configuration for our SIP trunk to register with authentication. Now I have LoginID, AuthID and Password that I have added to the configuration. The problem is that I can still call between our internal phones, but incoming and outgoing calls are not working.

 

This is the current configuration:

 

version 15.1
service timestamps debug datetime msec localtime
service timestamps log datetime msec localtime
no service password-encryption
!
hostname voip_router
!
boot-start-marker
boot-end-marker
!
!
logging buffered 64000
no logging console
!
no aaa new-model
clock timezone CET 1 0
clock summer-time METDST recurring last Sun Mar 2:00 last Sun Oct 3:00
!
no ipv6 cef
no ip source-route
ip cef
!
!
ip dhcp pool POOL1
import all
network 192.168.20.0 255.255.255.0
option 150 ip 192.168.20.1
default-router 192.168.20.254
dns-server 192.168.20.254
lease 7
!
ip dhcp pool POOL2
import all
network 10.20.52.0 255.255.255.0
option 150 ip 10.20.52.1
default-router 10.20.52.1
dns-server 10.20.52.1
lease 7
!
!
ip domain name nsppeer.sipserver.cz
ip name-server 192.168.2.100
multilink bundle-name authenticated
!
!
!
!
!
crypto pki token default removal timeout 0
!
crypto pki trustpoint TP-self-signed-1508924877
enrollment selfsigned
subject-name cn=IOS-Self-Signed-Certificate-1508924877
revocation-check none
rsakeypair TP-self-signed-1508924877
!
!
voice-card 0
dsp services dspfarm
!
!
!
voice service voip
allow-connections h323 to h323
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
no supplementary-service sip moved-temporarily
no supplementary-service sip refer
no supplementary-service sip handle-replaces
fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none
sip
registrar server
!
voice class codec 1
codec preference 1 g711alaw
codec preference 2 g711ulaw
!
!
voice register global
mode cme
source-address 10.20.52.1 port 5060
max-dn 100
max-pool 50
authenticate register
authenticate realm gi.local
tftp-path flash:
create profile sync 0048234055148343
!
!
voice translation-rule 1
rule 1 /^5880083\(..\)/ /\1/
!
voice translation-rule 2
rule 1 /^9\(.*\)/ /\1/
!
voice translation-rule 3
rule 1 /^\(..\)$/ /5880083\1/
!
voice translation-rule 4
rule 1 /^\(.*\)/ /9\1/
!
!
voice translation-profile IN
translate calling 4
translate called 1
!
voice translation-profile OUT
translate calling 3
translate called 2
!
!
!
!
!
redundancy
!
!
!
!
!
interface Loopback0
ip address 85.160.71.87 255.0.0.0
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
description LAN$ETH-LAN$
no ip address
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 192.168.20.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface GigabitEthernet0/1
description WAN$ETH-LAN$
ip address 192.168.2.1 255.255.255.0
ip nat outside
ip virtual-reassembly in
duplex auto
speed auto
!
interface GigabitEthernet0/2
description $ES_LAN$
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/2.10
encapsulation dot1Q 10
ip address 10.20.51.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
interface GigabitEthernet0/2.20
encapsulation dot1Q 20
ip address 10.20.52.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
!
ip forward-protocol nd
!
ip http server
ip http authentication local
ip http secure-server
ip http path /gui
!
ip nat inside source list 20 interface GigabitEthernet0/1 overload
ip route 0.0.0.0 0.0.0.0 192.168.2.100
ip route 192.168.110.0 255.255.255.0 192.168.20.254
!
access-list 20 permit 192.168.20.0 0.0.0.255
access-list 103 permit ip host 192.168.2.100 any
access-list 103 permit ip host 195.122.201.48 any
access-list 103 permit ip host 195.122.207.102 any
!
!
tftp-server flash:SCCP69xx.9-1-1-0.zz.sgn alias SCCP69xx.9-1-1-0.zz.sgn
tftp-server flash:DSP69xx.0-0-0-4.zz.sgn alias DSP69xx.0-0-0-4.zz.sgn
tftp-server flash:BOOT69xx.0-0-0-14.zz.sgn alias BOOT69xx.0-0-0-14.zz.sgn
tftp-server flash:spa50x-30x-7-5-4.bin alias spa50x-30x-7-5-4.bin
tftp-server flash:spa525g-7-5-4.bin alias spa525g-7-5-4.bin
tftp-server flash:spa525g-7-5-4-bt.bin alias spa525g-7-5-4-bt.bin
tftp-server flash:SCCP69xx.9-4-1-3SR2.zz.sgn alias SCCP69xx.9-4-1-3SR2.zz.sgn
tftp-server flash:DSP69xx.12-4-122-99.131025.zz.sgn alias DSP69xx.12-4-122-99.131025.zz.sgn
!
control-plane
!
call threshold global cpu-avg low 68 high 75
call threshold global total-mem low 75 high 85
call threshold global total-calls low 8 high 10
!
!
!
mgcp profile default
!
!
dial-peer voice 1 voip
translation-profile incoming IN
session protocol sipv2
session target dns:sip.sipserver.cz
incoming called-number .%
no voice-class sip tel-config to-hdr
dtmf-relay rtp-nte
codec g711alaw
no vad
authentication username AuthID password Password realm xxx.net
!
dial-peer voice 2 voip
description "Outgoing ... "
translation-profile outgoing OUT
destination-pattern 9T
session protocol sipv2
session target dns:sip.sipserver.cz
dtmf-relay sip-notify rtp-nte
codec g711alaw
no vad
authentication username AuthID password Password realm xxx.net
!
!
presence
!
gateway
timer receive-rtp 1200
!
sip-ua
credentials number LoginID username AuthID password Password realm xxx.net
keepalive target dns:sip.sipserver.cz
authentication username AuthId password Password realm xxx.net
timers connect 100
sip-server dns:sip.sipserver.cz

registrar dns:sip.sipserver.cz expires 3600
!
!
!
gatekeeper
shutdown
!
!
telephony-service
no auto-reg-ephone
max-ephones 50
max-dn 100
ip source-address 10.20.52.1 port 2000
max-redirect 5
timeouts interdigit 5
timeouts busy 5
cnf-file location flash:
load 6921 SCCP69xx.9-1-1-0.loads
load 6941 SCCP69xx.9-1-1-0.loads
load 6961 SCCP69xx.9-1-1-0.loads
time-format 24
date-format dd-mm-yy
dialplan-pattern 1 5880083.. extension-length 2 extension-pattern ..
max-conferences 8 gain -6
call-forward pattern .T
web admin system name root secret 5 $1$y9FH$E3BthLUA0.EQ061FnAzNB.
dn-webedit
time-webedit
transfer-system full-consult
transfer-pattern .T
create cnf-files version-stamp 7960 Nov 19 2018 05:39:34
!
!
!
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
login local
transport input telnet ssh
!
scheduler allocate 20000 1000
ntp server 194.160.23.2
end

 

I would be very grateful for any help.

4 Replies 4

Hi Lukas,

Under Voice Service voip -->sip

add:

 

bind all source-interface GigabitEthernet0/2.20

 

Activate a debug ccsip messages , make a call and capture the output.

 

Please post the result of the debug output here

 

 

Thanks a lot

 

 

Best Regards

 

Carlo

Please rate all helpful posts "The more you help the more you learn"

Hi Carlo,

thank you for your answer.

 

In the meantime, the registration the the ISTP is now working so that we can make outgoing calls. Now there are two main problems, that we need to solve:

 

1. Our phones are registering twice - one for our CME is OK, but now they are registering even to the ISTP. I have tryied solutions, that I found (no-reg both, restarting CME, terstarting phones), but with no luck. 

Edit: This twice registration remains only for SCCP phones - the SIP phones are OK and CME is not sending their registration to the ITSP. Example of this second registration to the ITSP:

Sep  2 09:30:53.058: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Sent: 
REGISTER sip:sip.sipserver.cz:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.2.1:5060;branch=z9hG4bKA5310B7
From: <sip:588008321@sip.sipserver.cz>;tag=3B976F8-BFA
To: <sip:588008321@sip.sipserver.cz>
Date: Wed, 02 Sep 2020 07:30:53 GMT
Call-ID: 9DAC1480-EC1211EA-88BA9098-170B4059
User-Agent: Cisco-SIPGateway/IOS-12.x
Max-Forwards: 70
Timestamp: 1599031853
CSeq: 46 REGISTER
Contact: <sip:588008321@192.168.2.1:5060>
Expires:  3600
Supported: path
Content-Length: 0

2. Incoming calls are not working - our CME is replying with 403 Forbidden, see this messages log:

 

Sep  2 07:22:38.657: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
INVITE sip:588008311@192.168.2.1:5060;transport=udp SIP/2.0
Call-ID: 29963-NF-31dfeb52-7b6d017e5@sip.sipserver.cz
Contact: <sip:195.122.207.107:5060>
Content-Type: application/sdp
CSeq: 600327315 INVITE
From: "777028067" <sip:777028067@sip.sipserver.cz;user=phone>;tag=29963-IZ-31dfeb53-14e0eda00
Max-Forwards: 28
Record-Route: <sip:195.122.207.107:5060;lr>;session=47906
To: <sip:588008320@195.122.207.107:5060;user=phone>
Via: SIP/2.0/UDP 195.122.207.107:5060;branch=z9hG4bK-NHXT-c3c72b69-067e85a6
Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,SUBSCRIBE,NOTIFY,UPDATE,REFER,REGISTER,INFO
User-Agent: Cirpack/v4.88 (gw_sip)
Content-Length: 334

v=0
o=anonymous 159902743669 159902743669 IN IP4 195.122.207.107
s=SIP Call
c=IN IP4 195.122.201.50
t=0 0
m=audio 32656 RTP/AVP 8 18 101
b=AS:82
a=rtpmap:8 PCMA/8000/1
a=rtpmap:18 G729/8000/1
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20
a=sendrecv
a=sqn:0
a=cdsc: 1 image udptl t38

Sep  2 07:22:38.665: //4086/26BC1F2D88D8/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 195.122.207.107:5060;branch=z9hG4bK-NHXT-c3c72b69-067e85a6
From: "777028067" <sip:777028067@sip.sipserver.cz;user=phone>;tag=29963-IZ-31dfeb53-14e0eda00
To: <sip:588008320@195.122.207.107:5060;user=phone>
Date: Wed, 02 Sep 2020 05:22:38 GMT
Call-ID: 29963-NF-31dfeb52-7b6d017e5@sip.sipserver.cz
CSeq: 600327315 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-12.x
Content-Length: 0


Sep  2 07:22:38.665: //4086/26BC1F2D88D8/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 195.122.207.107:5060;branch=z9hG4bK-NHXT-c3c72b69-067e85a6
From: "777028067" <sip:777028067@sip.sipserver.cz;user=phone>;tag=29963-IZ-31dfeb53-14e0eda00
To: <sip:588008320@195.122.207.107:5060;user=phone>;tag=3440EE4-1C18
Date: Wed, 02 Sep 2020 05:22:38 GMT
Call-ID: 29963-NF-31dfeb52-7b6d017e5@sip.sipserver.cz
CSeq: 600327315 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-12.x
Reason: Q.850;cause=21
Content-Length: 0


Sep  2 07:22:38.697: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
ACK sip:588008311@192.168.2.1:5060;transport=udp SIP/2.0
Call-ID: 29963-NF-31dfeb52-7b6d017e5@sip.sipserver.cz
CSeq: 600327315 ACK
From: "777028067" <sip:777028067@sip.sipserver.cz;user=phone>;tag=29963-IZ-31dfeb53-14e0eda00
Max-Forwards: 28
To: <sip:588008320@195.122.207.107:5060;user=phone>;tag=3440EE4-1C18
Via: SIP/2.0/UDP 195.122.207.107:5060;branch=z9hG4bK-NHXT-c3c72b69-067e85a6
Content-Length: 0

Hera is part of our current config:

...
voice service voip allow-connections h323 to h323 allow-connections h323 to sip allow-connections sip to h323 allow-connections sip to sip no supplementary-service sip moved-temporarily no supplementary-service sip refer no supplementary-service sip handle-replaces fax protocol t38 version 0 ls-redundancy 0 hs-redundancy 0 fallback none sip registrar server ! voice register global mode cme source-address 10.20.52.1 port 5060 no outbound-proxy max-dn 100 max-pool 50 authenticate register authenticate realm gi.local tftp-path flash: create profile sync 0048234055148346 ! voice register dn 8 number 60 name Rozvodna 11,5 kV no-reg label Rozvodna 11,5 kV ! voice register dn 9 number 88 name xlitetest no-reg label xlite ! voice register dn 10 number 40 name Rozvodna 400 V no-reg label Rozvodna 400 V ! voice register dn 11 number 00 name Velin no-reg label Velin ! voice register dn 12 number 41 name Udrzba no-reg label Udrzba ! voice register dn 13 number 42 name Datova rozvodna no-reg label Datova rozvodna ! voice register dn 14 number 61 name Rozvodna 110 kV no-reg label Rozvodna 110 kV ! voice register dn 15 number 43 name Zasedacka no-reg label Zasedacka ! voice register pool 1 id mac 3CCE.73D2.BF6A number 1 dn 8 dtmf-relay sip-notify username rozvodna115kV password rozvodna115kV codec g711alaw ! voice register pool 2 id mac DEAD.BEEF.0001 number 2 dn 9 dtmf-relay sip-notify username xlsip password xlsip codec g711ulaw ! voice register pool 3 id mac 3CCE.73D2.BEE8 number 3 dn 10 dtmf-relay sip-notify username rozvodna400V password rozvodna400V codec g711alaw ! voice register pool 4 id mac 7081.05B3.B500 number 4 dn 11 username velin password velin codec g711alaw ! voice register pool 5 id mac 7081.05B3.B5A6 number 5 dn 12 username udrzba password udrzba codec g711alaw ! voice register pool 6 id mac 3CCE.73D2.BEE7 number 6 dn 13 username datroz password datroz codec g711alaw ! voice register pool 7 id mac 3CCE.73D2.BF0A number 7 dn 14 dtmf-relay sip-notify username rozvodna110kV password rozvodna110kV codec g711alaw ! voice register pool 8 id mac 7C2F.80B9.B030 number 8 dn 15 dtmf-relay sip-notify username zasedacka password zasedacka codec g711alaw ! ! ! voice translation-rule 1 rule 1 /^5880083\(..\)/ /\1/ ! voice translation-rule 2 rule 1 /^9\(.*\)/ /\1/ ! voice translation-rule 3 rule 1 /^\(..\)$/ /5880083\1/ ! voice translation-rule 4 rule 1 /^\(.*\)/ /9\1/ ! ! voice translation-profile IN translate calling 4 translate called 1 ! voice translation-profile OUT translate calling 3 translate called 2 ! interface Loopback0 ip address 85.160.71.87 255.0.0.0 ! interface Embedded-Service-Engine0/0 no ip address shutdown ! interface GigabitEthernet0/0 description LAN$ETH-LAN$ no ip address ip virtual-reassembly in duplex auto speed auto ! interface GigabitEthernet0/0.20 encapsulation dot1Q 20 ip address 192.168.20.1 255.255.255.0 ip nat inside ip virtual-reassembly in ! interface GigabitEthernet0/1 description WAN$ETH-LAN$ ip address 192.168.2.1 255.255.255.0 ip nat outside ip virtual-reassembly in duplex auto speed auto ! interface GigabitEthernet0/2 description $ES_LAN$ no ip address duplex auto speed auto ! interface GigabitEthernet0/2.10 encapsulation dot1Q 10 ip address 10.20.51.1 255.255.255.0 ip nat inside ip virtual-reassembly in ! interface GigabitEthernet0/2.20 encapsulation dot1Q 20 ip address 10.20.52.1 255.255.255.0 ip nat inside ip virtual-reassembly in ! ip forward-protocol nd ! ip http server ip http authentication local ip http secure-server ip http path /gui ! ip nat inside source list 20 interface GigabitEthernet0/1 overload ip route 0.0.0.0 0.0.0.0 192.168.2.100 ip route 192.168.110.0 255.255.255.0 192.168.20.254 ! access-list 20 permit 192.168.20.0 0.0.0.255 access-list 103 permit ip host 192.168.2.100 any access-list 103 permit ip host 195.122.201.48 any access-list 103 permit ip host 195.122.207.102 any ! ! tftp-server flash:SCCP69xx.9-1-1-0.zz.sgn alias SCCP69xx.9-1-1-0.zz.sgn tftp-server flash:DSP69xx.0-0-0-4.zz.sgn alias DSP69xx.0-0-0-4.zz.sgn tftp-server flash:BOOT69xx.0-0-0-14.zz.sgn alias BOOT69xx.0-0-0-14.zz.sgn tftp-server flash:spa50x-30x-7-5-4.bin alias spa50x-30x-7-5-4.bin tftp-server flash:spa525g-7-5-4.bin alias spa525g-7-5-4.bin tftp-server flash:spa525g-7-5-4-bt.bin alias spa525g-7-5-4-bt.bin tftp-server flash:SCCP69xx.9-4-1-3SR2.zz.sgn alias SCCP69xx.9-4-1-3SR2.zz.sgn tftp-server flash:DSP69xx.12-4-122-99.131025.zz.sgn alias DSP69xx.12-4-122-99.131025.zz.sgn ! control-plane ! call threshold global cpu-avg low 68 high 75 call threshold global total-mem low 75 high 85 call threshold global total-calls low 8 high 10 ! ! ! mgcp profile default ! ! dial-peer voice 1 voip translation-profile incoming IN session protocol sipv2 session target dns:sip.sipserver.net incoming called-number .% no voice-class sip tel-config to-hdr dtmf-relay rtp-nte codec g711alaw no vad ! dial-peer voice 2 voip description "Outgoing ... " translation-profile outgoing OUT destination-pattern 9T session protocol sipv2 session target dns:sip.sipserver.net dtmf-relay sip-notify rtp-nte codec g711alaw no vad ! ! presence ! gateway timer receive-rtp 1200 ! sip-ua sip-server dns:sip.sipserver.cz credentials number XXX username XXX password 7 XXX realm sip.sipserver.net keepalive target dns:sip.sipserver.cz authentication username XXX password 7 XXX realm sip.sipserver.net retry invite 2 retry register 2 timers connect 100 registrar dns:sip.sipserver.cz expires 3600 ! ! ! gatekeeper shutdown ! ! telephony-service no auto-reg-ephone max-ephones 50 max-dn 100 no-reg both ip source-address 10.20.52.1 port 2000 max-redirect 5 timeouts interdigit 5 timeouts busy 5 cnf-file location flash: load 6921 SCCP69xx.9-1-1-0.loads load 6941 SCCP69xx.9-1-1-0.loads load 6961 SCCP69xx.9-1-1-0.loads time-format 24 date-format dd-mm-yy dialplan-pattern 1 5880083.. extension-length 2 extension-pattern .. max-conferences 8 gain -6 call-forward pattern .T dn-webedit time-webedit transfer-system full-consult transfer-pattern .T create cnf-files version-stamp 7960 Sep 01 2020 16:10:06 ! ! ephone-dn 1 number 33 no-reg primary description Vedouci provozu name Vedouci provozu ! ! ephone-dn 2 number 20 no-reg primary description Spravce IT name Spravce IT ! ! ephone-dn 3 number 22 no-reg primary description Spravce MaR name Spravce MaR ! ! ephone-dn 4 number 24 no-reg primary description Sklad name Sklad ! ! ephone-dn 5 number 23 no-reg primary description Administrativa name Administrativa ! ! ephone-dn 6 number 25 no-reg primary description CHUV name CHUV ! ! ephone-dn 7 number 21 no-reg primary description Spravce elektro name Spravce elektro ! ! ephone 1 mac-address 2C54.2D6A.98E4 max-calls-per-button 2 provision-tag 1 speed-dial 1 9588008040 label "Reditel" speed-dial 2 9588008041 label "Sekretariat" type 6921 button 1:1 ! ! ! ephone 2 mac-address 2C54.2D6A.98EF max-calls-per-button 2 provision-tag 2 speed-dial 1 9588008041 label "Miriam" speed-dial 2 9777028067 label "Mobil" type 6921 button 1:2 ! ! ! ephone 3 mac-address 2C54.2D6A.AB7E max-calls-per-button 2 provision-tag 3 type 6921 button 1:3 ! ! ! ephone 4 mac-address 2C54.2D6A.C230 max-calls-per-button 2 provision-tag 4 type 6921 button 1:4 ! ! ! ephone 5 mac-address 2C54.2D6A.B4F0 max-calls-per-button 2 provision-tag 5 type 6921 button 1:5 ! ! ! ephone 6 mac-address 2C54.2D6A.BB26 max-calls-per-button 2 provision-tag 6 type 6921 button 1:6 ! ! ! ephone 7 mac-address 2C54.2D6A.C22D max-calls-per-button 2 provision-tag 7 type 6921 button 1:7 ! ! ! ! line con 0 line aux 0 line 2 no activation-character no exec transport preferred none transport input all transport output pad telnet rlogin lapb-ta mop udptn v120 ssh stopbits 1 line vty 0 4 login local transport input telnet ssh ! scheduler allocate 20000 1000 ntp server 194.160.23.2 end

 

So another progress for the problem number 2 - I have added the following lines to the "voice service voip":

 

 ip address trusted list
  ipv4 0.0.0.0 0.0.0.0

Now, the CME is sending back "SIP/2.0 404 Not Found":

 

 

Sep  2 14:38:13.701: //7019/006E13C7915B/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 195.122.207.107:5060;branch=z9hG4bK-OUQE-c4011c99-787294f7
From: "777028067" <sip:777028067@sip.sipserver.cz;user=phone>;tag=13241-CQ-32179313-0cc3bbf55
To: <sip:588008341@195.122.207.107:5060;user=phone>;tag=4D2D870-1267
Date: Wed, 02 Sep 2020 12:38:13 GMT
Call-ID: 13241-ZT-32179312-2555cc825@sip.sipserver.cz
CSeq: 602883599 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-12.x
Reason: Q.850;cause=1
Content-Length: 0

Can you please help me with this? 

 

Thank you very much.

Now when I try to debug with voip ccapi, I get the following log:

Sep  2 15:48:42.235: //-1/xxxxxxxxxxxx/CCAPI/cc_set_post_tagdata:
   CALL_ERROR; Avlist Set Is Failed
Sep  2 15:48:42.235: //-1/D8D52C5892B9/CCAPI/cc_api_display_ie_subfields:
   cc_api_call_setup_ind_common:
   cisco-username=777028067
   ----- ccCallInfo IE subfields -----
   cisco-ani=777028067
   cisco-anitype=0
   cisco-aniplan=0
   cisco-anipi=0
   cisco-anisi=0
   dest=588008311
   cisco-desttype=0
   cisco-destplan=0
   cisco-rdie=FFFFFFFF
   cisco-rdn=
   cisco-rdntype=0
   cisco-rdnplan=0
   cisco-rdnpi=-1
   cisco-rdnsi=-1
   cisco-redirectreason=-1   fwd_final_type =0
   final_redirectNumber =
   hunt_group_timeout =0

Sep  2 15:48:42.235: //-1/D8D52C5892B9/CCAPI/cc_api_call_setup_ind_common:
   Interface=0x3122A798, Call Info(
   Calling Number=777028067,(Calling Name=)(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
   Called Number=588008311(TON=Unknown, NPI=Unknown),
   Calling Translated=FALSE, Subscriber Type Str=Unknown, FinalDestinationFlag=TRUE,
   Incoming Dial-peer=1, Progress Indication=NULL(0), Calling IE Present=TRUE,
   Source Trkgrp Route Label=, Target Trkgrp Route Label=, CLID Transparent=FALSE), Call Id=7487
Sep  2 15:48:42.235: //-1/D8D52C5892B9/CCAPI/ccCheckClipClir:
   In: Calling Number=777028067(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)
Sep  2 15:48:42.235: //-1/D8D52C5892B9/CCAPI/ccCheckClipClir:
   Out: Calling Number=777028067(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed)
Sep  2 15:48:42.235: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep  2 15:48:42.235: :cc_get_feature_vsa malloc success
Sep  2 15:48:42.235: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep  2 15:48:42.235:  cc_get_feature_vsa count is 1
Sep  2 15:48:42.235: //-1/xxxxxxxxxxxx/CCAPI/cc_get_feature_vsa:

Sep  2 15:48:42.235: :FEATURE_VSA attributes are: feature_name:0,feature_time:732270664,feature_id:85
Sep  2 15:48:42.235: //7487/D8D52C5892B9/CCAPI/cc_api_call_setup_ind_common:
   Set Up Event Sent;
   Call Info(Calling Number=777028067(TON=Unknown, NPI=Unknown, Screening=Not Screened, Presentation=Allowed),
   Called Number=588008311(TON=Unknown, NPI=Unknown))
Sep  2 15:48:42.239: //7487/D8D52C5892B9/CCAPI/cc_process_call_setup_ind:
   Event=0x313CA5C8
Sep  2 15:48:42.239: //-1/xxxxxxxxxxxx/CCAPI/cc_setupind_match_search:
   Try with the demoted called number 588008311
Sep  2 15:48:42.239: //7487/D8D52C5892B9/CCAPI/ccCallSetContext:
   Context=0x31B3AAEC
Sep  2 15:48:42.239: //7487/D8D52C5892B9/CCAPI/cc_process_call_setup_ind:
   >>>>CCAPI handed cid 7487 with tag 1 to app "_ManagedAppProcess_Default"
Sep  2 15:48:42.239: //7487/D8D52C5892B9/CCAPI/ccCallProceeding:
   Progress Indication=NULL(0)
Sep  2 15:48:42.239: //7487/D8D52C5892B9/CCAPI/ccCallDisconnect:
   Cause Value=1, Tag=0x0, Call Entry(Previous Disconnect Cause=0, Disconnect Cause=0)
Sep  2 15:48:42.239: //7487/D8D52C5892B9/CCAPI/ccCallDisconnect:
   Cause Value=1, Call Entry(Responsed=TRUE, Cause Value=1)
Sep  2 15:48:42.275: //7487/D8D52C5892B9/CCAPI/cc_api_call_disconnect_done:
   Disposition=0, Interface=0x3122A798, Tag=0x0, Call Id=7487,
   Call Entry(Disconnect Cause=1, Voice Class Cause Code=0, Retry Count=0)
Sep  2 15:48:42.279: //7487/D8D52C5892B9/CCAPI/cc_api_call_disconnect_done:
   Call Disconnect Event Sent
Sep  2 15:48:42.279: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

Sep  2 15:48:42.279: :cc_free_feature_vsa freeing 2BA59040
Sep  2 15:48:42.279: //-1/xxxxxxxxxxxx/CCAPI/cc_free_feature_vsa:

Sep  2 15:48:42.279:  vsacount in free is 0
Sep  2 15:51:42.280: //-1/xxxxxxxxxxxx/CCAPI/ccAppShutdownMode:
   ccAppShutdownMode: remove it from the queue

It looks like the CME is getting the wrong Called Number - 588008311 is the number from the top part (header?) of the INVITE message, but in the correct number of from the "To:" part of the message. How to configure the CME to get the Called Number from the "To" part of the SIP INVITE message?