Greetings,
I have Kamailio with the Dispatcher module and it's probing mechanics set up.
I want to be able to access the OPTIONS request generated by Kamailio in the request_route or somewhere else in the configuration file in order to modify it. Is that possible?
Best Regards,
Duarte Rocha
Am Donnerstag, 27. Dezember 2018, 17:02:15 CET schrieb Duarte Rocha:
I have Kamailio with the Dispatcher module and it's probing mechanics set up.
I want to be able to access the OPTIONS request generated by Kamailio in the request_route or somewhere else in the configuration file in order to modify it. Is that possible?
Hi Duarte,
did you already found this discussion from last year?
https://lists.kamailio.org/pipermail/sr-users/2017-December/099730.html
Best regards,
Henning
Hello,
the request sent out by Kamailio's dispatcher module should be visible inside kamailio.cfg via:
event_route[tm:local-request] {
...
}
Note that this route block is executed for the requests generated by kamailio (apart of nat keepalives), so if there are other modules sending out new requests (like msilo, presence, ...), be sure you do proper conditions there, like:
if(is_method("OPTIONS"))
You can also do checking on From header address, there is a parameter for dispatcher to set that address, so you know what to match.
Cheers, Daniel
On 27.12.18 17:02, Duarte Rocha wrote:
Greetings,
I have Kamailio with the Dispatcher module and it's probing mechanics set up.
I want to be able to access the OPTIONS request generated by Kamailio in the request_route or somewhere else in the configuration file in order to modify it. Is that possible?
Best Regards,
Duarte Rocha
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Thanks for your answers, it seems to be just what i needed.
Best regards,
Duarte Rocha
Na(o) quinta, 27/12/2018, 16:02, Duarte Rocha duarterocha91@gmail.com escreveu:
Greetings,
I have Kamailio with the Dispatcher module and it's probing mechanics set up.
I want to be able to access the OPTIONS request generated by Kamailio in the request_route or somewhere else in the configuration file in order to modify it. Is that possible?
Best Regards,
Duarte Rocha
Hey.
I have another question regarding this.
In my SBC, a Gateway is defined by it's IP, Port and SAP (Kamailio's IP used for signaling). Those 3 parameters are defined in the Gateway table.
In this case, i only have access to the IP ($dd) and Port ($dp). I need to know the SAP associated to the gateway that is currently being probed, in order to force the correct socket in the OPTIONS request. Is there any way to get more info about the db line that is being read by dispatcher for the probing?
If that's not possible i was thinking about querying my db for the Ip:Port pair and if i got more than one result, do forking using the the SAPs in the results, sending multiple OPTIONS through the multiple sockets. In this case, if only one of the OPTIONS is answered, will the gateway still appear as "Active" ?
Best Regards,
Duarte Rocha
Na(o) quinta, 27/12/2018, 16:02, Duarte Rocha duarterocha91@gmail.com escreveu:
Greetings,
I have Kamailio with the Dispatcher module and it's probing mechanics set up.
I want to be able to access the OPTIONS request generated by Kamailio in the request_route or somewhere else in the configuration file in order to modify it. Is that possible?
Best Regards,
Duarte Rocha