[Spce-user] sipwise as transit switch

Skyler skchopperguy at gmail.com
Fri Jun 22 06:17:50 EDT 2012


Hi,

On Fri, Jun 22, 2012 at 2:25 AM, Andrew Pogrebennyk <
apogrebennyk at sipwise.com> wrote:

> Skyler,
>
> On 06/22/2012 10:48 AM, Skyler wrote:
> >  I just noticed that I had tested this previously using '||
> > $avp(s:caller_force_outbound_calls_to_peer) == 1' which is available for
> > peer preferences; though I believe this setting is specifically created
> > to target subscribers, not peers and actually has no effect on peers in
> > 2.5.13.
> >
> >  Is the present 'set force_outbound_calls_to_peer' in peer host
> > preferences an oversight? Should it actually have
> > been 'set force_inbound_calls_to_peer' instead?
>
> There is no mistake, 'force_outbound_calls_to_peer' will enable peer
> relay for that particular peer.
> What makes you believe it has no effect on peers?

Please describe what
> you have done and share kamailio-proxy.log.
> 'force_inbound_calls_to_peer' is a usr/domain preference useful for
> migration, to make that users are served at external switch.
>
> HTH.
> Andrew
>


 Current version: 2.5.13 default with no customtt's loaded
 Peer: Asterisk
 Peer preferences: force_outbound_calls_to_peer - enabled
 Desired Call Flow:  UAC > Asterisk > SPCE > PSTN

 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

Proxy.log:

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 (
127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (
127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (
127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@
<SRC-IP>
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 (127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@
<SRC-IP>
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 (127.0.0.1:5060)
ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (
127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (127.0.0.1:5060)
ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@
<SRC-IP>
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 (127.0.0.1:5060)
ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (
127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (
127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (
127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (
127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@
<SRC-IP>
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 (
127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@
<SRC-IP>
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 (
127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (
127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@
<SRC-IP>
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 (127.0.0.1:5060)
ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>
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 (127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@
<SRC-IP>
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 (
127.0.0.1:5060) ID=6cd1ad2a1706f09b1b2b1be16020ae1d@<SRC-IP>


skyler at vsu1:/$ sudo ngrep -d any -qt -W byline port 5060 > /tmp/peercheck

U 2012/06/22 03:06:42.459990 <SRC-IP>:5060 -> <SPCE-IP>:5060
INVITE sip:12065874251@<SPCE-IP> SIP/2.0.
Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport.
Max-Forwards: 70.
From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.
To: <sip:12065874251@<SPCE-IP>>.
Contact: <sip:12065831459@<SRC-IP>>.
Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.
CSeq: 102 INVITE.
User-Agent: gate1.
Date: Fri, 22 Jun 2012 10:06:42 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO.
Supported: replaces.
Content-Type: application/sdp.
Content-Length: 270.
.
v=0.
o=root 1458771976 1458771976 IN IP4 <SRC-IP>.
s=gate1.
c=IN IP4 <SRC-IP>.
t=0 0.
m=audio 10004 RTP/AVP 0 18 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=ptime:20.
a=sendrecv.

U 2012/06/22 03:06:42.460197 127.0.0.1:5060 -> 127.0.0.1:5062
INVITE sip:12065874251@<SPCE-IP> SIP/2.0.
Record-Route: <sip:127.0.0.1;r2=on;lr=on;ftag=as1f027124;lb=yes>.
Record-Route: <sip:<SPCE-IP>;r2=on;lr=on;ftag=as1f027124;lb=yes>.
Via: SIP/2.0/UDP
127.0.0.1;branch=z9hG4bKedf8.d4cb094c4d7a975dced73efce317088a.0.
Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport=5060.
Max-Forwards: 69.
From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.
To: <sip:12065874251@<SPCE-IP>>.
Contact: <sip:12065831459@<SRC-IP>>.
Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.
CSeq: 102 INVITE.
User-Agent: gate1.
Date: Fri, 22 Jun 2012 10:06:42 GMT.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO.
Supported: replaces.
Content-Type: application/sdp.
Content-Length: 270.
P-NGCP-Src-Ip: <SRC-IP>.
P-NGCP-Src-Port: 5060.
P-NGCP-Src-Proto: udp.
P-NGCP-Src-Af: 4.
.
v=0.
o=root 1458771976 1458771976 IN IP4 <SRC-IP>.
s=gate1.
c=IN IP4 <SRC-IP>.
t=0 0.
m=audio 10004 RTP/AVP 0 18 101.
a=rtpmap:0 PCMU/8000.
a=rtpmap:18 G729/8000.
a=fmtp:18 annexb=no.
a=rtpmap:101 telephone-event/8000.
a=fmtp:101 0-16.
a=ptime:20.
a=sendrecv.

U 2012/06/22 03:06:42.460273 127.0.0.1:5062 -> 127.0.0.1:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP
127.0.0.1;branch=z9hG4bKedf8.d4cb094c4d7a975dced73efce317088a.0;rport=5060.
Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport=5060.
From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.
To: <sip:12065874251@<SPCE-IP>>.
Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.
CSeq: 102 INVITE.
Server: Sipwise NGCP Proxy 2.X.
Content-Length: 0.
.


U 2012/06/22 03:06:42.460357 <SPCE-IP>:5060 -> <SRC-IP>:5060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport=5060.
From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.
To: <sip:12065874251@<SPCE-IP>>.
Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.
CSeq: 102 INVITE.
Server: Sipwise NGCP Proxy 2.X.
Content-Length: 0.
.


U 2012/06/22 03:06:42.468579 127.0.0.1:5062 -> 127.0.0.1:5060
SIP/2.0 404 Not Found.
Via: SIP/2.0/UDP
127.0.0.1;branch=z9hG4bKedf8.d4cb094c4d7a975dced73efce317088a.0;rport=5060.
Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport=5060.
From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.
To: <sip:12065874251@<SPCE-IP>>;tag=f3067022b00c564156251ba2f28f331f-3ee2.
Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.
CSeq: 102 INVITE.
Server: Sipwise NGCP Proxy 2.X.
Content-Length: 0.
.


U 2012/06/22 03:06:42.468853 <SPCE-IP>:5060 -> <SRC-IP>:5060
SIP/2.0 404 Not Found.
Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport=5060.
From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.
To: <sip:12065874251@<SPCE-IP>>;tag=f3067022b00c564156251ba2f28f331f-3ee2.
Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.
CSeq: 102 INVITE.
Server: Sipwise NGCP Proxy 2.X.
Content-Length: 0.
.

U 2012/06/22 03:06:42.531795 <SRC-IP>:5060 -> <SPCE-IP>:5060
ACK sip:12065874251@<SPCE-IP> SIP/2.0.
Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport.
Max-Forwards: 70.
From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.
To: <sip:12065874251@<SPCE-IP>>;tag=f3067022b00c564156251ba2f28f331f-3ee2.
Contact: <sip:12065831459@<SRC-IP>>.
Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.
CSeq: 102 ACK.
User-Agent: gate1.
Content-Length: 0.
.


U 2012/06/22 03:06:42.531966 127.0.0.1:5060 -> 127.0.0.1:5062
ACK sip:12065874251@<SPCE-IP> SIP/2.0.
Record-Route: <sip:127.0.0.1;r2=on;lr=on;ftag=as1f027124;lb=yes>.
Record-Route: <sip:<SPCE-IP>;r2=on;lr=on;ftag=as1f027124;lb=yes>.
Via: SIP/2.0/UDP
127.0.0.1;branch=z9hG4bKedf8.d4cb094c4d7a975dced73efce317088a.0.
Via: SIP/2.0/UDP <SRC-IP>:5060;branch=z9hG4bK1df4ca1e;rport=5060.
Max-Forwards: 69.
From: "skyler" <sip:12065831459@<SRC-IP>>;tag=as1f027124.
To: <sip:12065874251@<SPCE-IP>>;tag=f3067022b00c564156251ba2f28f331f-3ee2.
Contact: <sip:12065831459@<SRC-IP>>.
Call-ID: 2552952029f95f251993008a59c8d981@<SRC-IP>.
CSeq: 102 ACK.
User-Agent: gate1.
Content-Length: 0.
P-NGCP-Src-Ip: <SRC-IP>.
P-NGCP-Src-Port: 5060.
P-NGCP-Src-Proto: udp.
P-NGCP-Src-Af: 4.
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20120622/3338b322/attachment-0001.html>


More information about the Spce-user mailing list