I've integrated pjsua2 into my program and I'm trying to connect to a
PBX. It sends the REGISTER header, and I'm told by the company that they
are seeing my register but the packets are not coming back. Here is the
register modified to obfuscate the addresses. This REGISTER is timing out.
2019-09-19, 15:51:27.505544: <debug> [PJSIP] pjsua_core.c TX 545
bytes Request msg REGISTER/cseq=4309 (tdta0x71404c24) to UDP
((outbound-proxy-ip)):5060:
REGISTER sip:((proxy-domain)) SIP/2.0
Via: SIP/2.0/UDP
((wan-ip)):5060;rport;branch=z9hG4bKPjBzK6Ie4Q2vvcFjA.lUMbYHQ.jRlTr9Ho
Route: <sip:((outbound-proxy-domain));lr>
Max-Forwards: 70
From: <sip:((user))@((proxy-domain))>;tag=nbpEpzQOTSAM0Qt15CPaHxLELuBLUIXw
To: <sip:((user))@((proxy-domain))>
Call-ID: NEYeaj0jMAMf8E9AhfynG23bvLK7HqBt
CSeq: 4309 REGISTER
Contact: <sip:((user))@((local-interface-ip)):56080;ob>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE,
NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length: 0
I was told that the register header is correct EXCEPT the Via contains
the WAN IP instead of the local interface IP. If the Via contained the
local interface IP instead of the WAN IP it would would.
Can I force Via to use the local interface IP instead or am I missing a
bigger picture here?
Thanks.
--
Michael A. Leonetti
As warm as green tea
_______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org