Hi Jan! I replaced dlg_manage with setflag(dialog flag). This way the dialog is created only when a transaction is created. It solved my problems.
regards Klaus On 22.01.2015 14:47, Klaus Darilion wrote: > Nice, I have the same problem after upgrading from 4.1.7 to 4.2.2. .... > ..... in my case it seems the dialog callbacks are not executed for > responses ... I am still debugging ..... > > On 22.01.2015 13:25, Jan Hazenberg wrote: >> Hi All, >> >> I'm running into a issue with the dialog module since the upgrade from >> 4.2.1 to 4.2.2. I use the dialog module to add extra vars to the cdr's >> generated by the ACC module. >> >> I use the following config: >> >> # ----- dialog params ----- >> modparam("dialog", "enable_stats", 1) >> modparam("dialog", "dlg_match_mode", 1) >> modparam("dialog", "dlg_flag", FLT_DLG) >> modparam("dialog", "rr_param", "did") >> modparam("dialog", "wait_ack", 1) >> >> # Create dialog >> if (method=="INVITE") { >> # Create Dialog >> dlg_manage(); >> >> # Add test dialog var >> $dlg_var(src_ua) = $hdr(User-Agent); >> } >> >> >> This seems to work fine on kamailio 4.2.1 but after the upgrade i see >> the following errors in the logs: >> >> Jan 22 13:16:57 sip /usr/sbin/kamailio[2773]: CRITICAL: dialog >> [dlg_hash.c:901]: log_next_state_dlg(): bogus event 6 in state 1 for dlg >> 0x7f2f0332ed40 [3693:11222] with clid >> '9192c5fc24627a14c2ec42f084a96587@192.168.149.126' and tags '4017642921' '' >> Jan 22 13:17:01 sip /usr/sbin/kamailio[2770]: CRITICAL: dialog >> [dlg_hash.c:901]: log_next_state_dlg(): bogus event 7 in state 1 for dlg >> 0x7f2f0332ed40 [3693:11222] with clid >> '9192c5fc24627a14c2ec42f084a96587@192.168.149.126' and tags '4017642921' '' >> >> If i'm correct "bogus event 6 in state 1" indicates that a ACK whas >> received while the dialog still was in unconfirmed state. Should i catch >> the 200 OK on the INVITE to update the dialog? >> >> Thanks, >> >> Jan Hazenberg >> >> >> >> >> >> >> >> >> >> >> >> _______________________________________________ >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list >> sr-users@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@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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users