[Spce-user] sipwise as transit switch
Skyler
skchopperguy at gmail.com
Mon Jun 18 01:05:32 EDT 2012
Hi,
Sorry, I spoke a bit too soon. There is now very strange behavior...
When I execute ngrep -d any -qt -W byline port 5060 > /tmp/check as root
or sudo... no inbound calls from this peer is working. BUT, if I don't use
ngrep, meaning its not running during the time of any inbound call from
this peer, everything works fine.
Here is my recent change: (under [ROUTE_INVITE_TO_EXT])
# skyler: set force_outbound_calls_to_peer
if($var(from_pstn) != 1 || $var(forward) == 1 || $var(cf_loop) == 1
|| $avp(s:caller_force_outbound_calls_to_peer) == 1)
#if($var(from_pstn) != 1 || $var(forward) == 1 || $var(cf_loop) ==
1)
{
set_dlg_profile("type","outgoing");
xlog("L_INFO", "Dialog set mark type to outgoing - M=$rm
R=$ru F=$fu T=$tu IP=$avp(s:ip):$avp(s:port) ($si:$sp) ID=$ci\n");
route(ROUTE_PSTN);
}
Here is a snip from /var/log/ngcp/kamailio-proxy.log
Look for " Setting acc destination-leg for uuid '0' ", then after that F=0
which eventually leads to BAD-URI. Any tips? Did I put the above in the
wrong spot?
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=2772858975353bd9360902607d859234@<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=2772858975353bd9360902607d859234@<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=2772858975353bd9360902607d859234@<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=2772858975353bd9360902607d859234@
<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=2772858975353bd9360902607d859234@
<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=2772858975353bd9360902607d859234@<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=2772858975353bd9360902607d859234@<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=2772858975353bd9360902607d859234@<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=2772858975353bd9360902607d859234@
<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=2772858975353bd9360902607d859234@<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=2772858975353bd9360902607d859234@<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=2772858975353bd9360902607d859234@<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=2772858975353bd9360902607d859234@<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=2772858975353bd9360902607d859234@<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=2772858975353bd9360902607d859234@
<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=2772858975353bd9360902607d859234@<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=2772858975353bd9360902607d859234@
<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=2772858975353bd9360902607d859234@<SRC-IP>
INFO: <script>: Dialog set mark type to outgoing - 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=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: Call to 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=2772858975353bd9360902607d859234@<SRC-IP>
INFO: <script>: Load gws matching calling part '12065831459@<SRC-IP>' and
called part '12065874251' - 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=2772858975353bd9360902607d859234@<SRC-IP>
INFO: <script>: Load peer preferences for peer host '2' - M=INVITE R=
sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP>
IP=<SRC-IP>:5060 (127.0.0.1:5060) ID=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: Load dialplan IDs for peer host '2' - M=INVITE R=
sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP>
IP=<SRC-IP>:5060 (127.0.0.1:5060) ID=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: Fetched dialplan IDs caller_out='<null>',
callee_out='<null>' - M=INVITE
R=sip:12065874251 at 216.187.81.200F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (127.0.0.1:5060)
ID=2772858975353bd9360902607d859234@<SRC-IP>
INFO: <script>: Dialog set mark peer and peerout to '2' - M=INVITE R=
sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP>
IP=<SRC-IP>:5060 (127.0.0.1:5060) ID=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: Setting acc source-leg for uuid '0':
'0|12065831459|<SRC-IP>|12065831459|||0|||<null>|call|1339994718.134562' -
M=INVITE R=sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (127.0.0.1:5060)
ID=2772858975353bd9360902607d859234@<SRC-IP>
INFO: <script>: Setting acc destination-leg for uuid '0':
'||0|12065874251|0|12065874251|216.187.81.200|12065874251|<SPCE-IP>' -
M=INVITE R=sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (127.0.0.1:5060)
ID=2772858975353bd9360902607d859234@<SRC-IP>
INFO: <script>: Relaying request - M=INVITE
R=sip:12065874251 at 216.187.81.200F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (127.0.0.1:5060)
ID=2772858975353bd9360902607d859234@<SRC-IP>
INFO: <script>: Use mediaproxy for forward direction for IPv4/IPv4 -
M=INVITE R=sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (127.0.0.1:5060)
ID=2772858975353bd9360902607d859234@<SRC-IP>
INFO: <script>: Display name found, Setting UPN to 'Skyler' - M=INVITE R=
sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP>
IP=<SRC-IP>:5060 (127.0.0.1:5060) ID=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: Writing sbc parameters <null> - M=INVITE R=
sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP>
IP=<SRC-IP>:5060 (127.0.0.1:5060) ID=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: Setting 'sip:216.187.81.200:5060' taken from D-URI as next
hop after lb for PSTN call - M=INVITE
R=sip:12065874251 at 216.187.81.200F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (127.0.0.1:5060)
ID=2772858975353bd9360902607d859234@<SRC-IP>
INFO: <script>: Appending P-D-URI 'sip:127.0.0.1:5060;received=sip:
216.187.81.200:5060' - M=INVITE
R=sip:12065874251 at 216.187.81.200F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (127.0.0.1:5060)
ID=2772858975353bd9360902607d859234@<SRC-IP>
INFO: <script>: Forcing request via B2BUA 'sip:127.0.0.1:5080' - M=INVITE R=
sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP>
IP=<SRC-IP>:5060 (127.0.0.1:5060) ID=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: Setting P-Caller-UUID to '0' - M=INVITE R=
sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP>
IP=<SRC-IP>:5060 (127.0.0.1:5060) ID=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: Setting P-Callee-UUID to '0' - M=INVITE R=
sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP>
IP=<SRC-IP>:5060 (127.0.0.1:5060) ID=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: Request leaving server, D-URI='sip:127.0.0.1:5080' -
M=INVITE R=sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (127.0.0.1:5060)
ID=2772858975353bd9360902607d859234@<SRC-IP>
INFO: <script>: NAT-Reply - S=100 - Connecting F=0 T=sip:12065874251@<SPCE-IP>
IP=<SRC-IP>:5060 (127.0.0.1:5080) ID=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: NAT-Reply - S=400 - Bad From URI F=0
T=sip:12065874251@<SPCE-IP>
IP=<SRC-IP>:5060 (127.0.0.1:5080) ID=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: Failure route for PSTN call - M=INVITE R=
sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP>
IP=<SRC-IP>:5060 (127.0.0.1:5060) ID=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: Unset dialog mark peer and peerout '2' - M=INVITE R=
sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP>
IP=<SRC-IP>:5060 (127.0.0.1:5060) ID=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: Filter reply code - M=INVITE R=
sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP>
IP=<SRC-IP>:5060 (127.0.0.1:5060) ID=2772858975353bd9360902607d859234@
<SRC-IP>
INFO: <script>: No failover routing needed for this response code -
M=INVITE R=sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (127.0.0.1:5060)
ID=2772858975353bd9360902607d859234@<SRC-IP>
INFO: <script>: Stop mediaproxy for current branch using first Via -
M=INVITE R=sip:12065874251 at 216.187.81.200 F=sip:12065831459@<SRC-IP>
T=sip:12065874251@<SPCE-IP> IP=<SRC-IP>:5060 (127.0.0.1:5060)
ID=2772858975353bd9360902607d859234@<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=2772858975353bd9360902607d859234@<SRC-IP>
On Sun, Jun 17, 2012 at 9:41 PM, Skyler <skchopperguy at gmail.com> wrote:
> Hi,
>
> Thank you for the help. Adding ||
> $avp(s:caller_force_outbound_calls_to_peer) == 1 did the trick. It is
> working perfectly now.
>
> S.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20120617/35465415/attachment-0001.html>
More information about the Spce-user
mailing list