INVITE using the wrong IP address in Via

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Just encountered this in master branch:

1. pjsua is sending the INVITE with Via header still using the local
IP address, and not the received/rport address (after successful
REGISTER)

2. UAC -> kamailio -> UAC
- make a call
- send CANCEL
- INVITE and CANCEL use different IP addresses in Via header
- SIP proxy rejects CANCEL as not being part of a known transaction

// IP address fixed up after NAT
REGISTER: SIP/2.0/TLS
10.0.0.4:56394;rport;branch=z9hG4bKPjAjmLUcOq.RTRbAbmpU108Yw2PWW5lj.P;alias

// this is the local IP address, pre-NAT!
INVITE:  SIP/2.0/TLS
192.168.0.2:34541;rport;branch=z9hG4bKPjQkOe7VO1tujCMj77tCQUFfZcvtQd8Ydu;alias

// Correct! Uses the same Via line as REGISTER
CANCEL: SIP/2.0/TLS
10.0.0.4:56394;rport;branch=z9hG4bKPjQkOe7VO1tujCMj77tCQUFfZcvtQd8Ydu;alias

This occurs about 30% of the time.

Anthony

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux