[SR-Users] send_bye dialog parameter

Daniel-Constantin Mierla miconda at gmail.com
Wed Jul 10 12:15:02 CEST 2013


iirc, for earlier versions, there is a variable that can be set before 
creating the dialog for getting the BYE (part of $dlg_ctx(...) or so, 
check the pv cookbook).

Anyhow, using a more recent version is recommended, having more 
improvements in this direction.

Cheers,
Daniel

On 7/10/13 9:40 AM, Carsten Bock wrote:
> And Version 3.2 does not have this parameter....
>
> http://kamailio.org/docs/modules/3.2.x/modules_k/dialog.html
>
> Kind regards,
> Carsten
>
> 2013/7/10 Gertjan Wolzak <g.wolzak at foize.com>:
>> Mmm, walk of shame...
>>
>> version: kamailio 3.2.3 (i386/linux) 91b6dd
>> flags: STATS: Off, USE_IPV6, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS,
>> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
>> DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE,
>> USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
>> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>> id: 91b6dd
>> compiled on 17:15:16 Apr 23 2012 with gcc 4.4.3
>>
>> Its 3.2.3, I could have sworn....
>>
>> Will start reading the Dialog 3.2.3 documentations... Should just upgrade...
>>
>> Thanks.
>>
>>
>> -----Original Message-----
>> From: sr-users-bounces at lists.sip-router.org
>> [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Carsten Bock
>> Sent: woensdag 10 juli 2013 9:16
>> To: Kamailio (SER) - Users Mailing List
>> Subject: Re: [SR-Users] send_bye dialog parameter
>>
>> Hi Gertjan,
>>
>> are you sure, you loaded Kamailio's Dialog Module? In 3.3 there are two
>> dialog modules: One of old SER  and one of Kamailio...
>> Did you compile Kamailio from the GIT branch or did you use any sort of
>> prebuilt packages? Can you send the output of "kamailio -V"?
>>
>> Thanks,
>> Carsten
>>
>> 2013/7/10 Gertjan Wolzak <g.wolzak at foize.com>:
>>>
>>> Hello All,
>>>
>>>
>>>
>>> I am trying to have all dialogs terminated after one hour.
>>>
>>>
>>>
>>> So I have set the following parameters
>>>
>>>
>>>
>>> modparam("dialog", "enable_stats", 1)
>>>
>>> modparam("dialog", "profiles_with_value", "caller")
>>>
>>> modparam("dialog", "dlg_flag", 24)
>>>
>>> modparam("dialog", "dlg_match_mode", 1)
>>>
>>> modparam("dialog", "default_timeout", 3600)
>>>
>>> modparam("dialog", "send_bye", 1)
>>>
>>>
>>>
>>> But when I check the Kamailio configuration I get the following error:
>>>
>>>
>>>
>>> # kamailio -c
>>>
>>> loading modules under
>>> /usr/local/lib/kamailio/modules_k/:/usr/local/lib/kamailio/modules/
>>>
>>> 0(10335) ERROR: <core> [modparam.c:151]: set_mod_param_regex:
>>> parameter <send_bye> not found in module <dialog>
>>>
>>> 0(10335) : <core> [cfg.y:3532]: parse error in config file
>>> /usr/local/etc/kamailio/kamailio.cfg, line 495, column 33: Can't set
>>> module parameter
>>>
>>> ERROR: bad config file (1 errors)
>>>
>>>
>>>
>>> Does anyone have an idea where I go wrong…..?
>>>
>>>
>>>
>>> Rgds,
>>>
>>>
>>>
>>> Gertjan Wolzak
>>>
>>>
>>> _______________________________________________
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
>>> list sr-users at lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>
>>
>> --
>> Carsten Bock
>> CEO (Geschäftsführer)
>>
>> ng-voice GmbH
>> Schomburgstr. 80
>> D-22767 Hamburg / Germany
>>
>> http://www.ng-voice.com
>> mailto:carsten at ng-voice.com
>>
>> Office +49 40 34927219
>> Fax +49 40 34927220
>>
>> Sitz der Gesellschaft: Hamburg
>> Registergericht: Amtsgericht Hamburg, HRB 120189
>> Geschäftsführer: Carsten Bock
>> Ust-ID: DE279344284
>>
>> Hier finden Sie unsere handelsrechtlichen Pflichtangaben:
>> http://www.ng-voice.com/imprint/
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> _______________________________________________
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users at lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda




More information about the sr-users mailing list