From mkaganer@gmail.com Tue Jun 17 12:57:25 2014 From: Mordechay Kaganer To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] Problem with CANCEL handling Date: Tue, 17 Jun 2014 13:57:19 +0300 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0078985312==" --===============0078985312== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable B.H. On Mon, Jun 16, 2014 at 5:38 PM, Mordechay Kaganer wrote: > B.H. > > Hello, all! > > I'm trying to set up kamailio as a simple load balancer proxy between PSTN > gateway and a cluster of asterisk servers - rather common use case IMHO. > I'm completely new to kamailio. > > I have started with the default kamailio.cfg that comes with Ubuntu > package and added the dispatcher module as described in the docs ( > http://www.kamailio.org/docs/modules/4.0.x/modules/dispatcher.html). > > At the end, i got this up and running, but with one exception: if incoming > call is not answered by the asterisk end (i.e. it is in ringing state), and > then the gateway sends CANCEL request, kamailio is unable to recognize the > transaction and is not forwarding the request to asterisk. The result is: > the call is left "dangling" in the PBX and is not properly hang up. > > When the gateway sends CANCEL to kamailio, i get the following log > messages: > 4(25442) DEBUG: tm [t_lookup.c:769]: t_lookupOriginalT(): DEBUG: > t_lookupOriginalT: searching on hash entry 31287 > 4(25442) DEBUG: tm [t_lookup.c:492]: matching_3261(): DEBUG: RFC3261 > transaction matching failed > 4(25442) DEBUG: tm [t_lookup.c:859]: t_lookupOriginalT(): DEBUG: > t_lookupOriginalT: no CANCEL matching found! > 4(25442) DEBUG: tm [t_lookup.c:861]: t_lookupOriginalT(): DEBUG: > t_lookupOriginalT completed > 4(25442) DEBUG: tm [tm.c:1039]: w_t_lookup_cancel(): lookup_original: > t_lookupOriginalT returned: (nil) > 4(25442) ERROR: *** cfgtrace: c=3D[/etc/kamailio/kamailio.cfg] l=3D485 a= =3D25 > n=3Dxdbg > 4(25442) DEBUG: