03-19-2020 03:48 AM
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.
Solved! Go to Solution.
03-19-2020 08:45 AM
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
03-19-2020 08:45 AM
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
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