-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
AlegID = other (non X-CID) #31
Comments
So i was doing quick search in the sipparser, Is it correct to say this wont be working because the sipparser does not parse the header P-Charging-Vector? |
Thanks for the report @games130 we'll look into this and provide feedback. |
Well first of all you are right and at the moment I don't look at the P-Charging-Vector header. But still when I would parse it the AlegID handling needs more love. I removed it with this commit:
At this time I wrote inside the sipparser every header+value inside an header array so I could easily iterate through it This was working fine but I was looking for a more idomatic way to do this and so I temporaly removed it. I am open for suggestions how to do this nicely |
As a quick fix since I am on mobile I put a new case into the parser that will use the value of "P-Charging-Vector" as callid_aleg as long there is no header in the sip message. |
@negbie go back to holidays before you get punched! hahah ;) sounds like in the future this perhaps could be handled from a config list, the same way we do for Prometheus IP groups in order of priority? |
Hehe its hard to go in offline holiday mode but I will try ;) This sounds like a possible solution. |
Seems
|
Tested the quick fix, working well now. I am able to get the value correctly (like how i was getting when using kamailio). @lmangani for the toml, is that something for future development? meaning that it will get the header based on the toml file? |
@negbie okay will get the latest and let you know the test result. hopefully by this week. |
tested with the new changes, "P-Charging-Vector" for the AlegIDs is working well. |
I am doing call correlation using the header "P-Charging-Vector" - inside this have a field ICID which is constant throughout the call.
Therefore in the heplify-server.toml, i configured:
AlegID = "P-Charging-Vector"
Based on the captured sip messages in mysql, the callid_aleg column is always empty
example of the header P-Charging-Vector:
P-Charging-Vector: icid-value="d335f5981ed702c414843f092aca5660.3732318005.2962603871.301"
from kamailio, what is did was set the kamailio.cfg with
modparam("sipcapture", "callid_aleg_header", "P-Charging-Vector")
In the callid_aleg column i would get the value of icid-value="d335f5981ed702c414843f092aca5660.3732318005.2962603871.301"
The text was updated successfully, but these errors were encountered: