From antonroman@gmail.com Thu May 27 15:32:35 2010 From: Anton Roman To: sr-users@lists.kamailio.org Subject: Re: [SR-Users] no Contact in REFER generated with dlg_bridge Date: Thu, 27 May 2010 15:32:33 +0200 Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0176318805==" --===============0176318805== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Hi, regarding the missing Contact header in the REFER message, it can be solved by including some lines in /modules_k/dialog/dlg_ transfer.c. In this file, the Contact of the initial INVITE generated with dlg_bridge command can be easily changed as well. The problem now is only in the processing of the ACK generated by the TM module. When this ACK leaves the Kamailio server the branch value of the topmost Via header is '0'. Below you can find the debug output where the ACK is generated and routed by Kamailio. Any idea about where the error can be? thanks in advance, regards Anton 11(5056) DEBUG: tm [t_msgbuilder.c:791]: building ACK for out-of-dialog INVITE (using RS in RR set). 11(5056) DEBUG: tm [t_msgbuilder.c:967]: ACK RURI: `sip:235(a)10.1.3.15:5061', NH: `sip:10.1.2.122;lr=on'. 11(5056) DEBUG: tm [t_reply.c:1059]: ->>>>>>>>> T_code=180, new_code=200 11(5056) DEBUG: tm [t_reply.c:1794]: DEBUG: local_reply: branch=0, save=0, winner=0 11(5056) DEBUG: tm [t_reply.c:356]: DEBUG: update_totag_set: new totag 11(5056) DEBUG: tm [t_reply.c:1831]: DEBUG: local transaction completed 11(5056) DEBUG: tm [t_hooks.c:288]: DBG: trans=0x7f9767eb1268, callback type 256, id 0 entered 11(5056) DEBUG: dialog [dlg_transfer.c:207]: completed with status 200 11(5056) DEBUG: [parser/parse_to.c:179]: DEBUG: add_param: tag=533cb9e91f4b999cf76861cbb9ed54ed-3bcd 9(5052) DEBUG: [parser/msg_parser.c:612]: SIP Request: 9(5052) DEBUG: [parser/msg_parser.c:614]: method: 9(5052) DEBUG: [parser/msg_parser.c:616]: uri: < sip:235(a)10.1.3.15:5061> 9(5052) DEBUG: [parser/msg_parser.c:618]: version: 9(5052) DEBUG: [parser/parse_via.c:1283]: Found param type 232, = ; state=16 9(5052) DEBUG: [parser/parse_via.c:2296]: end of header reached, state=5 9(5052) DEBUG: [parser/msg_parser.c:500]: parse_headers: Via found, flags=2 9(5052) DEBUG: [parser/msg_parser.c:502]: parse_headers: this is the first via 9(5052) DEBUG: [receive.c:137]: After parse_msg... 9(5052) DEBUG: [receive.c:177]: preparing to run routing scripts... 9(5052) DEBUG: sl [sl_funcs.c:335]: to late to be a local ACK! 9(5052) DEBUG: [parser/parse_to.c:179]: DEBUG: add_param: tag=94cf927f9c6eed24i1 9(5052) DEBUG: [parser/parse_to.c:808]: end of header reached, state=29 9(5052) DEBUG: [parser/msg_parser.c:174]: DEBUG: get_hdr_field: [43]; uri=[sip:235(a)10.1.2.122 ] 9(5052) DEBUG: [parser/msg_parser.c:176]: DEBUG: to body [ sip:235(a)10.1.2.122 ] 9(5052) DEBUG: [parser/msg_parser.c:154]: get_hdr_field: cseq : <10> 9(5052) DEBUG: [parser/msg_parser.c:188]: DEBUG: get_hdr_body : content_length=0 9(5052) DEBUG: [parser/msg_parser.c:90]: found end of header 9(5052) DEBUG: maxfwd [mf_funcs.c:66]: max_forwards header not found! 9(5052) DEBUG: [parser/parse_to.c:179]: DEBUG: add_param: tag=533cb9e91f4b999cf76861cbb9ed54ed-3bcd 9(5052) DEBUG: [parser/parse_to.c:808]: end of header reached, state=29 9(5052) DEBUG: sanity [mod_sanity.c:220]: all sanity checks passed 9(5052) ERROR: