cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
605
Views
0
Helpful
3
Replies

SIP Profile - Copy Field from SIP Refer and use on Outgoing Invite

rchaseling
Level 4
Level 4

Hi,

Trying to get below working but not sure which SIP message that CUBE receives is the one that I can use to change the CLI in outgoing Invite - hopefully its the Refer itself. CUBE receives multiple messages as part of the Refer.

1. CUBE receives a SIP Refer with an additional "Call-Info" field with a number in it
2. I need CUBE to then use this number as the From & Contact field for CLI in the new outgoing Invite

Call Flow
Dial-peer 1 = Original Inbound leg
Dial-peer 2 = Original Outbound leg
Dial-Peer 3 =new Outbound leg (with new CLI after SIP refer received)

Refer Message Received - need to copy the value in Call-Info to the new Invite sent

Received:
REFER sip:+44123456789@172.16.200.200:5060 SIP/2.0
Via: SIP/2.0/UDP 172.16.200.210:5060;branch=z9hG4bK42ea.6b4d3c31da6a4bb0ded55f54dfd41321.0
Via: SIP/2.0/UDP 172.16.200.211:5060;branch=z9hG4bK322A031F8B
From: <sip:+44555556666@172.16.200.211>;tag=89AC8715-E3C
To: <sip:+44123456789@172.16.200.200>;tag=5D00D555-239E
Call-ID: BEF636BC-23EE11EE-BB9BB6C4-8751FAB8@172.16.200.200
CSeq: 102 REFER
Max-Forwards: 69
Contact: <sip:+44555556666@172.16.200.201:5060>
User-Agent: Cisco-SIPGateway/IOS-16.9.8
Timestamp: 1689608293
Refer-To: sip:442039621111@refer.co.uk
Referred-By: <sip:CVP@172.16.100.100>
Content-Length: 0
Call-Info: 077834693601

======

voice class sip-copylist 1
sip-header Call-Info

voice class sip-profiles 1000
rule 1 request REFER peer-header sip Call-Info copy "(.*)" u01
rule 2 request INVITE sip-header From modify "(<sip:(.*)@(.*))" "<sip:\u01@\3"
rule 3 request INVITE sip-header Contact modify "(<sip:(.*)@(.*))" "<sip:\u01@\3"

dial-peer 2
voice-class sip copy-list 1
voice-class sip profiles 1000 inbound

Any help appreciated

 

 

 

1 Accepted Solution

Accepted Solutions

rchaseling
Level 4
Level 4

Ok got this working.

Remove "voice-class sip profiles 1000 inbound" from dial-peer 2  and added "voice-class sip profiles 1000" to dial-peer 3

View solution in original post

3 Replies 3

rchaseling
Level 4
Level 4

Ok got this working.

Remove "voice-class sip profiles 1000 inbound" from dial-peer 2  and added "voice-class sip profiles 1000" to dial-peer 3

It’s great that you’re sharing that you managed to fix your issue, but as you haven’t shared the parts of your configuration that pertains to this it’s not very helpful for anyone else than you as we don’t know those details.



Response Signature


HI,

The above is literally all I added to get this working. was far simpler than I thought.

Call Flow from a dialpeers perspective is

1 = Ingress from ITSP1
2 - egress to UCCE (Refer comes back from this leg)
3 = egress to ITSP 2

voice class sip-copylist 1
sip-header Call-Info

voice class sip-profiles 1000
rule 1 request REFER peer-header sip Call-Info copy "(.*)" u01
rule 2 request INVITE sip-header From modify "(<sip:(.*)@(.*))" "<sip:\u01@\3"
rule 3 request INVITE sip-header Contact modify "(<sip:(.*)@(.*))" "<sip:\u01@\3"

dial-peer voice 2 voip
voice-class sip copy-list 1
!
dial-peer voice 3 voip
voice-class sip profiles 1000

The rest of the dialpeer config is insignificant