Hi,<br><br>I am using the same UA and Openser to do two tests. For the first case, UA is pointing to the external IP of openser.; the other test points the UA to openser's local ip. Registering is ok for both cases, but when I try to do an INVITE, the UA pointing to the local IP works whereas the one pointing to the external IP fails during proxy_authorize. <br>
<br><a href="http://88.251.45.4">88.251.45.4</a> -> external ip of the entire network<br><a href="http://192.168.1.104">192.168.1.104</a> -> openser's local ip<br><a href="http://192.168.1.100">192.168.1.100</a> -> UA's local ip<br>
<br>Here is the INVITE with authentication digest from the UA pointing to the external IP address of openser:<br><br>U <a href="http://88.251.45.4:59864">88.251.45.4:59864</a> -> <a href="http://192.168.1.104:5060">192.168.1.104:5060</a><br>
INVITE <a href="mailto:sip%3A1005@88.251.45.4">sip:1005@88.251.45.4</a> SIP/2.0.<br>Via: SIP/2.0/UDP 192.168.1.100:17480;branch=z9hG4bK-d87543-ea31ca6af52bd14c-1--d87543-;rport.<br>Max-Forwards: 70.<br>Contact: <<a href="http://sip:1006@88.251.45.4:59864">sip:1006@88.251.45.4:59864</a>>.<br>
To: "1005"<<a href="mailto:sip%3A1005@88.251.45.4">sip:1005@88.251.45.4</a>>.<br>From: "1006"<<a href="mailto:sip%3A1006@88.251.45.4">sip:1006@88.251.45.4</a>>;tag=d21e4745.<br>Call-ID: NGFlOTRmNTg3ZDFlYzJlYzdhNTlhNzZmMDRlOTJmOGY..<br>
CSeq: 2 INVITE.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.<br>Content-Type: application/sdp.<br>Proxy-Authorization: Digest username="1006",realm="<a href="http://88.251.45.4">88.251.45.4</a>",nonce="483edcaf82beda80a0c91fc75f486b8fd3f7bbc3",uri="<a href="mailto:sip%3A1005@88.251.45.4">sip:1005@88.251.45.4</a>",response="4423a99e44bb7266912de3a4af752b3f",cnonce="ece582bf4b1708b67bd1e86952313a63",nc=00000001,qop=auth,algorithm=MD5.<br>
User-Agent: X-Lite release 1011s stamp 41150.<br>Content-Length: 423.<br>.<br>v=0.<br>o=- 1 2 IN IP4 <a href="http://192.168.1.100">192.168.1.100</a>.<br>s=CounterPath X-Lite 3.0.<br>c=IN IP4 <a href="http://192.168.1.100">192.168.1.100</a>.<br>
t=0 0.<br>m=audio 34842 RTP/AVP 107 119 100 106 0 105 98 8 101.<br>a=alt:1 1 : bIn/n4cp vm9zXwFh <a href="http://192.168.1.100">192.168.1.100</a> 34842.<br>a=fmtp:101 0-15.<br>a=rtpmap:107 BV32/16000.<br>a=rtpmap:119 BV32-FEC/16000.<br>
a=rtpmap:100 SPEEX/16000.<br>a=rtpmap:106 SPEEX-FEC/16000.<br>a=rtpmap:105 SPEEX-FEC/8000.<br>a=rtpmap:98 iLBC/8000.<br>a=rtpmap:101 telephone-event/8000.<br>a=sendrecv.<br><br><br>Here is the INVITE resend from the UA pointing to openser's local IP:<br>
<br>U <a href="http://192.168.1.100:50314">192.168.1.100:50314</a> -> <a href="http://192.168.1.104:5060">192.168.1.104:5060</a><br>INVITE <a href="mailto:sip%3A1005@192.168.1.104">sip:1005@192.168.1.104</a> SIP/2.0.<br>
Via: SIP/2.0/UDP 192.168.1.100:50314;branch=z9hG4bK-d87543-c34be44e3704d673-1--d87543-;rport.<br>Max-Forwards: 70.<br>Contact: <<a href="http://sip:1006@192.168.1.100:50314">sip:1006@192.168.1.100:50314</a>>.<br>To: "1005"<<a href="mailto:sip%3A1005@192.168.1.104">sip:1005@192.168.1.104</a>>.<br>
From: "1006"<<a href="mailto:sip%3A1006@192.168.1.104">sip:1006@192.168.1.104</a>>;tag=d4048226.<br>Call-ID: YTc4OTE2NmIyMWRkMjk3ZGNmYmY4OTg3NTQ5NWRhZDI..<br>CSeq: 2 INVITE.<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO.<br>
Content-Type: application/sdp.<br>Proxy-Authorization: Digest username="1006",realm="<a href="http://192.168.1.104">192.168.1.104</a>",nonce="483ede954fef336afd24141e99d516b0b7d9091a",uri="<a href="mailto:sip%3A1005@192.168.1.104">sip:1005@192.168.1.104</a>",response="1b77bf191fef631049bd6d6b7dcc9094",cnonce="e96a7e7d9677c4c41952bce7ac2a36e2",nc=00000001,qop=auth,algorithm=MD5.<br>
User-Agent: X-Lite release 1011s stamp 41150.<br>Content-Length: 423.<br>.<br>v=0.<br>o=- 7 2 IN IP4 <a href="http://192.168.1.100">192.168.1.100</a>.<br>s=CounterPath X-Lite 3.0.<br>c=IN IP4 <a href="http://192.168.1.100">192.168.1.100</a>.<br>
t=0 0.<br>m=audio 14816 RTP/AVP 107 119 100 106 0 105 98 8 101.<br>a=alt:1 1 : SP8QJ5e9 96jlnBkg <a href="http://192.168.1.100">192.168.1.100</a> 14816.<br>a=fmtp:101 0-15.<br>a=rtpmap:107 BV32/16000.<br>a=rtpmap:119 BV32-FEC/16000.<br>
a=rtpmap:100 SPEEX/16000.<br>a=rtpmap:106 SPEEX-FEC/16000.<br>a=rtpmap:105 SPEEX-FEC/8000.<br>a=rtpmap:98 iLBC/8000.<br>a=rtpmap:101 telephone-event/8000.<br>a=sendrecv.<br><br>The openser script associated wit proxy_authorize is :<br>
<br>if (!proxy_authorize("","subscriber")) {<br> xlog("not authorize need to do proxy challenge\n");
<br> proxy_challenge("","1");
<br> exit;
<br> } <br><br>What could be wrong with my setup?<br><br>Thanks in advance for your help.<br><br>Thanks,<br>Mark<br>