[OpenSIPS-Users] Intercept 477 on TCP closed

Johan De Clercq Johan at democon.be
Mon Aug 17 13:24:23 EST 2020


use t_relay wih 0x2 option.

On Mon, Aug 17, 2020, 15:16 Callum Guy <callum.guy at x-on.co.uk> wrote:

> Hi All,
>
> Using OpenSIPs 3.0.3
>
> I'm dealing with a client device with a faulty network, they are using a
> softphone WebRTC client and the TCP connections disappear sporadically.
>
> When the media server issues a RE-INVITE session timer OpenSIPs discovers
> the closed TCP connection and returns 477 to the media server. In this case
> the media server is FreeSWITCH which promptly ignores the
> non-standard session timer response and the call hangs. I want to close the
> call immediately in this situation as there is no way I can see to
> reestablish the connection. The call is typically bridged on the media
> server so the other call leg is left dangling indefinitely so I need to
> find a way to kill the session.
>
> Reading RFC4028 <https://tools.ietf.org/html/rfc4028#section-10> the only
> response codes that should trigger a BYE are 408/481 so my aim is to
> intercept the 477 and alter it. Unfortunately I have been unable to
> intercept it within my OpenSIPs config as the messages don't hit
> failure_route or similar. Am I missing a trick? Is there somewhere where
> these can be intercepted or should I be looking into a solution on the
> media server instead?
>
> Many thanks,
>
> Callum
>
>
> *0333 332 0000  |  x-on.co.uk <https://www.x-on.co.uk>  |   **
> <https://www.linkedin.com/company/x-on>   <https://www.facebook.com/XonTel>
>   <https://twitter.com/xonuk> **  |  Coronavirus
> <https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm>*
>
> THE ITSPA AWARDS 2020 <http://www.itspa.org.uk/itspa-awards> AND Best
> ITSP - Mid Market, Best Software and Best Vertical Solution are trade marks
> of the Internet Telephony Services Providers' Association, used under
> licence.
>
> X-on is a trading name of Storacall Technology Ltd a limited company
> registered in England and Wales.
> Registered Office : Avaland House, 110 London Road, Apsley, Hemel
> Hempstead, Herts, HP3 9SD. Company Registration No. 2578478.
> The information in this e-mail is confidential and for use by the
> addressee(s) only. If you are not the intended recipient, please notify
> X-on immediately on +44(0)333 332 0000 and delete the
> message from your computer. If you are not a named addressee you must not
> use, disclose, disseminate, distribute, copy, print or reply to this email. Views
> or opinions expressed by an individual
> within this email may not necessarily reflect the views of X-on or its
> associated companies. Although X-on routinely screens for viruses,
> addressees should scan this email and any attachments
> for viruses. X-on makes no representation or warranty as to the absence of
> viruses in this email or any attachments.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20200817/52de3677/attachment.html>


More information about the Users mailing list