Module: sems Branch: master Commit: 4f11cb959aaea0b1d6860f6f8e44c8cfb430f32f URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=4f11cb959aaea0b1d6860f6f8e44c8cfb430f32f
Author: Stefan Sayer <[email protected]> Committer: Stefan Sayer <[email protected]> Date: Tue Apr 17 16:21:36 2012 +0200 mobile_push: handle dlg errors gracefully --- apps/mobile_push/mobile_push.dsm | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/apps/mobile_push/mobile_push.dsm b/apps/mobile_push/mobile_push.dsm index b88caa7..c5a99b3 100644 --- a/apps/mobile_push/mobile_push.dsm +++ b/apps/mobile_push/mobile_push.dsm @@ -30,6 +30,13 @@ import(mod_curl); initial state START; +transition "SIP dialog error" START - exception; test(#type=="dlg") / { + log(1, "Error in accepting call:"); + logParams(1); + set($connect_session=0); + stop(false); +} -> END; + transition "DB exception" START - exception / { log(1, "Error in initializing mobile push:"); logAll(1); @@ -55,6 +62,7 @@ transition "invite" START - invite / { -- send 183 with early media dlg.acceptInvite(183, "Progress"); + throwOnError(); -- no default 200 OK set($connect_session=0); _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
