[Spce-user] unset_dlg when CANCEL Method received

Jon Bonilla (Manwe) jbonilla at sipwise.com
Wed Nov 14 05:28:01 EST 2012


El Wed, 14 Nov 2012 11:14:37 +0100
"Klaus Peter v. Friedeburg" <friedeburg at aco.de> escribió:

> Hello sipwise,
> 
> I am a little bit confuse fort he way to handelt he dialogs:
> In the kamailio docs I read only when receiving a BYE the dialog is destroyed,
> But what is when a CANCEL or some othe reply-code like 5xx received?
> I don’t find any section in the kamailio-proxy-script to destroy the dialog
> when a CANCEL received.
> 
> My problem is:
> Configure in www-admin max_concurrent_channel = 1,
> When make a Call from this subscriber an terminate the call while ringing,
> the subscriber are unable to place an other call for a while. In this case
> the kamailio proxy log show "Max concurrent channels exeeded"
> 

If a negative response is received the dialog should be destroyed
automatically. Same when the negative response is created by the proxy. 

About the cancel it's the same, the dialog module should destroy the dialog.
The problem when destroying the dialogs, and you notice it when you have
concurrent_calls set to 1, is that the dialog is usually destroyed after 5
seconds because the proxy needs to keep the dialog in mem to handle
retransmissions.

So if you are at your call limit and you try to place another call before 5
seconds have past, you won't be able to do so as the counter has not been
decremented yet. If for example you can't place sthe call after 30 seconds,
that might be a bug in the dialog module and/or in our templates and we should
check it out.

Concurrent_calls should not IMHO be set to 1. This feature was introduced
 to limit the number of calls of a subscriber in case the user was hacked. It's
 also commonly valid for pbx customers where you set the limit to 30 or
 something like that. But setting it to 1 is not a good idea because of those
 5 seconds.

Now: Is the dialog counter decremented after some few seconds or does it remain
there for hours? In the second case we should reproduce and check.

cheers,

Jon

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20121114/374ebfd1/attachment.asc>


More information about the Spce-user mailing list