[sr-dev] [kamailio/kamailio] Problem with CANCEL handling (#1841)

Daniel-Constantin Mierla notifications at github.com
Tue Feb 12 09:47:54 CET 2019


As guessed before, you are using forward() in your config, which does stateless forwarding, next is the part of the config showing it:

```
...
request_route {

	# per request initial checks
	route(REQINIT);

	# NAT detection
	route(NATDETECT);
	t_check_trans();
	
	if ( method=="INVITE" ) {
		ds_select_dst("1","4");
		sl_send_reply("100","Trying");
		forward();
		exit();
	}
...
```

You have to use t_relay() instead of forward() for stateful routing, if you want to work on top of default kamailio.cfg. Otherwise, you have to add a logic to ensure that CANCEL is sent to the same destination as INVITE.

Also, the place in config where you do the routing for INVITE is not really a good one, re-INVITEs being misrouted.

Anyhow, this is not an issue of kamailio code, but the configuration file. You have to use sr-users at lists.kamailio.org mailing list for sorting out issue with kamailio.cfg.

Closing this one.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1841#issuecomment-462670811
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20190212/15bbae07/attachment-0001.html>


More information about the sr-dev mailing list