[SR-Users] drop before exit and send ok reply first can be done?

Daniel-Constantin Mierla miconda at gmail.com
Mon Apr 1 10:34:09 CEST 2019


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 at gmail.com <mailto:mckaygerhard at 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)
>     http://qgqlochekone.blogspot.com
>     _______________________________________________
>     Kamailio (SER) - Users Mailing List
>     sr-users at lists.kamailio.org <mailto:sr-users at lists.kamailio.org>
>     https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190401/a76e7bda/attachment.html>


More information about the sr-users mailing list