[SR-Users] Create dialog for SIP PRESENCE

2014-05-10 Thread Ewgeny
Hi, i'm trying to create SIP dialog for SUBSCRIBE messages, but it's still unsuccessful (. if (is_method("SUBSCRIBE")) { setflag(4); dlg_manage(); xlog("L_INFO", "DLG_count=$DLG_count, DLG_status=$DLG_status, DLG_lifetime=$DLG_lifetime -

Re: [SR-Users] Create dialog for SIP PRESENCE

2014-05-10 Thread Alex Balashov
Hi Ewgeny, The dialog module relies on TM callbacks. The dialog is not actually created until a transaction is created, usually with t_relay(). On 10 May 2014 20:23:23 GMT+04:00, Ewgeny wrote: >Hi, > >i'm trying to create SIP dialog for SUBSCRIBE messages, but it's still >unsuccessful (. >

Re: [SR-Users] Create dialog for SIP PRESENCE

2014-05-10 Thread Ewgeny
Hi Alex, please describe in detail what you mean. It is Kamailio PRESENCE Server - after SUBSCRIBE in that dialog will be 202 OK and NOTIFY messages. All sequential SUBSCRIBES and NOTIFYs will be in the same dialog. 10.05.2014 19:24, Alex Balashov пишет: Hi Ewgeny, The dialog module reli

Re: [SR-Users] Create dialog for SIP PRESENCE

2014-05-10 Thread Alex Balashov
Okay, let me rephrase that. With respect to the dialog module, what is your objective? On 10 May 2014 20:48:48 GMT+04:00, Ewgeny wrote: >Hi Alex, > >please describe in detail what you mean. >It is Kamailio PRESENCE Server - after SUBSCRIBE in that dialog will be > >202 OK and NOTIFY messages.

Re: [SR-Users] Create dialog for SIP PRESENCE

2014-05-10 Thread Ewgeny
Okay! I need to do some modifications in SUBSCRIBE message and do the same modifications in NOTIFY which are generated by Presence module. eg I'm modifying FROM field (123 to ABC) in SUBSCRIBE message. So after i should make visa versa in NOTIFY message (ABC to 123). In order to determine that

Re: [SR-Users] CNXCC PrePaid module

2014-05-10 Thread Rene Montilva
Hi Carlos kamailio config: log("L_INFO", "saldo:$var(credit) y seg:$var(cost_per_sec) "); if($var(cost_per_sec) > $var(credit)) { sl_send_reply("402","payment required"); exit; } if (!cnxcc_set_max_credit("$var(client)", "$var(credit)", "$var(cost_per_s