03-21-2018 06:51 PM - edited 03-17-2019 12:28 PM
I am trying to get CM 10.5 to pass the route group to an IOS SIP gateway. I get the kind of information I want coming inbound from the SIP gateway. See the following.
Via: SIP/2.0/UDP 10.103.108.6:5060;x-route-tag="tgrp:PRIPSTN";branch=z9hG4bK59C2575B
The PRI where this call came in is in a trunk group called "PRIPSTN". I want CM to add that to outbound invite to the gateway. I am thinking it would look something like this.
M = {}
function M.outbound_INVITE(msg)
msg:addHeaderValueParameter("Via", "x-route-tag", "$some_variable")
end
return M
I have been unable to locate a document that tells me what info/variables are available for this. It seems like it should be simple.
03-21-2018 10:24 PM
Hi There,
Based on your description, I think what you are trying to do is influence which trunk group is used on your VGW by adding in the x-route-tag to the outbound SIP invite from CUCM?
If so, this is not possible to accomplish using the method you have described. All voice gateways route calls by matching an inbound and outbound dial-peer. A good explanation to the options you have available to you for inbound and outbound dial-peer matching can be found here:
A better way of influencing which trunk group an outbound call from CUCM would utilize on a VGW is through carefully considered inbound/outbound dial-peers on the VGW.
For example, for the types of calls you would like to force out the PRI you could pre-pend a steering code to the called number on CUCM, and then match the steering code on your inbound and outbound dial-peers.
Here is one example of how this could be done for a single destination number.
Example call flow (simplified):
Does this help? Or is my assumption incorrect on what you are trying to accomplish?
03-22-2018 01:37 AM
You are correct about what I am trying to do. However, there are other ways of matching incoming dial peers including "incoming uri". I have used that in several places to match an incoming dial peer based on the "To:" IP address in the URI, and that is what I would like to do here. I thought about doing a different set of translation patterns and route patterns, but this seems like it would be a smaller footprint. Besides, I am intrigued to learn something about LUA scripts.
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