Hi,<br><br><div class="gmail_quote">On Fri, Jun 22, 2012 at 2:25 AM, Andrew Pogrebennyk <span dir="ltr"><<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Skyler,<br>
<div class="im"><br>
On 06/22/2012 10:48 AM, Skyler wrote:<br>
> I just noticed that I had tested this previously using '||<br>
> $avp(s:caller_force_outbound_calls_to_peer) == 1' which is available for<br>
> peer preferences; though I believe this setting is specifically created<br>
> to target subscribers, not peers and actually has no effect on peers in<br>
> 2.5.13.<br>
><br>
> Is the present 'set force_outbound_calls_to_peer' in peer host<br>
> preferences an oversight? Should it actually have<br>
> been 'set force_inbound_calls_to_peer' instead?<br>
<br>
</div>There is no mistake, 'force_outbound_calls_to_peer' will enable peer<br>
relay for that particular peer.<br>
What makes you believe it has no effect on peers? </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please describe what<br>
you have done and share kamailio-proxy.log.<br>
'force_inbound_calls_to_peer' is a usr/domain preference useful for<br>
migration, to make that users are served at external switch.<br>
<br>
HTH.<br>
<span class="HOEnZb"><font color="#888888">Andrew<br>
</font></span></blockquote></div><br><div><br></div><div> Current version: 2.5.13 default with no customtt's loaded</div><div> Peer: Asterisk</div><div> Peer preferences: force_outbound_calls_to_peer - enabled</div><div>
Desired Call Flow: UAC > Asterisk > SPCE > PSTN</div><div><br></div><div> Below are log and ngrep of the desired flow. When I have '|| $avp(s:caller_force_outbound_calls_to_peer) == 1' this is working no issue. But default 2.5.13 is not working. I believe the confusion may lie between desired effect of force_outbound_calls_to_peer and force_inbound_calls_to_peer</div>
<div> </div><div>Proxy.log:</div><div><br></div><div><div>INFO: <script>: New request - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Call from PSTN - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Dialog set mark TOTAL - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Load peer preferences for peer host '1' - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Load dialplan IDs for peer host '1' - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Fetched dialplan IDs caller_in='<null>', callee_in='<null>' - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Dialog set mark peer to '1' - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: IP authorization for caller not provisioned, allow call - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: User-provided CLI '12065831459' in From found - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Setting '12065831459@<SRC-IP>' as initiating user-provided CLI - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Setting '12065831459@<SRC-IP>' as initiating network-provided CLI - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Searching for callee - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Clear callee preferences - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Callee is not local - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Check Administrative NCOS level - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Check User NCOS level - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Admin caller block mode is 'open' - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Caller block mode is 'open' - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Call to unknown user - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Accounting failed request for uuid '0' - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Setting acc source-leg for uuid '0': '0|12065831459|<SRC-IP>|12065831459|||0|||0|call|1340359157.424734' - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: Setting acc destination-leg for uuid '0': '||0|12065874251|0|12065874251|<SPCE-IP>|12065874251|<SPCE-IP>' - M=INVITE R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
<div>INFO: <script>: New request - M=ACK R=sip:12065874251@<SPCE-IP> F=sip:12065831459@<SRC-IP> T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (<a href="http://127.0.0.1:5060">127.0.0.1:5060</a>) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP></div>
</div><div><br></div><div><br></div><div>skyler@vsu1:/$ sudo ngrep -d any -qt -W byline port 5060 > /tmp/peercheck</div><div><br></div><div><div>U 2012/06/22 03:06:42.459990 <SRC-IP>:5060 -> <SPCE-IP>:5060</div>
<div>INVITE sip:12065874251@<SPCE-IP> SIP/2.0.</div><div>Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport.</div><div>Max-Forwards: 70.</div><div>From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.</div>
<div>To: <sip:12065874251@<SPCE-IP>>.</div><div>Contact: <sip:12065831459@<SRC-IP>>.</div><div>Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.</div><div>CSeq: 102 INVITE.</div><div>User-Agent: gate1.</div>
<div>Date: Fri, 22 Jun 2012 10:06:42 GMT.</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO.</div><div>Supported: replaces.</div><div>Content-Type: application/sdp.</div><div>Content-Length: 270.</div>
<div>.</div><div>v=0.</div><div>o=root 1458771976 1458771976 IN IP4 <SRC-IP>.</div><div>s=gate1.</div><div>c=IN IP4 <SRC-IP>.</div><div>t=0 0.</div><div>m=audio 10004 RTP/AVP 0 18 101.</div><div>a=rtpmap:0 PCMU/8000.</div>
<div>a=rtpmap:18 G729/8000.</div><div>a=fmtp:18 annexb=no.</div><div>a=rtpmap:101 telephone-event/8000.</div><div>a=fmtp:101 0-16.</div><div>a=ptime:20.</div><div>a=sendrecv.</div><div><br></div><div>U 2012/06/22 03:06:42.460197 <a href="http://127.0.0.1:5060">127.0.0.1:5060</a> -> <a href="http://127.0.0.1:5062">127.0.0.1:5062</a></div>
<div>INVITE sip:12065874251@<SPCE-IP> SIP/2.0.</div><div>Record-Route: <sip:127.0.0.1;r2=on;lr=on;ftag=as1f027124;lb=yes>.</div><div>Record-Route: <sip:<SPCE-IP>;r2=on;lr=on;ftag=as1f027124;lb=yes>.</div>
<div>Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bKedf8.d4cb094c4d7a975dced73efce317088a.0.</div><div>Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport=5060.</div><div>Max-Forwards: 69.</div><div>From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.</div>
<div>To: <sip:12065874251@<SPCE-IP>>.</div><div>Contact: <sip:12065831459@<SRC-IP>>.</div><div>Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.</div><div>CSeq: 102 INVITE.</div><div>User-Agent: gate1.</div>
<div>Date: Fri, 22 Jun 2012 10:06:42 GMT.</div><div>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO.</div><div>Supported: replaces.</div><div>Content-Type: application/sdp.</div><div>Content-Length: 270.</div>
<div>P-NGCP-Src-Ip: <SRC-IP>.</div><div>P-NGCP-Src-Port: 5060.</div><div>P-NGCP-Src-Proto: udp.</div><div>P-NGCP-Src-Af: 4.</div><div>.</div><div>v=0.</div><div>o=root 1458771976 1458771976 IN IP4 <SRC-IP>.</div>
<div>s=gate1.</div><div>c=IN IP4 <SRC-IP>.</div><div>t=0 0.</div><div>m=audio 10004 RTP/AVP 0 18 101.</div><div>a=rtpmap:0 PCMU/8000.</div><div>a=rtpmap:18 G729/8000.</div><div>a=fmtp:18 annexb=no.</div><div>a=rtpmap:101 telephone-event/8000.</div>
<div>a=fmtp:101 0-16.</div><div>a=ptime:20.</div><div>a=sendrecv.</div><div><br></div><div>U 2012/06/22 03:06:42.460273 <a href="http://127.0.0.1:5062">127.0.0.1:5062</a> -> <a href="http://127.0.0.1:5060">127.0.0.1:5060</a></div>
<div>SIP/2.0 100 Trying.</div><div>Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bKedf8.d4cb094c4d7a975dced73efce317088a.0;rport=5060.</div><div>Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport=5060.</div><div>From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.</div>
<div>To: <sip:12065874251@<SPCE-IP>>.</div><div>Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.</div><div>CSeq: 102 INVITE.</div><div>Server: Sipwise NGCP Proxy 2.X.</div><div>Content-Length: 0.</div>
<div>.</div><div><br></div><div><br></div><div>U 2012/06/22 03:06:42.460357 <SPCE-IP>:5060 -> <SRC-IP>:5060</div><div>SIP/2.0 100 Trying.</div><div>Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport=5060.</div>
<div>From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.</div><div>To: <sip:12065874251@<SPCE-IP>>.</div><div>Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.</div><div>CSeq: 102 INVITE.</div>
<div>Server: Sipwise NGCP Proxy 2.X.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div><br></div><div>U 2012/06/22 03:06:42.468579 <a href="http://127.0.0.1:5062">127.0.0.1:5062</a> -> <a href="http://127.0.0.1:5060">127.0.0.1:5060</a></div>
<div>SIP/2.0 404 Not Found.</div><div>Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bKedf8.d4cb094c4d7a975dced73efce317088a.0;rport=5060.</div><div>Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport=5060.</div><div>
From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.</div><div>To: <sip:12065874251@<SPCE-IP>>;tag=f3067022b00c564156251ba2f28f331f-3ee2.</div><div>Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.</div>
<div>CSeq: 102 INVITE.</div><div>Server: Sipwise NGCP Proxy 2.X.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div><br></div><div>U 2012/06/22 03:06:42.468853 <SPCE-IP>:5060 -> <SRC-IP>:5060</div>
<div>SIP/2.0 404 Not Found.</div><div>Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport=5060.</div><div>From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.</div><div>To: <sip:12065874251@<SPCE-IP>>;tag=f3067022b00c564156251ba2f28f331f-3ee2.</div>
<div>Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.</div><div>CSeq: 102 INVITE.</div><div>Server: Sipwise NGCP Proxy 2.X.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div>U 2012/06/22 03:06:42.531795 <SRC-IP>:5060 -> <SPCE-IP>:5060</div>
<div>ACK sip:12065874251@<SPCE-IP> SIP/2.0.</div><div>Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport.</div><div>Max-Forwards: 70.</div><div>From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.</div>
<div>To: <sip:12065874251@<SPCE-IP>>;tag=f3067022b00c564156251ba2f28f331f-3ee2.</div><div>Contact: <sip:12065831459@<SRC-IP>>.</div><div>Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.</div>
<div>CSeq: 102 ACK.</div><div>User-Agent: gate1.</div><div>Content-Length: 0.</div><div>.</div><div><br></div><div><br></div><div>U 2012/06/22 03:06:42.531966 <a href="http://127.0.0.1:5060">127.0.0.1:5060</a> -> <a href="http://127.0.0.1:5062">127.0.0.1:5062</a></div>
<div>ACK sip:12065874251@<SPCE-IP> SIP/2.0.</div><div>Record-Route: <sip:127.0.0.1;r2=on;lr=on;ftag=as1f027124;lb=yes>.</div><div>Record-Route: <sip:<SPCE-IP>;r2=on;lr=on;ftag=as1f027124;lb=yes>.</div>
<div>Via: SIP/2.0/UDP 127.0.0.1;branch=z9hG4bKedf8.d4cb094c4d7a975dced73efce317088a.0.</div><div>Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport=5060.</div><div>Max-Forwards: 69.</div><div>From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.</div>
<div>To: <sip:12065874251@<SPCE-IP>>;tag=f3067022b00c564156251ba2f28f331f-3ee2.</div><div>Contact: <sip:12065831459@<SRC-IP>>.</div><div>Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.</div>
<div>CSeq: 102 ACK.</div><div>User-Agent: gate1.</div><div>Content-Length: 0.</div><div>P-NGCP-Src-Ip: <SRC-IP>.</div><div>P-NGCP-Src-Port: 5060.</div><div>P-NGCP-Src-Proto: udp.</div><div>P-NGCP-Src-Af: 4.</div><div>
.</div></div><div><br></div>