From dmytro.bogovych@gmail.com Mon Nov 23 17:30:01 2015 From: Dmytro Bogovych To: sr-users@lists.kamailio.org Subject: [SR-Users] Problem with resuming suspended transactions. Date: Mon, 23 Nov 2015 18:29:55 +0200 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1052128703==" --===============1052128703== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Greetings. We build specialized softphone for iOS. Push notifications are used to notify user and wake up softphone app on missed calls and messages. We used Daniel's example config script as base for own configuration file. It has the same parts and does not differ too much. I talk about this example: http://www.kamailio.org/events/2014-KamailioWorld/day2/26-Danie= l-Constantin.Mierla-Kamailio.cfg-Async.pdf Everything was ok for few monthes - with kamailio 4.1.2. Few weeks ago we upgraded to 4.3.3. Now paused calls cannot be resumed properly. Softphone receives 500 Server error (No error 0/SL) in response This is problem part of script: route[RELAYRESUMED] { # enable additional event routes for forwarded requests # - serial forking, RTP relaying handling, a.s.o. if (is_method("INVITE|SUBSCRIBE")) { t_on_branch("MANAGE_BRANCH"); t_on_reply("MANAGE_REPLY"); } if (is_method("INVITE")) { t_on_failure("MANAGE_FAILURE"); } if ($var(rr_target) !=3D "") { xlog("L_INFO","Relay to $var(rr_ip):$var(rr_port)\n"); $ru =3D "sip:" + $rU + "@" + $var(rr_ip) + ":" + $var(rr_port) + ";transport=3D" + $var(rr_proto); xlog("L_INFO","Current request URI is $ru\n"); if (!t_relay()) xlog("L_INFO","Cannot relay PUSHED invite."); sl_reply_error(); } else { xlog("L_WARN","Target proto is not set\n"); sl_reply_error(); } exit; } It produces log ----- Nov 23 14:42:24 ctdsip3 /usr/local/sbin/kamailio[32141]: INFO: