cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2514
Views
15
Helpful
13
Replies

CISCO CME Inbound SIp Header Manipulation

HI,

 

i am using Cisco 2911 with IOS 15.7

 

I have the Problem that i need the "From" Part of an incoming SIP Trunk. The Provider is providing the number with international Prefixes. I have to strip "+49" and Make from it "70" . SO the calling number is displayed as 70XXXXXXXX instead of +49xxxxxx for example.

 

First i tried to using Translation Profiles to Strip +49 but is not working. So i think i need to change it in the sip header. But as Cisco Docs say is the is only usable on outbound Dial peers. I Test  request from invite header to manipulate SIP header but i think i have a general understanding problem of the headers.

 

Provider--> SIP-Trunk -->SIP-Profile -->  Dial-peer -- Translation Profile -- > Ephone-dn  Is that correct how it works ?

when i know make 

request any sip-header from modify "" "" in the sip profile i have 2 . Problems: 

1. Match Pattern

2. Is this the right way ?

My Config:

 


!
! No configuration change since last restart
!
version 15.7
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname PT2911
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
clock timezone utc 1 0
clock summer-time utc recurring last Sun Mar 2:00 last Sun Oct 3:00
clock calendar-valid
!
!
!
!
!
!
!
!
!
ip dhcp excluded-address 192.168.3.1 192.168.3.10
!
ip dhcp pool Phone
network 192.168.3.0 255.255.255.0
default-router 192.168.3.1
option 150 ip 192.168.3.1
option 66 ip 192.168.3.1
option 42 ip 192.168.3.1
option 120 ip 192.168.3.1
!
!
!
ip domain name "my Domain"
ip name-server "my Name Server"
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
!
!
!
!
!
!
voice-card 0
!
!
!
voice service voip
ip address trusted list
ipv4 185.79.24.137
allow-connections h323 to sip
allow-connections sip to h323
allow-connections sip to sip
no supplementary-service sip handle-replaces
sip
subscription maximum accept 100
subscription maximum originate 100
registrar server expires max 600 min 60
!
voice class codec 1
codec preference 1 g711ulaw
codec preference 2 g711alaw
codec preference 3 g729br8
codec preference 4 g729r8
codec preference 5 g723r63
codec preference 6 g723ar63
!
!
voice class sip-profiles 1

!
voice class sip-profiles 2
request INVITE sip-header From modify "993@172.20.0.15" "Username@fpbx.de"
!
!
#Tenant Only for Test after SIp-Profiles Working
voice class tenant 1
registrar 1 dns:sip-trunk.telekom.de expires 3600
credentials username Test1 password 7 073B245F5A58 realm sip-trunk.telekom.de
authentication username test1 password 7 051F031C351D realm testrealm1
timers buffer-invite 10000
sip-server dns:reg.sip-trunk.telekom.de
no pass-thru content custom-sdp

#active Testing in Progress Tenant 2
!
voice class tenant 2
registrar 1 dns:fpbx.de expires 3600
credentials username Username password 7 Password realm fpbx.de
authentication username Username password 7 Password realm fpbx.de
remote-party-id
timers buffer-invite 10000
sip-server dns:fpbx.de
host-registrar
no pass-thru content custom-sdp
!
!
voice register global
mode cme
source-address 172.20.0.20 port 5060
max-dn 30
max-pool 30
authenticate register
timezone 28
time-format 24
date-format D/M/Y
auto-register
!
!
!
voice translation-rule 2
rule 1 /hidden/ /993/
!
voice translation-rule 5
rule 1 /993/ /hidden/
!
voice translation-rule 154
rule 1 /^7/ //
!
!
voice translation-profile Test
translate called 2
!
voice translation-profile Test2
translate called 154
!
!
!
vxml logging-tag
license udi pid CISCO2911/K9 sn FCZ164961HD
license boot suite AdvUCSuiteK9
!
!
file privilege 0
username admin privilege 15 secret 5 $1$/gBO$WmNKEpDpk//ue0tAgJY1x0
!
redundancy
!
!
!
translation-rule 2
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
!
interface GigabitEthernet0/0.3
encapsulation dot1Q 3
ip address 192.168.3.1 255.255.255.0
!
interface GigabitEthernet0/0.20
encapsulation dot1Q 20
ip address 172.20.0.15 255.255.0.0
!
interface GigabitEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/2
no ip address
shutdown
duplex auto
speed auto
!
ip forward-protocol nd
!
ip http server
ip http authentication local
no ip http secure-server
ip http path flash0:/CME-GUI-12.2
!
ip route 0.0.0.0 0.0.0.0 172.20.0.1
!
!
!
!
control-plane
!
!
!
!
!
!
mgcp behavior rsip-range tgcp-only
mgcp behavior comedia-role none
mgcp behavior comedia-check-media-src disable
mgcp behavior comedia-sdp-force disable
!
mgcp profile default
!
!
!
!
dial-peer voice 1 voip
description Telekom inbound
voice-class sip tenant 1
!
dial-peer voice 2 voip
description Inbound-Placetel Test
translation-profile incoming Test
session protocol sipv2
session target dns:fpbx.de
incoming called-number hidden
voice-class sip profiles 1 inbound
voice-class sip tenant 2
dtmf-relay rtp-nte
codec g711ulaw
!
dial-peer voice 4 voip
description Outbound-Placetel Test
translation-profile outgoing Test2
destination-pattern 7.T
session protocol sipv2
session target dns:fpbx.de
voice-class sip profiles 2
voice-class sip tenant 2
codec g711alaw
!
!
sip-ua
no remote-party-id
presence enable
!
!
!
gatekeeper
shutdown
!
!
telephony-service
max-ephones 58
max-dn 300
ip source-address 192.168.3.1 port 2000
max-redirect 20
caller-id block code *#
calling-number initiator
service phone ehookEnable 1
service phone webAccess 0
service dnis overlay
timeouts interdigit 2
system message Test
cnf-file location flash:
cnf-file perphone
network-locale DE
time-zone 28
time-format 24
date-format dd-mm-yy
max-conferences 8 gain 0
web admin system name admin secret 5 $1$2bp3$GzxOzTCdM5JtzFK1eBvD..
dn-webedit
transfer-system full-consult
transfer-pattern .T
transfer-pattern 0.T
transfer-pattern 9T
log table retain-timer 30
log table max-size 100
secondary-dialtone 0
directory last-name-first
!
!
ephone-dn 3
number 993
description test
!
!
!
ephone 13
description TEST
mac-address 001D.A21A.4635
type 7960
button 1:3
!
!
!
vstack
!
line con 0
logging synchronous
login local
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
login local
transport input ssh
!
scheduler allocate 20000 1000
ntp server de.net.pool.org
ntp server de.pool.ntp.org
!
end

 

 

With voice-translation rule 2 i change the called number to match the ephone-dn 3 Number. It works, calls can go out and come in but the displayed calling number can´t be called because of wrong format. To select the correct outbound dial-peer there is an 7 need to select the right Sip Provider.

 

Philipp

3 Accepted Solutions

Accepted Solutions

Hi, can you try to configure an incoming dial-peer like this:

dial-peer voice 10 voip
description INCOMING DP FROM PROVIDER
translation-profile incoming STRIP_70
incoming called-number XXXX
dtmf-relay rtp-nte
codec g711ulaw


voice translation-rule 10
rule 1 /^+49/ /70/
rule 2 /^49/ /70/


voice translation-profile STRIP_70
translate called 10


Please, add the output of debug voice translation-rule and debug voip dialpeer detail.

Regards.

View solution in original post

In you config allow-connection sip to sip is alreay enable.

If this is a test config you can try to add this diall-peer:

ip address trusted list
ipv4 185.79.24.137
ipv4 192.168.3.1 (your CME IP)


voice class sip-profile 10
request INVITE sip-header From modify ".*(<sip:.*@.*>)" "\1"

dial-peer voice 10 voip (as previously suggested)
description INCOMING DP FROM PROVIDER
translation-profile incoming STRIP_70
incoming called-number XXXX
dtmf-relay rtp-nte
codec g711ulaw

 

dial-peer voice 10 voip
description INCOMING DP FROM PROVIDER
destination-pattern XXXX
dtmf-relay rtp-nte
codec g711ulaw
session protocol sipv2
session target ipv4:192.168.3.1 (your CME IP)
voice-class sip profiles 10

The goal is realize a logical U turn loop to the CME just to modify the sip header.

The it only on a dev ambient.

Regards.

View solution in original post

Yes, it's a workaround but test it befor to use this solution in a production environment.

 

Regards.

View solution in original post

13 Replies 13

Hi, can you try to configure an incoming dial-peer like this:

dial-peer voice 10 voip
description INCOMING DP FROM PROVIDER
translation-profile incoming STRIP_70
incoming called-number XXXX
dtmf-relay rtp-nte
codec g711ulaw


voice translation-rule 10
rule 1 /^+49/ /70/
rule 2 /^49/ /70/


voice translation-profile STRIP_70
translate called 10


Please, add the output of debug voice translation-rule and debug voip dialpeer detail.

Regards.

HI,

 

it works but in the Phonedisplay stands +49myHandynumber  70myhandynumber. I Can dial back but the Display Missed calls info is strange.

It seems that are to Points are Displayed. From what info get the Phone the +49myhandynumber. 

 

Philipp

Hi, can you post the output of debug ccsip messages?

In this way we can see where the phone reads the information showed in the display.

From header, Remote Party Id, P-Aserted Id.

 

Regards.

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2018.11.09 11:02:24 =~=~=~=~=~=~=~=~=~=~=~=
login as: admin
Using keyboard-interactive authentication.
Password:

PT2911#debug ccsip mes
PT2911#debug ccsip messages
SIP Call messages tracing is enabled
PT2911#terminal onitor
^
% Invalid input detected at '^' marker.

PT2911#terminal monitor
PT2911#
.Nov 9 10:02:56.528: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
INVITE sip:hidden@172.20.0.15:5060 SIP/2.0
Record-Route: <sip:185.79.24.137;lr=on;did=e5.0ca;nat=yes>
Via: SIP/2.0/UDP 185.79.24.137;branch=z9hG4bKe27f.d7e87d35ff7904aa6482e666063f5c9f.0
Via: SIP/2.0/UDP 62.180.25.138:9045;received=62.180.25.138;branch=z9hG4bK1a30abc2;rport=9045
Max-Forwards: 69
From: "+49xxxxxxxxxx" <sip:+49xxxxxxxxxx@fpbx.de>;tag=as1d3956bc
To: <sip:0hidden@fpbx.de:5060>
Contact: <sip:+XXXXXXXXXX@62.180.25.138:9045>
Call-ID: 764287e720a4e55b689631c5541e77c9@fpbx.de
CSeq: 102 INVITE
User-Agent: PlacetelPBX
Date: Fri, 09 Nov 2018 10:02:56 GMT
Session-Expires: 14400
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 374

v=0
o=PlacetelPBX 238819892 238819892 IN IP4 62.180.25.138
s=PlacetelPBX
c=IN IP4 62.180.25.138
t=0 0
m=audio 45150 RTP/AVP 8 0 18 9 97 101
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:9 G722/8000
a=rtpmap:97 iLBC/8000
a=fmtp:97 mode=30
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv

.Nov 9 10:02:56.528: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=hidden, Expanded String=hidden, Calling Number=hiddenT
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.528: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=20064 Is Matched (14 digits)
.Nov 9 10:02:56.528: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ANSWER; Calling Number=+XXXXXXXXXX
.Nov 9 10:02:56.528: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.528: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=+XXXXXXXXXXT
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.528: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:56.528: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ORIGINATE; Calling Number=+XXXXXXXXXX
.Nov 9 10:02:56.528: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.528: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=+XXXXXXXXXXT
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.528: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:56.532: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ANSWER; Calling Number=+XXXXXXXXXX
.Nov 9 10:02:56.532: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.532: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=+XXXXXXXXXXT
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.532: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:56.532: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ORIGINATE; Calling Number=+XXXXXXXXXX
.Nov 9 10:02:56.532: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.532: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=+XXXXXXXXXXT
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.532: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_VIA_URI; URI=sip:185.79.24.137:5060
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_REQUEST_URI; URI=sip:hidden@172.20.0.15:5060
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_TO_URI; URI=sip:0hidden@fpbx.de:5060
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_FROM_URI; URI=sip:+XXXXXXXXXX@fpbx.de
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_INCOMING_DNIS; Called Number=hidden
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/dpMatchCore:
Dial String=hidden, Expanded String=hidden, Calling Number=
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.532: //-1/7716AC3181DC/DPM/MatchNextPeer:
Result=Success(0); Incoming Dial-peer=2 Is Matched (13 digits)
.Nov 9 10:02:56.536: //928/7716AC3181DC/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 185.79.24.137;branch=z9hG4bKe27f.d7e87d35ff7904aa6482e666063f5c9f.0,SIP/2.0/UDP 62.180.25.138:9045;received=62.180.25.138;branch=z9hG4bK1a30abc2;rport=9045
From: "+XXXXXXXXXX" <sip:+XXXXXXXXXX@fpbx.de>;tag=as1d3956bc
To: <sip:0hidden@fpbx.de:5060>
Date: Fri, 09 Nov 2018 10:02:56 GMT
Call-ID: 764287e720a4e55b689631c5541e77c9@fpbx.de
CSeq: 102 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-15.7.3.M3
Session-ID: 00000000000000000000000000000000;remote=e2280c2331ee5d9bbc2fe6b73ca1840f
Content-Length: 0

.Nov 9 10:02:56.536: //-1/7716AC3181DC/DPM/dpMatchCore:
Dial String=993, Expanded String=993, Calling Number=
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.536: //-1/7716AC3181DC/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=20001 Is Matched (4 digits)
.Nov 9 10:02:56.536: //-1/7716AC3181DC/DPM/dpMatchCore:
Dial String=993, Expanded String=993, Calling Number=
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.536: //-1/7716AC3181DC/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=20001 Is Matched (4 digits)
.Nov 9 10:02:56.536: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=993, Expanded String=993, Calling Number=993T
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.536: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=20001 Is Matched (4 digits)
.Nov 9 10:02:56.536: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ANSWER; Calling Number=993
.Nov 9 10:02:56.536: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.536: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=993T
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.536: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:56.536: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ORIGINATE; Calling Number=993
.Nov 9 10:02:56.536: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.536: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=993T
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.540: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Incoming Dial-peer=20001 Is Matched (4 digits)
.Nov 9 10:02:56.540: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ANSWER; Calling Number=993
.Nov 9 10:02:56.540: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.540: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=993T
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.540: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:56.540: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ORIGINATE; Calling Number=993
.Nov 9 10:02:56.540: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.540: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=993T
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.540: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Incoming Dial-peer=20001 Is Matched (4 digits)
.Nov 9 10:02:56.540: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=993, Expanded String=993, Calling Number=
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.540: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=20001 Is Matched (4 digits)
.Nov 9 10:02:56.540: //-1/7716AC3181DC/DPM/dpMatchCore:
Dial String=993, Expanded String=993, Calling Number=
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.540: //-1/7716AC3181DC/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=20001 Is Matched (4 digits)
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=993, Expanded String=993, Calling Number=
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=20001 Is Matched (4 digits)
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=+XXXXXXXXXX, Expanded String=+XXXXXXXXXX, Calling Number=
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ANSWER; Calling Number=993
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=993T
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ORIGINATE; Calling Number=993
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=993T
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Incoming Dial-peer=20001 Is Matched (4 digits)
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=993, Expanded String=993, Calling Number=
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=20001 Is Matched (4 digits)
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=701799442932, Expanded String=701799442932, Calling Number=
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=4 Is Matched (1 digits)
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=701799442932, Expanded String=701799442932, Calling Number=
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=4 Is Matched (1 digits)
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=993, Expanded String=993, Calling Number=
Timeout=TRUE, Is Incoming=FALSE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:56.548: //-1/xxxxxxxxxxxx/DPM/MatchNextPeer:
Result=Success(0); Outgoing Dial-peer=20001 Is Matched (4 digits)
.Nov 9 10:02:56.552: //928/7716AC3181DC/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 185.79.24.137;branch=z9hG4bKe27f.d7e87d35ff7904aa6482e666063f5c9f.0,SIP/2.0/UDP 62.180.25.138:9045;received=62.180.25.138;branch=z9hG4bK1a30abc2;rport=9045
From: "+XXXXXXXXXX" <sip:+XXXXXXXXXX@fpbx.de>;tag=as1d3956bc
To: <sip:0hidden@fpbx.de:5060>;tag=8A5950-168F
Date: Fri, 09 Nov 2018 10:02:56 GMT
Call-ID: 764287e720a4e55b689631c5541e77c9@fpbx.de
CSeq: 102 INVITE
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Contact: <sip:hidden@172.20.0.15:5060>
Record-Route: <sip:185.79.24.137;lr=on;did=e5.0ca;nat=yes>
Server: Cisco-SIPGateway/IOS-15.7.3.M3
Session-ID: 24618f9d5f8959a48ede3135f95d45bf;remote=e2280c2331ee5d9bbc2fe6b73ca1840f
Content-Length: 0

.Nov 9 10:02:58.724: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
OPTIONS sip:777z8xfkit@172.20.0.15:5060 SIP/2.0
Via: SIP/2.0/UDP 185.79.24.137:5060;branch=z9hG4bK2190892
From: sip:pinger@fpbx.de;tag=uloc-5bdef7ba-169a-164b532-a48cf145-d6369516
To: sip:777z8xfkit@172.20.0.15:5060
Call-ID: 74c5a745-02429719-ba24a35@185.79.24.137
CSeq: 1 OPTIONS
Content-Length: 0

.Nov 9 10:02:58.724: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ANSWER; Calling Number=pinger
.Nov 9 10:02:58.724: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:58.728: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=pingerT
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:58.728: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:58.728: //-1/xxxxxxxxxxxx/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ORIGINATE; Calling Number=pinger
.Nov 9 10:02:58.728: //-1/xxxxxxxxxxxx/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:58.728: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=pingerT
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:58.728: //-1/xxxxxxxxxxxx/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_VIA_URI; URI=sip:185.79.24.137:5060
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_TO_URI; URI=sip:777z8xfkit@172.20.0.15:5060
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_FROM_URI; URI=sip:pinger@fpbx.de
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ANSWER; Calling Number=pinger
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=pingerT
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpAssociateIncomingPeerCore:
Match Rule=DP_MATCH_ORIGINATE; Calling Number=pinger
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchPeertype:
Is Incoming=TRUE, Number Expansion=FALSE
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchCore:
Dial String=, Expanded String=, Calling Number=pingerT
Timeout=TRUE, Is Incoming=TRUE, Peer Info Type=DIALPEER_INFO_SPEECH
.Nov 9 10:02:58.728: //-1/7865C19C81E2/DPM/dpMatchCore:
Result=-1
.Nov 9 10:02:58.728: //930/7865C19C81E2/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 185.79.24.137:5060;branch=z9hG4bK2190892
From: sip:pinger@fpbx.de;tag=uloc-5bdef7ba-169a-164b532-a48cf145-d6369516
To: sip:777z8xfkit@172.20.0.15:5060;tag=8A61CC-262A
Date: Fri, 09 Nov 2018 10:02:58 GMT
Call-ID: 74c5a745-02429719-ba24a35@185.79.24.137
Server: Cisco-SIPGateway/IOS-15.7.3.M3
CSeq: 1 OPTIONS
Allow: INVITE, OPTIONS, BYE, CANCEL, ACK, PRACK, UPDATE, REFER, SUBSCRIBE, NOTIFY, INFO, REGISTER
Allow-Events: telephone-event
Accept: application/sdp
Supported: 100rel,timer,resource-priority,replaces,sdp-anat
Content-Type: application/sdp
Content-Length: 164

v=0
o=CiscoSystemsSIP-GW-UserAgent 6988 1197 IN IP4 172.20.0.15
s=SIP Call
c=IN IP4 172.20.0.15
t=0 0
m=audio 0 RTP/AVP 18 0 8 9 4 2 15
c=IN IP4 172.20.0.15

.Nov 9 10:03:00.584: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
CANCEL sip:hidden@172.20.0.15:5060 SIP/2.0
Via: SIP/2.0/UDP 185.79.24.137;branch=z9hG4bKe27f.d7e87d35ff7904aa6482e666063f5c9f.0
Max-Forwards: 69
From: "+XXXXXXXXXX" <sip:+XXXXXXXXXX@fpbx.de>;tag=as1d3956bc
To: <sip:0hidden@fpbx.de:5060>
Call-ID: 764287e720a4e55b689631c5541e77c9@fpbx.de
CSeq: 102 CANCEL
Content-Length: 0

.Nov 9 10:03:00.592: //928/7716AC3181DC/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 185.79.24.137;branch=z9hG4bKe27f.d7e87d35ff7904aa6482e666063f5c9f.0
From: "+XXXXXXXXXX" <sip:+XXXXXXXXXX@fpbx.de>;tag=as1d3956bc
To: <sip:0hidden@fpbx.de:5060>
Date: Fri, 09 Nov 2018 10:03:00 GMT
Call-ID: 764287e720a4e55b689631c5541e77c9@fpbx.de
CSeq: 102 CANCEL
Session-ID: e2280c2331ee5d9bbc2fe6b73ca1840f;remote=24618f9d5f8959a48ede3135f95d45bf
Content-Length: 0

.Nov 9 10:03:00.592: //928/7716AC3181DC/SIP/Msg/ccsipDisplayMsg:
Sent:
SIP/2.0 487 Request Cancelled
Via: SIP/2.0/UDP 185.79.24.137;branch=z9hG4bKe27f.d7e87d35ff7904aa6482e666063f5c9f.0,SIP/2.0/UDP 62.180.25.138:9045;received=62.180.25.138;branch=z9hG4bK1a30abc2;rport=9045
From: "+XXXXXXXXXX" <sip:+XXXXXXXXXX@fpbx.de>;tag=as1d3956bc
To: <sip:0hidden@fpbx.de:5060>;tag=8A5950-168F
Date: Fri, 09 Nov 2018 10:03:00 GMT
Call-ID: 764287e720a4e55b689631c5541e77c9@fpbx.de
CSeq: 102 INVITE
Allow-Events: telephone-event
Server: Cisco-SIPGateway/IOS-15.7.3.M3
Reason: Q.850;cause=16
Session-ID: e2280c2331ee5d9bbc2fe6b73ca1840f;remote=24618f9d5f8959a48ede3135f95d45bf
Content-Length: 0

.Nov 9 10:03:00.612: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg:
Received:
ACK sip:hidden@172.20.0.15:5060 SIP/2.0
Via: SIP/2.0/UDP 185.79.24.137;branch=z9hG4bKe27f.d7e87d35ff7904aa6482e666063f5c9f.0
Max-Forwards: 69
From: "+XXXXXXXXXX" <sip:+XXXXXXXXXX@fpbx.de>;tag=as1d3956bc
To: <sip:0hidden@fpbx.de:5060>;tag=8A5950-168F
Call-ID: 764287e720a4e55b689631c5541e77c9@fpbx.de
CSeq: 102 ACK
Content-Length: 0

PT2911#no debug all
All possible debugging has been turned off
PT2911#

In the incoming INVITE you can see this From header:

 

From: "+49xxxxxxxxxx" <sip:+49xxxxxxxxxx@fpbx.de>;tag=as1d3956bc

 

The "+49xxxxxxxxxx" is the display name, the <sip:+49xxxxxxxxxx is the user part and @fpbx.de> is the domain.

 

I think that the phone shows the calling name (original) and the calling number (translated).

 

If you want you can try to apply a sip profile on incoming dial-peer to remove the display name from the incoming From header.

 

Regards.

I'm not sure at all but you can try somthing like this:

 

at the global level:

 

voice service voip
sip
sip-profiles 10

 

voice class sip-profile 10
request INVITE sip-header From modify ".*(<sip:.*@.*>)" "\1"

the goal is to remove all before <sip:...

 

Regards.

Can this part to Modify so that i got set there a String in it ?

Like "Call for Company X".

 

I would place this Header Manipulation per Dial-Peer not on Global Level , in the End i will have 3 SIP Trunks Inbound.

 

 request INVITE sip-header From modify ".*(<sip:.*@.*>)" "For Company 1 " ?

Theoretically speaking, yes.
But pay attention to dial-peer, for my experience you can apply a sip profile to outgoing dial-peer. But you need the translation on incoming traffic.

To do this you can enable cube feature but the scenario becomes complicated.

 

Regard.

Thanks for the hint,

 

SIP is with the Devil ;-)

 

I Testet the sip Profile on inbound. Nothing happend. NO Change in the Caller ID Name.

 

"But pay attention to dial-peer, for my experience you can apply a sip profile to outgoing dial-peer. But you need the translation on incoming traffic." That hit that nothing happen.

 

What Feature we are talking about ? XML Scripting? 

When i change the mode from CME to Boarder Element will the Rest of my config work ? The CME Part i mean.

 

Philipp

 

Cube feature is enabled using the command "allow-connection sip to sip" but the dial-peer config must be review.

It's not so easy.

 

Can you ask to your provider to remove caller name (the display name part of the From header) just for test?

 

Regards.

In you config allow-connection sip to sip is alreay enable.

If this is a test config you can try to add this diall-peer:

ip address trusted list
ipv4 185.79.24.137
ipv4 192.168.3.1 (your CME IP)


voice class sip-profile 10
request INVITE sip-header From modify ".*(<sip:.*@.*>)" "\1"

dial-peer voice 10 voip (as previously suggested)
description INCOMING DP FROM PROVIDER
translation-profile incoming STRIP_70
incoming called-number XXXX
dtmf-relay rtp-nte
codec g711ulaw

 

dial-peer voice 10 voip
description INCOMING DP FROM PROVIDER
destination-pattern XXXX
dtmf-relay rtp-nte
codec g711ulaw
session protocol sipv2
session target ipv4:192.168.3.1 (your CME IP)
voice-class sip profiles 10

The goal is realize a logical U turn loop to the CME just to modify the sip header.

The it only on a dev ambient.

Regards.

The Trunk Provider says it is impossible. How ever , the complex solution you talk about :

 

It is the last part of this Discussion ?

 

https://community.cisco.com/t5/ip-telephony-and-phones/modifying-an-incoming-sip-invite-message/td-p/1989417

 

Edit : OK it was the right Thinking. I will Try it next Week. yes @ the moment it is a test but in two weeks it goes life :-) 

The really critical parts working with the frist sip provider. But i have to understand SIP Profiles to quick react with Problems of the Trunk of the German Telekom. This provider is not testable  for me until it goes life.

 

Philipp 

 

 

Philipp

 

Yes, it's a workaround but test it befor to use this solution in a production environment.

 

Regards.