[Freeswitch-users] 183 automatically marks origination as success?
Lawrence Conroy
lconroy at insensate.co.uk
Thu Aug 20 19:42:20 MSD 2015
Hi there,
um ... are we talking about SIP here?
2xx are invite successful final responses; 3xx are transfer final responses whilst 4xx, 5xx are final errors. 1xx are temporary responses.
Thus a 1xx followed by a 4xx (or 5xx) is not a success.
Or have I missed something in RFC2543 or 3761?
all the best,
Lawrence
On 20 Aug 2015, at 13:30, Ítalo Rossi <italorossib at gmail.com> wrote:
> Correct, expected. A call is considered successful when you receive media, 183 or 200. If you need to change this behavior you'll need to set ignore_early_media=true before bridging.
>
> If you can't ignore_early_media, you need to set hangup_after_bridge=false and do more verifications on what happened after your last bridge.
>
> On Thu, Aug 20, 2015 at 8:37 AM, Avi Marcus <avi at avimarcus.net> wrote:
> I have several carriers, and I use:
> <action application="set" data="continue_on_fail=true"/>
> ... so I was a little surprised to see that a call that ended with NORMAL_TEMPORARY_FAILURE didn't route advance.
> I dug into the PCAPs of this and comparable, and the only difference I noticed was that the ones that worked were invite -> 100 and then 503 NORMAL_TEMPORARY_FAILURE and the one that didn't work was invite -> 100, 183, and then 503.
>
> I have a lua script that told me:
>
> session:getVariable("originate_disposition") = SUCCESS
> session:getVariable("bridge_hangup_cause") = NORMAL_TEMPORARY_FAILURE
>
> so... I'm guessing that a 183 marks the originate as a success which is why continue_on_fail didn't work, since it wasn't a fail.
>
> Is this expected? Is the carrier "doing something wrong" here?
>
> They did helpfully send: "SIP/2.0 503 Service Unavailable - Route Advance"
> More importantly: how can I fix it?
>
> Thanks,
>
> -Avi Marcus
> BestFone
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> --
> Ítalo Rossi
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list