Re: [sr-dev] Additional headers on a dispatcher options ping

2019-05-31 Thread Federico Cabiddu
Hi Alex, yes it works (just verified this morning ;-). I use this trick in several situation, in the event-route the message is still editable. It's in the onsend_route that you cannot modify it, IIRC. Cheers, Federico On Fri, May 31, 2019 at 8:27 AM Alex Balashov wrote: > Federico, > > Does

Re: [sr-dev] Additional headers on a dispatcher options ping

2019-05-31 Thread Alex Balashov
Federico, Does that actually work? I thought this route provides a hook to catch the request, but does not necessarily apply any lump changes to the outgoing message? On Fri, May 31, 2019 at 07:27:34AM +0200, Federico Cabiddu wrote: > Hi, > to add headers to locally generated requests, as it's

Re: [sr-dev] Additional headers on a dispatcher options ping

2019-05-30 Thread Federico Cabiddu
Hi, to add headers to locally generated requests, as it's the case for dispatcher's OPTIONS, you could use tm's module "local-request" event route to catch the outgoing OPTIONS and append a header before it's relayed. Something like this: event_route[tm:local-request] { # Handle locally generated

Re: [sr-dev] Additional headers on a dispatcher options ping

2019-05-30 Thread Henning Westerholt
Hello Tim, at the moment there is no such functionality available in the module. But have a look eg. to the implementation of this function https://kamailio.org/docs/modules/5.2.x/modules/dispatcher.html#dispatcher.p.ds_ping_from in C function "void ds_ping_set(ds_set_t *node)" which allows to

[sr-dev] Additional headers on a dispatcher options ping

2019-05-21 Thread Tim Chubb
Hi Is there any mechanism to add a contact and rr headers to the option messages generated by dispatcher? I have a need for both headers to be present otherwise the message gets rejected at the proxy im trying to connect to, the content of the headers in my use case is the from address, so