<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi all,<div>I was looking for a solution to set a dedicated From URI in OPTIONS requests to a specific dispatcher target.</div><div><br></div><div>ds_ping_from (<a href="https://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.p.ds_ping_from">https://www.kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.p.ds_ping_from</a>) applies globally, why I needed the granularity of a single target.<br></div><div><br></div><div>With these changes to the dispatcher module I get what I need: <a href="https://github.com/kamailio/kamailio/commit/3f9c38be11416f7abe5c4448088ba66d2d3e6aad">https://github.com/kamailio/kamailio/commit/3f9c38be11416f7abe5c4448088ba66d2d3e6aad</a></div><div><br></div><div>I can just add an attribute to the others, e.g. instead of</div><div><br></div><div><i>1 sip:<a href="http://127.0.0.1:7070">127.0.0.1:7070</a> 0 1</i><br></div><div><br></div><div>something like:</div><div><br></div><div><i>1 sip:<a href="http://127.0.0.1:7070">127.0.0.1:7070</a> 0 1 ping_from=<a href="http://sip.custom.com">sip.custom.com</a></i><br></div><div><br></div><div>When the ping_from attribute is not specified, the general ds_ping_from applies and is used.</div><div><br></div><div>This would save me from a solution like intercepting the outgoing OPTIONS and manipulating the From header.</div><div><br></div><div>Does this approach make sense? Are there other ways already available to achieve this?</div><div><br></div><div>Thanks,</div><div>Giacomo</div></div></div></div></div></div>