[OpenSIPS-Users] How to convert BYE to CANCEL( status code 480)

benjamin.cropley at gmail.com benjamin.cropley at gmail.com
Fri Apr 21 09:14:19 EDT 2017


I agree with Ben Newlin. 

Pradee – are you trying to simulate a ‘broken call’? Eg one that stops working, as opposed to a BYE indicating that it has ended ‘cleanly’?

Ben Cropley
Sent from my Windows 10 phone

From: Newlin, Ben
Sent: 21 April 2017 12:50
To: OpenSIPS users mailling list
Subject: Re: [OpenSIPS-Users] How to convert BYE to CANCEL( status code 480)

What you are asking to do breaks the protocol rules of SIP. Neither Opensips nor any other SIP proxy will do it.

I am not sure which you actually wanted as the result as CANCEL and 480 are not the same thing, but you cannot convert a BYE into either one.

A CANCEL has to refer to an in-progress INVITE transaction, which does not exist in your case as you said the call has been answered already.

A 480 is a response, not a request. You cannot convert a request into a response, nor can you send a response to the mobile device without it having sent a new request first.

Ben Newlin 


From: Users <users-bounces at lists.opensips.org> on behalf of Pradeepa Gurusinghe <pradee at gmail.com>
Reply-To: OpenSIPS users mailling list <users at lists.opensips.org>
Date: Friday, April 21, 2017 at 7:15 AM
To: "users at lists.opensips.org" <users at lists.opensips.org>
Subject: [OpenSIPS-Users] How to convert BYE to CANCEL( status code 480)

Hi, 

I'm using opensip as a load balancer in front of Freeswitch nodes. 

Opensips Version 1.11 is used for a reason and can't change the version. 

When an INVITE comes from mobile to Freeswitch through Opensips, call will be answered. Then at the end of call, Freeswitch sends BYE to Opensips. 

I want Opensip to convert BYE to Cancel - 480 Temporary not available and forward. 

Please let me know how to do it with Opensips. 


Thanks, 
Pradee

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170421/9d721b20/attachment.html>


More information about the Users mailing list