[SR-Users] siptrace: how to log sent ACK within dialog

Daniel-Constantin Mierla miconda at gmail.com
Wed Jun 17 15:21:17 CEST 2015


Hello,

iirc, you can use sip_trace() in onsend_route(), there you can capture
the outgoing ACK.

Cheers,
Daniel

On 16/06/15 16:55, Seudin Kasumovic wrote:
> Hi,
>
> TM forward ACK statelessly (see log below), so there is no call of
> installed callback on TMCB_REQUEST_(IN)SENT in siptrace module, so I
> can't see way how to log ACK sent packet.
> Any work around to get sent ACK logged?
>
> DEBUG: sl [sl_funcs.c:388]: sl_filter_ACK(): DEBUG : sl_filter_ACK: to
> late to be a local ACK!
>
> DEBUG: <script>: 408:172.16.23.130:5060 <http://172.16.23.130:5060>
> <-- 198.51.100.137:52150 <http://198.51.100.137:52150> ACK
> sip:8807 at 127.0.0.1:5080;transport=udp 
>
> DEBUG: <script>: 425: start trace ACK
>
> DEBUG: siptrace [siptrace.c:1865]: pipport2su(): the port string is 52150
>
> DEBUG: siptrace [siptrace.c:1865]: pipport2su(): the port string is 5060
>
> DEBUG: siptrace [siptrace.c:1677]: trace_send_hep_duplicate(): setting
> up the socket_info
>
> DEBUG: <script>: 542: WITHINDLG: loose_route set
> du='sip:172.16.23.130:5070;lr;ftag=1029663405'
>
> DEBUG: <script>: 369: RELAY ACK
> sip:8807 at 127.0.0.1:5080;transport=udp[4194308]
>
> DEBUG: tm [t_lookup.c:1312]: t_newtran(): DEBUG: t_newtran: msg id=4 ,
> global msg id=3 , T on entrance=0xffffffff
>
> DEBUG: tm [t_lookup.c:466]: t_lookup_request(): t_lookup_request:
> start searching: hash=34522, isACK=1
>
> DEBUG: tm [t_lookup.c:424]: matching_3261(): DEBUG: *RFC3261
> transaction matching failed*
>
> DEBUG: tm [t_lookup.c:648]: t_lookup_request(): DEBUG:
> t_lookup_request: no transaction found
>
> DEBUG: tm [t_funcs.c:279]: t_relay_to(): SER: forwarding ACK  statelessly 
>
> DEBUG: <script>: 821:172.16.23.130:5060 <http://172.16.23.130:5060>
> --> 172.16.23.130:5070 <http://172.16.23.130:5070> ACK
> sip:8807 at 127.0.0.1:5080;transport=udp
>
>
> Regards,
> Seudin Kasumovic
>
>
> _______________________________________________
> 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://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150617/d80e2740/attachment.html>


More information about the sr-users mailing list