Hi
I am using Kamailio 3.0.1 and experiencing a strange behaviour of the lcr module. In short: Using next_gw() function makes my server to send two INVITEs to different destinations! The INVITE Kamailio receives is like: R=sip:4644235465675...@77.77.77.77 F=sip:man...@77.77.77.77 T=sip:4644235465675...@77.77.77.77 To try this I have set this in my gw table: sercmd lcr.dump_gws { lcr_id: 1 grp_id: 17 ip_addr: 91.121.117.27 hostname: sindominio.net port: 5080 scheme: sip transport: UDP strip: 0 tag: weight: 1 flags: 37 defunct_until: 268313248 } sercmd lcr.dump_lcrs { lcr_id: 1 prefix: from_uri: grp_id: 17 priority: 1 } Hostname and ip_addr don't match (sindominio.net points to 82.144.4.26). What I capture leaving Kamailio is: U 2010/04/08 17:51:09.614055 77.77.77.77:5060 -> 91.121.117.27:5080 INVITE sip:+4644235465675...@77.77.77.77 SIP/2.0' Record-Route: <sip:77.77.77.77;lr=on;ftag=hgtcn;nat=yes;vsf=czFwOgs5JCAEJEYoJGk3ajxNYmBrPBYC>' Via: SIP/2.0/UDP 77.77.77.77;branch=z9hG4bK90e8.cd3135e1.0' Via: SIP/2.0/UDP 10.0.0.92;received=91.115.172.34;rport=53658;branch=z9hG4bKiwibmejv' Max-Forwards: 69' To: <sip:4644235465675...@77.77.77.77>' From: "1102" <sip:1...@77.77.77.77>;tag=hgtcn' Call-ID: qxvyddwlnmur...@multivac' CSeq: 571 INVITE' Contact: <sip:man...@91.115.172.34:53658>' Content-Type: application/sdp' Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,REFER,NOTIFY,SUBSCRIBE,INFO,MESSAGE' Supported: replaces,norefersub,100rel' User-Agent: Twinkle/1.4.2' Content-Length: 226' ' v=0' o=twinkle 1296734594 70729915 IN IP4 77.77.77.77' s=-' c=IN IP4 77.77.77.77' t=0 0' m=audio 38232 RTP/AVP 8 101' a=rtpmap:8 PCMA/8000' a=rtpmap:101 telephone-event/8000' a=fmtp:101 0-15' a=ptime:20' a=nortpproxy:yes' # U 2010/04/08 17:51:09.614074 77.77.77.77:5060 -> 82.144.4.26:5060 INVITE sip:+4644235465675...@sindominio.net SIP/2.0' Record-Route: <sip:77.77.77.77;lr=on;ftag=hgtcn;nat=yes;vsf=czFwOgs5JCAEJEYoJGk3ajxNYmBrPBYC>' Via: SIP/2.0/UDP 77.77.77.77;branch=z9hG4bK90e8.cd3135e1.1' Via: SIP/2.0/UDP 10.0.0.92;received=91.115.172.34;rport=53658;branch=z9hG4bKiwibmejv' Max-Forwards: 69' To: <sip:4644235465675...@77.77.77.77>' From: "1102" <sip:1...@77.77.77.77>;tag=hgtcn' Call-ID: qxvyddwlnmur...@multivac' CSeq: 571 INVITE' Contact: <sip:man...@91.115.172.34:53658>' Content-Type: application/sdp' Allow: INVITE,ACK,BYE,CANCEL,OPTIONS,PRACK,REFER,NOTIFY,SUBSCRIBE,INFO,MESSAGE' Supported: replaces,norefersub,100rel' User-Agent: Twinkle/1.4.2' Content-Length: 226' ' v=0' o=twinkle 1296734594 70729915 IN IP4 77.77.77.77' s=-' c=IN IP4 77.77.77.77' t=0 0' m=audio 38232 RTP/AVP 8 101' a=rtpmap:8 PCMA/8000' a=rtpmap:101 telephone-event/8000' a=fmtp:101 0-15' a=ptime:20' a=nortpproxy:yes' My kamailio.cfg script does something like this: if(!load_gws("1", "$ru")) ... if(!next_gw()) ... t_on_branch("BRANCH_ROUTE_CLI_RTP"); if(!t_relay_to("0x01")) ... Branch route_cli_rtp: do rtpproxy stuff No append_branch is executed at all. I have two INVITES IMHO because next_gw() function does create the second one. Any idea about this behaviour? _______________________________________________ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users