cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
618
Views
0
Helpful
1
Replies

CUBE matching a dial peer on SIP invite TGRP

mmoulson1
Level 4
Level 4

We are working with a new SIP service that we have connected to a CUBE. It sends SIP invites that look like this:

INVITE sip:020311100001@192.168.1.1:5060;tgrp=100;trunk-context=customerABC.com SIP/2.0

 

I need to be able to match the "tgrp=100;trunk-context=customerABC.com" and route the call based on this information. The number in the above (020311100001) maybe different but the tgrp & trunk-context would be the same.

 

As an example I would need to send "tgrp=100;trunk-context=customerABC.com" outbound on one dial peer.

And "tgrp=500;trunk-context=customerXYZ.com" outbound on a different dial peer.

 

Hope that makes sense. I have found Cisco documents on manipulating headers but not matching against them.

Thanks in advance.

1 Accepted Solution

Accepted Solutions

mmoulson1
Level 4
Level 4

voice class uri 200 sip
tgrp=100;trunk-context=customerABC.com

!

dial-peer voice 200 voip
session protocol sipv2
session target ipv4:10.1.1.1
destination uri 200

I found the above worked and routed the call to 10.1.1.1

View solution in original post

1 Reply 1

mmoulson1
Level 4
Level 4

voice class uri 200 sip
tgrp=100;trunk-context=customerABC.com

!

dial-peer voice 200 voip
session protocol sipv2
session target ipv4:10.1.1.1
destination uri 200

I found the above worked and routed the call to 10.1.1.1