[Spce-user] Comunication - Asterisk Trunk Dial (sipwise reject call)
Diego Ramos
diego.ramos1 at gmail.com
Fri Apr 1 10:00:56 EDT 2016
Hello!
I performed the installation of sip: providerCE mr4.2 following the
instructions in the guide successfully, made the setting without any
problem.
IP 172.18.0.30 sipwise
Asterisk IP 172.18.0.2
My problem: I created a Subscribers in 2022 and performed the test setting
on a phone yealink run perfectly to perform esternas and between
subscribers links, however to set up a trunk in Asterisk version 11 as a
friend with the following configuration.
type = friend
nat = no
canreinvite = no
host = 172.18.0.30
context = from-pstn
secret = xxxxxxx
username = 2022
fromuser = 2022
defaultuser = 2022
insecure = invite
outboundproxy = 172.18.0.30
When trying to carry out a connection through the trunk has the following
in sngrep:
INVITE 2022 at 172.18.0.2 01140523659 at 172.18.0.30 32 172.18.0.2:5060
172.18.0.30:5060 REJECTED
I noticed that had 407 Proxy Authentication Required
I enabled the option allow_out_foreign_domain in the field and continues to
show the following:
�ò� q�{�VYg
??s��I6E`/Σ@Nv��
��U�INVITE sip:01140523659 at 172.18.0.30 SIP/2.0
Via: SIP/2.0/UDP 172.18.0.2:5060;branch=z9hG4bK5a574706
Max-Forwards: 70
From: <sip:2022 at 172.18.0.2>;tag=as4670238f
To: <sip:01140523659 at 172.18.0.30>
Contact: <sip:2022 at 172.18.0.2:5060>
Call-ID: 317796b20c800e3d59808c053a31e7b1 at 172.18.0.2:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.11.0(11.13.0)
Date: Fri, 01 Apr 2016 13:43:33 GMT
Session-Expires: 600
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Remote-Party-ID: "2022" <sip:2022 at 172.18.0.2
>;party=calling;privacy=off;screen=no
Content-Type: application/sdp
Content-Length: 625
v=0
o=root 1565591067 1565591067 IN IP4 172.18.0.2
s=Asterisk PBX 11.13.0
c=IN IP4 172.18.0.2
b=CT:384
t=0 0
m=audio 16804 RTP/AVP 8 3 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
m=video 13584 RTP/AVP 31 34 98 99
a=rtpmap:31 H261/90000
a=rtpmap:34 H263/90000
a=fmtp:34 F=0;I=0;J=0;T=0;K=0;N=0;BPP=0;HRD=0
a=rtpmap:98 H263-1998/90000
a=fmtp:98 F=0;I=0;J=0;T=0;K=0;N=0;BPP=0;HRD=0
a=rtpmap:99 H264/90000
a=fmtp:99
redundant-pic-cap=0;parameter-add=0;packetization-mode=0;level-asymmetry-allowed=0
a=sendrecv
�{�V�h
++cE�3�@AS��INVITE sip:01140523659 at 172.18.0.30 SIP/2.0
Record-Route:
<sip:127.0.0.1;r2=on;lr=on;ftag=as4670238f;nat=yes;ngcplb=yes;socket=udp:
172.18.0.30:5060>
Record-Route:
<sip:172.18.0.30;r2=on;lr=on;ftag=as4670238f;nat=yes;ngcplb=yes;socket=udp:
172.18.0.30:5060>
Via: SIP/2.0/UDP
127.0.0.1;branch=z9hG4bK82fb.4669b8320d0bbf2637204665317e7c29.0
Via: SIP/2.0/UDP 172.18.0.2:5060;rport=5060;branch=z9hG4bK5a574706
Max-Forwards: 69
From: <sip:2022 at 172.18.0.2>;tag=as4670238f
To: <sip:01140523659 at 172.18.0.30>
Contact: <sip:2022 at 172.18.0.2:5060>
Call-ID: 317796b20c800e3d59808c053a31e7b1 at 172.18.0.2:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.11.0(11.13.0)
Date: Fri, 01 Apr 2016 13:43:33 GMT
Session-Expires: 600
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Remote-Party-ID: "2022" <sip:2022 at 172.18.0.2
>;party=calling;privacy=off;screen=no
Content-Type: application/sdp
Content-Length: 665
P-NGCP-Src-Ip: 172.18.0.2
P-NGCP-Src-Port: 5060
P-NGCP-Src-Proto: udp
P-NGCP-Src-Af: 4
P-Sock-Info: udp:172.18.0.30:5060
P-NGCP-Src-Nat: 1
v=0
o=root 1565591067 1565591067 IN IP4 172.18.0.2
s=Asterisk PBX 11.13.0
c=IN IP4 172.18.0.2
b=CT:384
t=0 0
m=audio 16804 RTP/AVP 8 3 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
a=direction:active
m=video 13584 RTP/AVP 31 34 98 99
a=rtpmap:31 H261/90000
a=rtpmap:34 H263/90000
a=fmtp:34 F=0;I=0;J=0;T=0;K=0;N=0;BPP=0;HRD=0
a=rtpmap:98 H263-1998/90000
a=fmtp:98 F=0;I=0;J=0;T=0;K=0;N=0;BPP=0;HRD=0
a=rtpmap:99 H264/90000
a=fmtp:99
redundant-pic-cap=0;parameter-add=0;packetization-mode=0;level-asymmetry-allowed=0
a=sendrecv
a=direction:active
�{�V�i
E�3�@G�����SIP/2.0 100 Trying
Via: SIP/2.0/UDP
127.0.0.1;branch=z9hG4bK82fb.4669b8320d0bbf2637204665317e7c29.0
Via: SIP/2.0/UDP 172.18.0.2:5060;rport=5060;branch=z9hG4bK5a574706
From: <sip:2022 at 172.18.0.2>;tag=as4670238f
To: <sip:01140523659 at 172.18.0.30>
Call-ID: 317796b20c800e3d59808c053a31e7b1 at 172.18.0.2:5060
CSeq: 102 INVITE
P-Out-Socket: udp:172.18.0.30:5060
P-NGCP-Auth-IP: 172.18.0.2
P-NGCP-Auth-UA: FPBX-2.11.0(11.13.0)
Server: Sipwise NGCP Proxy 4.X
Content-Length: 0
�{�VJj
UU��
�6E�E.�@��
���1Y�SIP/2.0 100 Trying
Via: SIP/2.0/UDP 172.18.0.2:5060;rport=5060;branch=z9hG4bK5a574706
From: <sip:2022 at 172.18.0.2>;tag=as4670238f
To: <sip:01140523659 at 172.18.0.30>
Call-ID: 317796b20c800e3d59808c053a31e7b1 at 172.18.0.2:5060
CSeq: 102 INVITE
Server: Sipwise NGCP Proxy 4.X
Content-Length: 0
�{�V�t
��E�3�@F}����SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP
127.0.0.1;branch=z9hG4bK82fb.4669b8320d0bbf2637204665317e7c29.0
Via: SIP/2.0/UDP 172.18.0.2:5060;rport=5060;branch=z9hG4bK5a574706
From: <sip:2022 at 172.18.0.2>;tag=as4670238f
To: <sip:01140523659 at 172.18.0.30>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.13df
Call-ID: 317796b20c800e3d59808c053a31e7b1 at 172.18.0.2:5060
CSeq: 102 INVITE
P-Out-Socket: udp:172.18.0.30:5060
P-NGCP-Auth-IP: 172.18.0.2
P-NGCP-Auth-UA: FPBX-2.11.0(11.13.0)
Proxy-Authenticate: Digest realm="172.18.0.2",
nonce="Vv5881b+e8eG8NuGC/F/4+yh9OHlKeUp"
Server: Sipwise NGCP Proxy 4.X
Content-Length: 0
�{�V�u
����
�6IE��.�@�k�
����Z!SIP/2.0 407 Proxy Authentication
Required
Via: SIP/2.0/UDP 172.18.0.2:5060;rport=5060;branch=z9hG4bK5a574706
From: <sip:2022 at 172.18.0.2>;tag=as4670238f
To: <sip:01140523659 at 172.18.0.30>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.13df
Call-ID: 317796b20c800e3d59808c053a31e7b1 at 172.18.0.2:5060
CSeq: 102 INVITE
Proxy-Authenticate: Digest realm="172.18.0.2",
nonce="Vv5881b+e8eG8NuGC/F/4+yh9OHlKeUp"
Server: Sipwise NGCP Proxy 4.X
Content-Length: 0
�{�V�v
��s��I1E`�Τ@Q���
���߿ACK sip:01140523659 at 172.18.0.30 SIP/2.0
Via: SIP/2.0/UDP 172.18.0.2:5060;branch=z9hG4bK5a574706
Max-Forwards: 70
From: <sip:2022 at 172.18.0.2>;tag=as4670238f
To: <sip:01140523659 at 172.18.0.30>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.13df
Contact: <sip:2022 at 172.18.0.2:5060>
Call-ID: 317796b20c800e3d59808c053a31e7b1 at 172.18.0.2:5060
CSeq: 102 ACK
User-Agent: FPBX-2.11.0(11.13.0)
Content-Length: 0
�{�V�w
��-E�s3�@D���_sACK sip:01140523659 at 172.18.0.30 SIP/2.0
Record-Route:
<sip:127.0.0.1;r2=on;lr=on;ftag=as4670238f;nat=yes;ngcplb=yes;socket=udp:
172.18.0.30:5060>
Record-Route:
<sip:172.18.0.30;r2=on;lr=on;ftag=as4670238f;nat=yes;ngcplb=yes;socket=udp:
172.18.0.30:5060>
Via: SIP/2.0/UDP
127.0.0.1;branch=z9hG4bK82fb.4669b8320d0bbf2637204665317e7c29.0
Via: SIP/2.0/UDP 172.18.0.2:5060;rport=5060;branch=z9hG4bK5a574706
Max-Forwards: 69
From: <sip:2022 at 172.18.0.2>;tag=as4670238f
To: <sip:01140523659 at 172.18.0.30>;tag=1d24a28a0bded6c40d31e6db8aab9ac6.13df
Contact: <sip:2022 at 172.18.0.2:5060>
Call-ID: 317796b20c800e3d59808c053a31e7b1 at 172.18.0.2:5060
CSeq: 102 ACK
User-Agent: FPBX-2.11.0(11.13.0)
Content-Length: 0
P-NGCP-Src-Ip: 172.18.0.2
P-NGCP-Src-Port: 5060
P-NGCP-Src-Proto: udp
P-NGCP-Src-Af: 4
P-Sock-Info: udp:172.18.0.30:5060
P-NGCP-Src-Nat: 1
�{�Vx
��s��IbE`�Υ @-Ǭ�
���[INVITE sip:01140523659 at 172.18.0.30 SIP/2.0
Via: SIP/2.0/UDP 172.18.0.2:5060;branch=z9hG4bK0565451e
Max-Forwards: 70
From: <sip:2022 at 172.18.0.2>;tag=as4670238f
To: <sip:01140523659 at 172.18.0.30>
Contact: <sip:2022 at 172.18.0.2:5060>
Call-ID: 317796b20c800e3d59808c053a31e7b1 at 172.18.0.2:5060
CSeq: 103 INVITE
User-Agent: FPBX-2.11.0(11.13.0)
Proxy-Authorization: Digest username="2022", realm="172.18.0.2",
algorithm=MD5, uri="sip:01140523659 at 172.18.0.30",
nonce="Vv5881b+e8eG8NuGC/F/4+yh9OHlKeUp",
response="c1a67303ed92ba3ea75cca4809a6620f"
Date: Fri, 01 Apr 2016 13:43:33 GMT
Session-Expires: 600
Min-SE: 90
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO,
PUBLISH, MESSAGE
Supported: replaces, timer
Remote-Party-ID: "2022" <sip:2022 at 172.18.0.2
>;party=calling;privacy=off;screen=no
Content-Type: application/sdp
Content-Length: 625
v=0
o=root 1565591067 1565591068 IN IP4 172.18.0.2
s=Asterisk PBX 11.13.0
c=IN IP4 172.18.0.2
b=CT:384
t=0 0
m=audio 16804 RTP/AVP 8 3 0 101
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
m=video 13584 RTP/AVP 31 34 98 99
a=rtpmap:31 H261/90000
a=rtpmap:34 H263/90000
a=fmtp:34 F=0;I=0;J=0;T=0;K=0;N=0;BPP=0;HRD=0
a=rtpmap:98 H263-1998/90000
a=fmtp:98 F=0;I=0;J=0;T=0;K=0;N=0;BPP=0;HRD=0
a=rtpmap:99 H264/90000
a=fmtp:99
redundant-pic-cap=0;parameter-add=0;packetization-mode=0;level-asym�{�Vx
AAs��E`1�@R���
metry-allowed=0
a=sendrecv
�{�V�x
����
�6uE�u.�@�Ԭ
���aY�SIP/2.0 403 Try again later
Via: SIP/2.0/UDP 172.18.0.2:5060;branch=z9hG4bK0565451e;rport=5060
From: <sip:2022 at 172.18.0.2>;tag=as4670238f
To: <sip:01140523659 at 172.18.0.30>;tag=6e41bd46f2529aace871e4ad0850f03a.1902
Call-ID: 317796b20c800e3d59808c053a31e7b1 at 172.18.0.2:5060
CSeq: 103 INVITE
Server: Sipwise NGCP LB 4.X
Content-Length: 0
�{�V�y
��s�E`�Φ@Q���
���4�ACK sip:01140523659 at 172.18.0.30 SIP/2.0
Via: SIP/2.0/UDP 172.18.0.2:5060;branch=z9hG4bK0565451e
Max-Forwards: 70
From: <sip:2022 at 172.18.0.2>;tag=as4670238f
To: <sip:01140523659 at 172.18.0.30>;tag=6e41bd46f2529aace871e4ad0850f03a.1902
Contact: <sip:2022 at 172.18.0.2:5060>
Call-ID: 317796b20c800e3d59808c053a31e7b1 at 172.18.0.2:5060
CSeq: 103 ACK
User-Agent: FPBX-2.11.0(11.13.0)
Content-Length: 0
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/mailman/private/spce-user_lists.sipwise.com/attachments/20160401/f4ed44d8/attachment.html>
More information about the Spce-user
mailing list