[SR-Users] Create dialog for SIP PRESENCE

Daniel-Constantin Mierla miconda at gmail.com
Mon May 12 09:59:28 CEST 2014


Hello,

dialog module is able to track only dialogs created by INVITE requests. 
For management of SUBSCRIBE dialogs, you have to use presence server.

If you want keep some particular details on the subscribe dialogs, look 
at htable module, you can use a key based on call-id (and eventual 
from/to tag) to match a NOTIFY to a SUBSCRIBE.

Cheers,
Daniel

On 10/05/14 23:11, Ewgeny wrote:
> 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 this NOTIFY belong to that SUBSCRIBE i want 
> to use dialog module.
> How to use dialog module for Presence ?
>
>
>
> thanks in advance.
>
>
>
> 10.05.2014 19:59, 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 <evoip at ukr.net> 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. All sequential SUBSCRIBES and NOTIFYs will
>>> be in the same dialog.
>>>
>>>
>>>
>>>
>>> 10.05.2014 19:24, 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 <evoip at ukr.net> wrote:
>>>>> 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 - (Method=$rm
>>>>> RURI=$ru From=$fu To=$tu IP=$si DST=$du -- $ci)\n");
>>>>>           }
>>>>>
>>>>>
>>>>> In kamailio.log:
>>>>> May 10 18:15:11  /usr/sbin/kamailio[18355]: DEBUG: dialog
>>>>> [dlg_hash.c:652]: no dialog callid='265619152 at 192.168.4.18' found
>>>>> May 10 18:15:11 /usr/sbin/kamailio[18355]: DEBUG: dialog
>>>>> [dlg_hash.c:683]: no dialog callid='265619152 at 192.168.4.18' found
>>>>> May 10 18:15:11 /usr/sbin/kamailio[18355]: DEBUG: dialog
>>>>> [dlg_handlers.c:1170]: Callid '265619152 at 192.168.4.18' not found
>>>>>
>>>>>
>>>>> Does  kamailio 3.3.4 support Dialog for PRESENCE (Subscribe,
>>> Publish,
>>>>> Notify) ?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Best Regards,
>>>>> Ewgeny
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>> -- 
>>>> Sent from my mobile, and thus lacking in the refinement one might
>>> expect from a fully fledged keyboard.
>>>> Alex Balashov - Principal
>>>> Evariste Systems LLC
>>>> 235 E Ponce de Leon Ave
>>>> Suite 106
>>>> Decatur, GA 30030
>>>> United States
>>>> Tel: +1-678-954-0671
>>>> Web: http://www.evaristesys.com/, http://www.alexbalashov.com
>>>>
>>>> _______________________________________________
>>>> 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
>> -- 
>> Sent from my mobile, and thus lacking in the refinement one might 
>> expect from a fully fledged keyboard.
>>
>> Alex Balashov - Principal
>> Evariste Systems LLC
>> 235 E Ponce de Leon Ave
>> Suite 106
>> Decatur, GA 30030
>> United States
>> Tel: +1-678-954-0671
>> Web: http://www.evaristesys.com/, http://www.alexbalashov.com
>>
>> _______________________________________________
>> 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