04-11-2020 05:00 AM
Hello,
I want to change Diversion header from: 6090........ to: 02123766100
This is my rule:
voice class sip-profiles 100
request INVITE sip-header Diversion modify "<sip:6090........@>" "<sip:02123766100@>"
I also added this profile under dial peer:
dial-peer voice 11 voip
description to To_TT_Sehirici
destination-pattern 0..........
progress_ind setup enable 3
rtp payload-type cisco-codec-fax-ack 120
rtp payload-type nte 97
session protocol sipv2
session target ipv4:XXXXXXX
session transport udp
voice-class codec 1
voice-class sip profiles 100
voice-class sip options-keepalive up-interval 180 down-interval 60 retry 3
voice-class sip bind control source-interface GigabitEthernet0/0/0.200
voice-class sip bind media source-interface GigabitEthernet0/0/0.200
dtmf-relay rtp-nte
no vad
!
But diversion header doesnt change. I guess my rule is wrong. Can you help me to fix that?
Solved! Go to Solution.
04-11-2020 06:00 AM
Try this.
voice class sip-profiles 100
request INVITE sip-header Diversion modify ”Diversion:(.*)(sip:)(6090........)(@.*>)” ”Diversion: \202123766100\4”
04-11-2020 06:00 AM
Try this.
voice class sip-profiles 100
request INVITE sip-header Diversion modify ”Diversion:(.*)(sip:)(6090........)(@.*>)” ”Diversion: \202123766100\4”
04-11-2020 09:07 AM
04-11-2020 11:02 AM
@Oruc Akpinar wrote:
Hello
Usually, sip profile configuration doesn't work.
It’s a matter of correct definition of the sip profile. If it’s correctly setup it works.
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