Hello!
Thanks!!!
And yes, 200 OK on PUBLISH does not have Expires header (we are sending
synthetic reply).


вт, 23 июн. 2020 г. в 08:59, Daniel-Constantin Mierla <[email protected]>:

> Hello,
>
> I looked at the code and actually the log message from the c code is
> printed on SIP reply handler. So look at the reply of the PUBLISH and see
> if it has expires header.
>
> Cheers,
> Daniel
> On 22.06.20 21:41, Denys Pozniak wrote:
>
> Hello!
>
> I added logging to onsend_route (as I understand this is only one place to
> catch publishes):
>
> if ( is_method("PUBLISH") ) {
>   xlog("L_WARN", "[PUBLISH] $rm/$ru expires=$hdr(Expires) [$ci]\n");
> }
>
>
> Got output:
>
> 64(13374) WARNING: <script>: [PUBLISH] PUBLISH/sip:[email protected]
> expires=7201 [[email protected]]
>  8(13315) ERROR: pua [send_publish.c:304]: publ_cback_func(): No Expires
> header found
>
> 64(13374) WARNING: <script>: [PUBLISH] PUBLISH/sip:[email protected]
> expires=11 [[email protected]]
>  7(13314) ERROR: pua [send_publish.c:304]: publ_cback_func(): No Expires
> header found
>
>
> And SIP PUBLISHes:
>
> 2020/06/22 21:29:59.724833 10.10.10.125:5060 -> 10.10.10.126:5060
> PUBLISH sip:[email protected] SIP/2.0
> Via: SIP/2.0/UDP
> 10.10.10.125;branch=z9hG4bK960b.3f81b5e2000000000000000000000000.0
> To: <sip:[email protected]>
> From: <sip:[email protected]
> >;tag=154c77e64b07d40a0bc49115911058a7-42b5
> CSeq: 10 PUBLISH
> Call-ID: [email protected]
> Content-Length: 651
> User-Agent: Proxy
> Max-Forwards: 70
> Event: dialog
> Expires: 7201
> Content-Type: application/dialog-info+xml
>
> <?xml version="1.0"?>
> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0"
> state="full" entity="sip:[email protected]">
>   <dialog id="9a422dd4-2f61-1239-a0b7-001dd8b71cb2"
> call-id="9a422dd4-2f61-1239-a0b7-001dd8b71cb2" local-tag="2882179052"
> remote-tag="SvXmvgH8jvrra" direction="recipient">
>     <state>early</state>
>     <remote>
>       <identity>sip:[email protected]</identity>
>       <target uri="sip:[email protected]:5060"/>
>     </remote>
>     <local>
>       <identity>sip:[email protected]</identity>
>       <target uri="sip:[email protected]:12155;transport=TCP"/>
>     </local>
>   </dialog>
> </dialog-info>
>
>
>
> 2020/06/22 21:30:02.351993 10.10.10.125:5060 -> 10.10.10.126:5060
> PUBLISH sip:[email protected] SIP/2.0
> Via: SIP/2.0/UDP
> 10.10.10.125;branch=z9hG4bKb60b.d7b81cd5000000000000000000000000.0
> To: <sip:[email protected]>
> From: <sip:[email protected]
> >;tag=154c77e64b07d40a0bc49115911058a7-99de
> CSeq: 10 PUBLISH
> Call-ID: [email protected]
> Content-Length: 586
> User-Agent: Proxy
> Max-Forwards: 70
> Event: dialog
> Expires: 11
> Content-Type: application/dialog-info+xml
>
> <?xml version="1.0"?>
> <dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0"
> state="full" entity="sip:[email protected]">
>   <dialog id="9a422dd4-2f61-1239-a0b7-001dd8b71cb2"
> call-id="9a422dd4-2f61-1239-a0b7-001dd8b71cb2" direction="recipient">
>     <state>terminated</state>
>     <remote>
>       <identity>sip:[email protected]</identity>
>       <target uri="sip:[email protected]:5060"/>
>     </remote>
>     <local>
>       <identity>sip:[email protected]</identity>
>       <target uri="sip:[email protected]"/>
>     </local>
>   </dialog>
> </dialog-info>
>
>
>
>
> пн, 22 июн. 2020 г. в 13:12, Daniel-Constantin Mierla <[email protected]>:
>
>> Hello,
>>
>> can you print the Expires header with xlog() to see what value is written
>> in syslog? Just to be sure the header is not removed by other processing
>> rules and msg apply changes...
>>
>> Cheers,
>> Daniel
>> On 22.06.20 09:41, Denys Pozniak wrote:
>>
>> Hello!
>>
>> Any help is appreciated.
>>
>> вт, 16 июн. 2020 г. в 15:04, Denys Pozniak <[email protected]>:
>>
>>> Hello!
>>>
>>> Could someone point me to the possible source of the problem?
>>>
>>> Jun 16 09:51:06 proxy-edge /usr/sbin/kamailio[9645]: ERROR: pua
>>> [send_publish.c:304]: publ_cback_func(): No Expires header found
>>> Jun 16 09:51:07 proxy-edge /usr/sbin/kamailio[9640]: ERROR: pua
>>> [send_publish.c:304]: publ_cback_func(): No Expires header found
>>> Jun 16 09:51:07 proxy-edge /usr/sbin/kamailio[9600]: ERROR: pua
>>> [send_publish.c:304]: publ_cback_func(): No Expires header found
>>> Jun 16 09:51:07 proxy-edge /usr/sbin/kamailio[9660]: ERROR: pua
>>> [send_publish.c:304]: publ_cback_func(): No Expires header found
>>>
>>> Modules settings:
>>>
>>> *loadmodule "pua.so"*
>>> *loadmodule "pua_dialoginfo"*
>>> *loadmodule "dialog.so" *
>>>
>>>
>>> *modparam("pua", "default_expires", 1200)*
>>> *modparam("pua", "outbound_proxy", LOCAL_IP_ADDR)*
>>> *modparam("pua_dialoginfo", "include_callid", 1)*
>>>
>>> *modparam("pua_dialoginfo", "include_localremote", 1)*
>>> *modparam("pua_dialoginfo", "include_tags", 1)*
>>> *modparam("pua_dialoginfo", "send_publish_flag", 8)*
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *modparam("dialog", "dlg_flag", 4) modparam("dialog", "db_mode", 0)
>>> modparam("dialog", "enable_stats", 1) modparam("dialog", "dlg_match_mode",
>>> 1) modparam("dialog", "default_timeout", 7200)  modparam("dialog",
>>> "hash_size", 8192) *
>>>
>>> *request_route{*
>>> *...*
>>>
>>> *setflag(8); *
>>> *...*
>>> *}*
>>>
>>>
>>> Generated SIP PUBLISH:
>>>
>>> *PUBLISH sip:[email protected] <sip%[email protected]>
>>> SIP/2.0*
>>> *Via: SIP/2.0/UDP
>>> 8.8.8.8;branch=z9hG4bK3e55.afdce977000000000000000000000000.0*
>>> *To: <sip:[email protected] <sip%[email protected]>>*
>>> *From: <sip:[email protected]
>>> <sip%[email protected]>>;tag=e98d9fc94bada9746d67946ab287a76f-ba77*
>>> *CSeq: 10 PUBLISH*
>>> *Call-ID: [email protected]
>>> <[email protected]>*
>>> *Content-Length: 578*
>>> *User-Agent: proxy*
>>> *Max-Forwards: 70*
>>> *Event: dialog*
>>> *Expires: 7201*
>>> *Content-Type: application/dialog-info+xml*
>>>
>>> *<?xml version="1.0"?>*
>>> *<dialog-info xmlns="urn:ietf:params:xml:ns:dialog-info" version="0"
>>> state="full" entity="sip:[email protected]
>>> <sip%[email protected]>">*
>>> *  <dialog id="[email protected]"
>>> <[email protected]>
>>> call-id="[email protected]"
>>> <[email protected]> direction="initiator">*
>>> *    <state>Trying</state>*
>>> *    <remote>*
>>> *      <identity>sip:[email protected]
>>> <sip%[email protected]></identity>*
>>> *      <target uri="sip:[email protected]
>>> <sip%[email protected]>"/>*
>>> *    </remote>*
>>> *    <local>*
>>> *      <identity>sip:[email protected]
>>> <sip%[email protected]></identity>*
>>> *      <target uri="sip:[email protected]
>>> <sip%[email protected]>"/>*
>>> *    </local>*
>>> *  </dialog>*
>>> *</dialog-info>*
>>>
>>>
>>>
>>>
>>>
>>> --
>>>
>>> BR,
>>> Denys Pozniak
>>>
>>>
>>>
>>
>> --
>>
>> BR,
>> Denys Pozniak
>>
>>
>>
>> _______________________________________________
>> Kamailio (SER) - Users Mailing 
>> [email protected]https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>> --
>> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- 
>> www.linkedin.com/in/miconda
>> Funding: https://www.paypal.me/dcmierla
>>
>>
>
> --
>
> BR,
> Denys Pozniak
>
>
> --
> Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- 
> www.linkedin.com/in/miconda
> Funding: https://www.paypal.me/dcmierla
>
>

-- 

BR,
Denys Pozniak
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to