Mehdi,

That would be done in a failure_route, using the methods Alexey mentioned, or 
the corresponding stateful ones from the TM module.

Since OpenSIPS is a proxy, you cannot drop a successful reply, only a failure 
one.

It may be helpful to review the documentation on the types of routes in 
OpenSIPS and their purposes and capabilities: 
https://www.opensips.org/Documentation/Script-Routes-3-3

Ben Newlin

From: Users <[email protected]> on behalf of Mehdi Shirazi 
<[email protected]>
Date: Friday, June 17, 2022 at 1:50 AM
To: OpenSIPS users mailling list <[email protected]>
Subject: Re: [OpenSIPS-Users] Drop the call from onreply_route with cause code


 EXTERNAL EMAIL - Please use caution with links and attachments





________________________________

Hi Alexey

Thanks for the reply, so how can we read a reply message(even outside 
reply_route) and based on the information in it, decide to send a reply with 
special cause code and terminate the initiated call ?



Regards

M.Shirazi

>Hi Mehdi,



>onreply_route [1] is used not for generating replies by your OpenSIPS,

>it it used for actions to be taken for SIP replies which are going towards 
>OpenSIPS

>from other VoIP entities.



>To drop a call with some code you may use these functions:



>    sl_send_reply();    [2]

>    send_reply();         [3]



>but according to the documentation neither of them can be used from 
>onreply_route.
>>Hi

>>How can we disconnect a call from on reply_route with a cause value ?
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to