12-02-2017 12:08 AM - edited 03-17-2019 11:43 AM
Hi,
I have configured SIP trunk between CUBE CME2 10.5 and 3CX server.
CME1 - CME2 (CUBE) - 3CX server
When calling from from 3CX client to CME1 extension SIP INVITE message From header received by CME1 is:
From: "Name Surname x8990" <sip:Name%20Surname%20x8990@10.50.5.1>
So From header needs to be changed to:
From: "Name Surname x8990" <sip:8990@10.50.5.1>
voice service voip
sip
sip-profiles inbound
voice class sip-profiles 20
request INVITE sip-header From modify "(.*:)(.*x)(.*>)" "\1\3"
dial-peer voice 200 voip
destination-pattern 8...
session protocol sipv2
session target ipv4:10.50.3.200 (3CX server)
session transport udp
voice-class codec 10
voice-class sip profiles 20 inbound
SIP header is modified when applied to outbound dial-peer, but there are multiple SIP trunks
from CME2 so inbound sip profile would be better in this case.
12-02-2017 07:14 AM
12-02-2017 11:28 PM
Yes, it was matching pid:0. After configuring "incoming called-number" call is matching dial-peer 200.
dial-peer voice 200 voip
destination-pattern 8...
session protocol sipv2
session target ipv4:10.50.3.200
session transport udp
incoming called-number [1-7]...
voice-class codec 10
voice-class sip profiles 20 inbound
dial-peer voice 1012 voip
destination-pattern 15..
session protocol sipv2
session target ipv4:10.50.14.65
session transport udp
voice-class codec 10
Total call-legs: 2
+2130 pid:200 Answer Name Surname x8990 active
+2110 pid:1012 Originate 1598 active
But still no change in outgoing From header.
12-10-2017 01:47 PM
What platform and IOS version is your CUBE? Can you attach the output of "debug ccsip all". Be extremely careful with this debug command and better enable it off-business hours as it may cause high CPU and, therefore, problems to your router. It will tell if the sip-profile is matched or not.
Can you also try:
voice service voip sip sip-profiles 20
12-11-2017 12:27 AM
I don't think it will work in inbound dial peer. You should assign the profile to CME2 outgoing dial-peer for it to work.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide