[Spce-user] Passing calls from PBX to PSTN

Roberto Oliveira roberto.oliveira at tmco.com.br
Thu Jul 30 12:32:59 EDT 2015


Jon
You said: " You assign numbers to the subscriber as you do with any other
one. one main E164 number (block) and any other numbers as aliases."

What if the PBX send CLI as anonymous or with a number that I have not
included in the Subscriber (this was the case in my tests)?

Please check the grep below:

#
U 2015/07/30 13:18:49.702845 SipwiseDomain:5060 -> PBX_IP:5060
SIP/2.0 407 Proxy Authentication Required.
Via: SIP/2.0/UDP PBX_IP:5060;rport=5060;branch=z9hG4bK33852ee6.
From: "1149680046" <sip:1149680046 at PBX_IP>;tag=as728af5d2.
To:
<sip:5511994440199 at SipwiseDomain>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.cfe3.
Call-ID: 40c2f8302ff6ba5721e82e1a33cc6a92 at PBX_IP:5060.
CSeq: 102 INVITE.
Proxy-Authenticate: Digest realm="PBX_IP",
nonce="VbpPlVW6TmlGK5LJKB523i9dXSFyHuk0".
Server: Sipwise NGCP Proxy 3.X.
Content-Length: 0.

#
U 2015/07/30 13:18:49.702943 127.0.0.1:5060 -> 127.0.0.1:5062
ACK sip:5511994440199 at SipwiseDomain SIP/2.0.
Record-Route:
<sip:SipwiseDomain;r2=on;lr=on;ftag=as728af5d2;ngcplb=yes;socket=udp:SipwiseDomain:5060>.
Via: SIP/2.0/UDP
127.0.0.1;branch=z9hG4bKf1ec.db35cc1ffc74da57accbb907b774a55b.0.
Via: SIP/2.0/UDP PBX_IP:5060;rport=5060;branch=z9hG4bK33852ee6.
Max-Forwards: 69.
From: "1149680046" <sip:1149680046 at PBX_IP>;tag=as728af5d2.
To:
<sip:5511994440199 at SipwiseDomain>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.cfe3.
Contact: <sip:1149680046 at PBX_IP:5060>.
Call-ID: 40c2f8302ff6ba5721e82e1a33cc6a92 at PBX_IP:5060.
CSeq: 102 ACK.
User-Agent: SmartGW_A11.14.
Content-Length: 0.
P-NGCP-Src-Ip: PBX_IP.
P-NGCP-Src-Port: 5060.
P-NGCP-Src-Proto: udp.
P-NGCP-Src-Af: 4.
P-Sock-Info: udp:SipwiseDomain:5060.
.

And the proxy.log:
Jul 30 13:18:49 sipwise proxy[4377]: NOTICE: <script>: New request on
proxy - M=INVITE R=sip:5511994440199 at SipwiseDomain F=sip:1149680046 at PBX_IP
T=sip:5511994440199 at SipwiseDomain IP=PBX_IP:5060 (127.0.0.1:5060)
ID=40c2f8302ff6ba5721e82e1a33cc6a92 at PBX_IP:5060
Jul 30 13:18:49 sipwise proxy[4377]: INFO: <script>: Load domain preferences
for callee - R=sip:5511994440199 at SipwiseDomain
ID=40c2f8302ff6ba5721e82e1a33cc6a92 at PBX_IP:5060
Jul 30 13:18:49 sipwise proxy[4377]: INFO: <script>: Clean domain
preferences for callee - R=sip:5511994440199 at SipwiseDomain
ID=40c2f8302ff6ba5721e82e1a33cc6a92 at PBX_IP:5060
Jul 30 13:18:49 sipwise proxy[4377]: NOTICE: <script>: Authentication
failed, no credentials - R=sip:5511994440199 at SipwiseDomain
ID=40c2f8302ff6ba5721e82e1a33cc6a92 at PBX_IP:5060
Jul 30 13:18:49 sipwise proxy[4383]: NOTICE: <script>: New request on
proxy - M=INVITE R=sip:5511994440199 at SipwiseDomain F=sip:1149680046 at PBX_IP
T=sip:5511994440199 at SipwiseDomain IP=PBX_IP:5060 (127.0.0.1:5060)
ID=40c2f8302ff6ba5721e82e1a33cc6a92 at PBX_IP:5060
Jul 30 13:18:49 sipwise proxy[4383]: INFO: <script>: Load domain preferences
for callee - R=sip:5511994440199 at SipwiseDomain
ID=40c2f8302ff6ba5721e82e1a33cc6a92 at PBX_IP:5060
Jul 30 13:18:49 sipwise proxy[4383]: INFO: <script>: Clean domain
preferences for callee - R=sip:5511994440199 at SipwiseDomain
ID=40c2f8302ff6ba5721e82e1a33cc6a92 at PBX_IP:5060
Jul 30 13:18:49 sipwise proxy[4383]: NOTICE: <script>: Authentication
failed, no credentials - R=sip:5511994440199 at SipwiseDomain
ID=40c2f8302ff6ba5721e82e1a33cc6a92 at PBX_IP:5060


Roberto Oliveira

-----Original Message-----
From: Jon Bonilla (Manwe) [mailto:manwe at sipdoc.net]
Sent: quinta-feira, 30 de julho de 2015 11:19
To: spce-user at lists.sipwise.com
Cc: Roberto Oliveira <roberto.oliveira at tmco.com.br>
Subject: Re: [Spce-user] Passing calls from PBX to PSTN

El Thu, 30 Jul 2015 11:04:37 -0300
Roberto Oliveira <roberto.oliveira at tmco.com.br> escribió:

> Jon,
> Thanks. If I could make it work, it would be great!


Please keep the list in CC so everyone can follow the thread




> So I
> 1. removed the peering server
> 2. Created a subscriber under the domain of the PBX IP


Create the subscriber as you would create any other subscriber.

>
> But calls are still being rejected. I must be missing something during
> the creation of the subscriber. How does the system link the calls
> from that domain to this specific subscriber?
>

You assign numbers to the subscriber as you do with any other one. one main
E164 number (block) and any other numbers as aliases.


If this doesn't work please capture the traffic using ngrep-sip and grep the
proxy log by callid and attach them



More information about the Spce-user mailing list