Hello,

for request_route, drop or exit do the same.

Also, both drop and exit stop execution of config file, so makes no sense to use one after the other. Drop is different that exit in branch_route, onreply_route and onsend_route, telling the core not to send the message out. But in request route, an explicit t_relay() or forward() has to be used to send the request out, without it, kamailio is not doing it.

Cheers,
Daniel

On 31.03.19 21:36, SamyGo wrote:
Hi,
Can you please elaborate about the part where you said "drop rest of the packets".

If an OPTIONs is incoming you can send reply and then exit; a drop is like silently discarding a packet as far as I know.
 
Do you meant to discard any further packets in same dialog or transaction to be matched and discarded/dropped ? 

Regards,
Sammy

On Sun, Mar 31, 2019, 5:54 AM PICCORO McKAY Lenz, <mckaygerhard@gmail.com> wrote:
h have this for a custom rule agains spoecific messages:

        sl_send_reply("200", "OK");
   drop();
        exit;

my question are if that rules are correct:

i want to drop but send firts to client a ok response..
i mean client receive "all are ok dont worry" and then drop the rest packets..

that's correct?

Lenz McKAY Gerardo (PICCORO)
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio World Conference - May 6-8, 2019 -- www.kamailioworld.com