Skip to content
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

Mapping of custom values such as P-Asserted-Identity #671

Open
phobospt opened this issue Nov 1, 2024 · 5 comments
Open

Mapping of custom values such as P-Asserted-Identity #671

phobospt opened this issue Nov 1, 2024 · 5 comments

Comments

@phobospt
Copy link

phobospt commented Nov 1, 2024

Just dipping my toes in the water on Homer7 and I got the Heplifyserver up and running as well as a Homer app, but i can't for the life of me figure out out to add the P-Asserted-Identity header value to the both the search and display results?
I can see it under the sip message under headers, so it id definitely present, just trying to figure out out to add it to the mapping.

I havetried multiple combinations of data_headers.P-Asserted-Identity / data_headers.P-Asserted-Identity or even data_header.headers.P-Asserted-Identity under tMapping / call / Fields but to no avail... Any help is much appreciated

Copy link

github-actions bot commented Nov 1, 2024

Please star this repository to motivate the developers and to get higher priority! ⭐

@lmangani
Copy link
Member

lmangani commented Nov 1, 2024

Please include the configuration you have attempted to avoid guesswork.

@phobospt
Copy link
Author

phobospt commented Nov 1, 2024

here we go, I was trying to access the values Python stye, but get I not doing it quite right...
The field I am trying to access is the one highlighted in the green square - P-Asserted-Identify and all other data has been obfuscated for privacy.

Attached is also a copy of the mappings file for call

2024-11-01_18-27
Fields mapping SIP call 2024-11-01 18 26 03.json

@lmangani
Copy link
Member

lmangani commented Nov 1, 2024

Oh I see what confuses you. The "inline" SIP and SDP Parsers work against of the raw SIP message - that's not how HOMER indexes internally - the feature is designed to outline any parsing errors the receiving system might also detect. You cannot search by those fields unless.

This said you can could achieve your goal by extending the protocol mapping but its not the simplest activity if you're new to the system and you don't know how data is stored. Best way to learn is to look at the API responses as you use the UI.

@phobospt
Copy link
Author

phobospt commented Nov 1, 2024

How about just getting that field displayed on the search results( rather than having on the search?)

Also, just to confirm I only need a protocol mapping ( and not a 2 way correlation)? I will do some sample API calls and see what I get out and try to work my way, but you might get extra pestering from me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants