-
-
Notifications
You must be signed in to change notification settings - Fork 91
Description
I would like to be able to see all related calls flows when I try to view the flow for any call legs.
In my setup, I have outgoing calls, comprising of 2 legs; these calls have a P-Routing-Params
header which consists of. series of key=value
Pairs. I am using the id
field 's value as a correlation id to link the calls legs together.
Additionally, I have incoming calls that trigger an outgoing call; in this scenario, I use the X-CID
header for correlation.
I have adjusted my heplify-server configuration to extract the correlation id, and it does this successfully. I can see the correlation id and search by it within the homer UI.
AlegIDs = ["X-CID","P-Routing-Params,id=(.*)$"]
(the regex is ok here as the id
field is always the final property in the header)
Despite the correlation ID being extracted properly, I am, so far, unable to have all the related calls in a single flow diagram. I have tried configuring the field mappings using various configurations that I've seen suggestd online. The current looks like...
[
{
"source_field": "data_header.call_id",
"lookup_id": 1,
"lookup_profile": "call",
"append_sid": true,
"lookup_field": "protocol_header->>'correlation_id'",
"lookup_range": [
-300,
200
]
},
{
"source_field": "protocol_header.correlation_id",
"lookup_id": 1,
"lookup_profile": "call",
"append_sid": true,
"lookup_field": "protocol_header->>'correlation_id'",
"lookup_range": [
-300,
200
]
},
{
"source_field": "protocol_header.correlation_id",
"lookup_id": 1,
"lookup_profile": "call",
"append_sid": true,
"lookup_field": "data_header->>'callid'",
"lookup_range": [
-300,
200
]
},
{
"source_field": "data_header.callid",
"lookup_id": 1,
"lookup_profile": "call",
"lookup_field": "sid",
"lookup_range": [
-300,
200
]
}
]
The correlation ID coming from the P-Routing-Params
header is not a call-id but is the same in all the calls that are related.
I should also mention that it is only the initial incoming INVITE
request which contains the relevant correlation fields. and I would like to see all the requests, responses , logs and RTCP reports related to the calls in question.
Some of the resources I've looked at to try and get this working correctly include..
- How do mappings work? #278
- https://github.com/sipcapture/homer/wiki/Custom-Header-Searching-and-Correlation
- https://groups.google.com/g/homer-discuss/c/_XoRM6jQeRk
I would be grateful for some assistance here :)