<div dir="ltr"><div>I was looking at usage of validate_dialog() and saw the following snippet from module documentation page. If you check the else part... as per my understanding if a dialog is not found ($DLG_status) will be NULL) it will go to else part which indicates a message has To tag but dialog not found. How can it be a valid in-dialog request.<br><br><pre class="" style="font-family:monospace;white-space:pre;color:rgb(0,0,0);border:1px solid rgb(153,204,204);padding-left:15pt;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(254,254,238)"> if (has_totag()) {
loose_route();
if ($DLG_status!=NULL && !validate_dialog() ) {
xlog(" in-dialog bogus request \n");
} else {
xlog(" in-dialog valid request - $DLG_dir !\n");
}
}</pre>Also there is one more code<br><pre class="" style="font-family:monospace;white-space:pre;color:rgb(0,0,0);border:1px solid rgb(153,204,204);padding-left:15pt;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(254,254,238)"> if (has_totag()) {
loose_route();
if ($DLG_status!=NULL)
if (!validate_dialog())
fix_route_dialog();
}<br></pre><br></div>After calling fix_route_dialog() do I need to just relay the message? I mean this function will "fix" the message and send?....I was trying to look for some security check where someone can inject a route header and a to tag (Bogus of course) to reach to my gateways through my proxy.<br><div><br></div></div>