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

Newlin, Ben Ben.Newlin at inin.com
Fri Apr 21 07:46:06 EDT 2017


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/625d6c44/attachment-0001.html>


More information about the Users mailing list