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 <[email protected]> on behalf of Pradeepa Gurusinghe 
<[email protected]>
Reply-To: OpenSIPS users mailling list <[email protected]>
Date: Friday, April 21, 2017 at 7:15 AM
To: "[email protected]" <[email protected]>
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
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to