[OpenSIPS-Users] Drop the call from onreply_route with cause code

Ben Newlin Ben.Newlin at genesys.com
Sat Jun 18 15:15:46 UTC 2022


Yes, there is that one, I hadn’t thought of that. But you will not be able to control the response code sent back upstream from there. You still need to do that in the failure_route.

Ben Newlin
Lead Voice Network Engineer
Genesys Cloud Voice

[X+8ADXwmpWwAAAABJRU5ErkJggg==]<http://www.genesys.com/>
[eJAO5L8CpOPwG+vPB9q3Mq3SAAAAAElFTkSuQmCC]<https://twitter.com/Genesys>[NZOfBSD5zhNaRvrLBVF2igAAAABJRU5ErkJggg==]<http://www.linkedin.com/company/601919?trk=tyah>[xf4wOBtofx3lYAAAAAElFTkSuQmCC]<https://www.instagram.com/genesyscx>[L5hfZJ73LJyNk7AAAAABJRU5ErkJggg==]<https://www.facebook.com/Genesys>[aX4aUWQAAAABJRU5ErkJggg==]<https://www.youtube.com/Genesys>[wFxOBHaJBbmQQAAAABJRU5ErkJggg==]<http://blog.genesys.com/>

From: Users <users-bounces at lists.opensips.org> on behalf of Mehdi Shirazi <m.shirazi at gmail.com>
Date: Saturday, June 18, 2022 at 1:44 AM
To: OpenSIPS users mailling list <users at lists.opensips.org>
Subject: Re: [OpenSIPS-Users] Drop the call from onreply_route with cause code
 EXTERNAL EMAIL - Please use caution with links and attachments

________________________________
Thanks Ben for your reply.
It seems there is one way to cancel initiated call from reply_route:

onreply_route[3] {

...

        if ($hdr(User-Agent)=~"Snom") {

               # drop calls involving snom UA

               t_cancel_branch();

        }

...

}



Regards
M.Shirazi


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20220618/09d3dbb6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6092 bytes
Desc: image001.png
URL: <http://lists.opensips.org/pipermail/users/attachments/20220618/09d3dbb6/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 1006 bytes
Desc: image002.png
URL: <http://lists.opensips.org/pipermail/users/attachments/20220618/09d3dbb6/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 1085 bytes
Desc: image003.png
URL: <http://lists.opensips.org/pipermail/users/attachments/20220618/09d3dbb6/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.png
Type: image/png
Size: 1009 bytes
Desc: image004.png
URL: <http://lists.opensips.org/pipermail/users/attachments/20220618/09d3dbb6/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 896 bytes
Desc: image005.png
URL: <http://lists.opensips.org/pipermail/users/attachments/20220618/09d3dbb6/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 1049 bytes
Desc: image006.png
URL: <http://lists.opensips.org/pipermail/users/attachments/20220618/09d3dbb6/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 1088 bytes
Desc: image007.png
URL: <http://lists.opensips.org/pipermail/users/attachments/20220618/09d3dbb6/attachment-0013.png>


More information about the Users mailing list