-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempting a Mapping Rule for two SIP call legs #556
Comments
Your report is appreciated. Please star this repository to motivate its developers! ⭐ |
|
I've realized that this line was wrong: In the image below, you can see that the A-Leg and B-Leg managed to populate the value I wanted to extract as the correlation ID, but they didn't correlate. I'm thinking there was > 5 seconds b/t the call legs, is this a timing issue? I must be close right? |
I've been poking at it, but this is as far as I've been able to get. Here's the correlation mapping file as well. Talk to you in the morning! Thanks so much, I hope this helps. |
Good day! I found some more of your writings in the wiki on github, in particular the parts about correlating with the correlation_id. So I've added some changes to the following two files attached to this comment. The thing is that it does now correlate the A and B legs; however, only the INVITEs from the B leg is shown (see the screenshot), presumably as the remaining messages in the dialog don't have that particular header, just the INVITE has it. I think I read about something like this last night. If you guys have a tip, I could sure use it. Thanks, Fields mapping SIP call 2024-05-02 06_04_21.json |
Yes. That's the page I followed. I have correlation of the INVITES, but it's leaving out the rest of the messages in the dialog. @hamidrhashmi |
@hamidrhashmi here is an example of the issue I'm describing in my latest comment from yesterday. This page also describes the issue, but it looks like there may be an answer in this post. |
The answer was in a post on this page: I needed to add "append_sid": true to the correlation_id stanza in the mapping rules. it works perfectly now. |
Good evening,
I'm attempting a correlation between two call legs on a custom header (sort of), here's what I'm doing:
A-Side: X-CC-TRACE: c=N36ADE4KASyKH7HjnbnNzQOQugCbC3Nc;a=Agent1@JimAgnetta2;i=int-18f35278ef1-cRcd2mBGwbwDJuURIfjrYX9PL-phone-00-JimAgnetta2
B-Side: X-CC-TRACE: c=out_806ae526-6774-482d-9bd4-228a2d398a68;i=int-18f35278ef1-cRcd2mBGwbwDJuURIfjrYX9PL-phone-00-JimAgnetta2
Everything after the "i=" field at the end is the same. So I'm trying this in my heplify-server.toml (which I've attached as well):
AlegIDs = ["X-CC-TRACE","i="?(.*?)(?:"|;|$)"]
And in mapping, under correlation I added this:
{
"source_field": "data_header.X-CC-TRACE",
"lookup_id": 1,
"lookup_profile": "call",
"append_sid": true,
"lookup_field": "data_header->>'X-CC-TRACE'",
"lookup_range": [
-300,
200
]
},
I'm hoping you can help me configure to read that part of the X-CC-TRACE header and make a mapping rule from it?
Thanks,
Jim Agnetta
The text was updated successfully, but these errors were encountered: