-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Make captagent filter on headers #284
Comments
You could try using |
I meanwhile know that I can't use this for what I intended but still am curious how to use it. So far I tried this without success:
Should I have use
|
Sorry to open a github issue, not really sure where else to go with this.
I'm trying to figure out how
header_regexp_match
andheader_check
work.My plan is to have a captagent running on a freeswitch but depending on the sip headers to send it to a different homer.
I have two profiles in my
transport_hep.xml
and if I want to do that based on the IP it works as expected:The IP is of course not 127.0.0.1 but this will send the traffic coming from the configured IP to the specified homer.
So far so good.
Now let's say I have this invite:
and I would want to make it match with the header
X-Serialnumber: 000413924E28
how would I do that?Also while writing this I realized that would lose me a lot of packages because the responses don't have that header, as a learning opportunity I would still be very curious. Read the C code, read the PDF's from workshops I found and couldn't figure it out.
Would there be a better way to accomplish this madness I am trying? As soon as an Invite has a specific value in a header that it marks any packages + responses to be sent to a specific homer?
Captagent would be the preferred option since I have some asterisk in the whole thing and not only freeswitch.
The text was updated successfully, but these errors were encountered: