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

Inbound sip-profiles not working

nmdc.kzstan
Level 1
Level 1

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.

 

 

 

 

 

 

4 Replies 4

Jonathan Schulenberg
Hall of Fame
Hall of Fame
Have you confirmed that dial-peer 200 is the inbound dial-peer being matched for the call? Using “show call active voice brief” should show PID:200 on the Answer call leg.

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.

Georgios Fotiadis
VIP Alumni
VIP Alumni

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
Georgios
Please rate if you find this helpful.

MOHIT SINGH
Level 1
Level 1

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.