No audio in calls

I have problems with extension. They can stablish call but there is no audio in both ways.

Here is tha trace


– 2016-06-04 07:50:20 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
REGISTER sip:200.123.163.29:5060 SIP/2.0

Accept: application/reginfo+xml, application/sdp, application/simple-message-summary, message/sipfrag, multipart/mixed, multipart/related

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bKc4f22065707bd02b3

Max-Forwards: 70

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663640 REGISTER

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Authorization: Digest username=“1004”,realm=“asterisk”,nonce=“756b3ffa”,uri=“sip:200.123.163.29:5060”,response=“1051b8db59dbf6ee60c46df491059910”,algorithm=MD5

Contact: sip:[email protected]:5060;audio;expires=120

User-Agent: Media5-fone/4.20.2.8565 iOS/9.3.3

Content-Length: 0


– 2016-06-04 07:50:20 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
SIP/2.0 401 Unauthorized

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bKc4f22065707bd02b3;received=201.234.145.94;rport=65476

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060;tag=as5653c987

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663640 REGISTER

Server: FPBX-13.0.124(13.9.1)

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce=“75ea2dfe”

Content-Length: 0


– 2016-06-04 07:50:20 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
REGISTER sip:200.123.163.29:5060 SIP/2.0

Accept: application/reginfo+xml, application/sdp, application/simple-message-summary, message/sipfrag, multipart/mixed, multipart/related

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bK879d34b69cd1d8985

Max-Forwards: 70

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663641 REGISTER

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Authorization: Digest username=“1004”,realm=“asterisk”,nonce=“75ea2dfe”,uri=“sip:200.123.163.29:5060”,response=“5745a7bc1635f49724a66ecdb8611501”,algorithm=MD5

Contact: sip:[email protected]:5060;audio;expires=120

User-Agent: Media5-fone/4.20.2.8565 iOS/9.3.3

Content-Length: 0


– 2016-06-04 07:50:20 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
OPTIONS sip:[email protected]:5060 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK390d863e;rport

Max-Forwards: 70

From: “Unknown” sip:[email protected];tag=as24c969c6

To: sip:[email protected]:5060

Contact: sip:[email protected]:5060

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

User-Agent: FPBX-13.0.124(13.9.1)

Date: Sat, 04 Jun 2016 10:50:21 GMT

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

Content-Length: 0


– 2016-06-04 07:50:20 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bK879d34b69cd1d8985;received=201.234.145.94;rport=65476

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060;tag=as5653c987

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663641 REGISTER

Server: FPBX-13.0.124(13.9.1)

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

Expires: 120

Contact: sip:[email protected]:5060;expires=120

Date: Sat, 04 Jun 2016 10:50:21 GMT

Content-Length: 0


– 2016-06-04 07:50:20 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK390d863e;rport=5060;received=200.123.163.29

From: “Unknown” sip:[email protected];tag=as24c969c6

To: sip:[email protected]:5060;tag=83807270

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Allow-Events: presence, refer

Contact: sip:[email protected]:5060;audio

Server: Media5-fone/4.20.2.8565 iOS/9.3.3

Supported: 100rel, eventlist, join, multiple-refer, norefersub, replaces, sdp-anat, tdialog, timer

Content-Length: 0


– 2016-06-04 07:51:20 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
OPTIONS sip:[email protected]:5060 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK22343986;rport

Max-Forwards: 70

From: “Unknown” sip:[email protected];tag=as1b7e58c2

To: sip:[email protected]:5060

Contact: sip:[email protected]:5060

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

User-Agent: FPBX-13.0.124(13.9.1)

Date: Sat, 04 Jun 2016 10:51:21 GMT

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

Content-Length: 0


– 2016-06-04 07:51:20 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK22343986;rport=5060;received=200.123.163.29

From: “Unknown” sip:[email protected];tag=as1b7e58c2

To: sip:[email protected]:5060;tag=3273226291

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Allow-Events: presence, refer

Contact: sip:[email protected]:5060;audio

Server: Media5-fone/4.20.2.8565 iOS/9.3.3

Supported: 100rel, eventlist, join, multiple-refer, norefersub, replaces, sdp-anat, tdialog, timer

Content-Length: 0


– 2016-06-04 07:51:50 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
REGISTER sip:200.123.163.29:5060 SIP/2.0

Accept: application/reginfo+xml, application/sdp, application/simple-message-summary, message/sipfrag, multipart/mixed, multipart/related

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bKe5c8349d3d59809a5

Max-Forwards: 70

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663642 REGISTER

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Authorization: Digest username=“1004”,realm=“asterisk”,nonce=“75ea2dfe”,uri=“sip:200.123.163.29:5060”,response=“5745a7bc1635f49724a66ecdb8611501”,algorithm=MD5

Contact: sip:[email protected]:5060;audio;expires=120

User-Agent: Media5-fone/4.20.2.8565 iOS/9.3.3

Content-Length: 0


– 2016-06-04 07:51:50 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
SIP/2.0 401 Unauthorized

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bKe5c8349d3d59809a5;received=201.234.145.94;rport=65476

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060;tag=as0cca4830

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663642 REGISTER

Server: FPBX-13.0.124(13.9.1)

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce=“2427168d”

Content-Length: 0


– 2016-06-04 07:51:50 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
REGISTER sip:200.123.163.29:5060 SIP/2.0

Accept: application/reginfo+xml, application/sdp, application/simple-message-summary, message/sipfrag, multipart/mixed, multipart/related

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bKb74f06babc6e2a9bd

Max-Forwards: 70

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663643 REGISTER

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Authorization: Digest username=“1004”,realm=“asterisk”,nonce=“2427168d”,uri=“sip:200.123.163.29:5060”,response=“e511b047213b1787944499ba8eefc835”,algorithm=MD5

Contact: sip:[email protected]:5060;audio;expires=120

User-Agent: Media5-fone/4.20.2.8565 iOS/9.3.3

Content-Length: 0


– 2016-06-04 07:51:50 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
OPTIONS sip:[email protected]:5060 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK2352c784;rport

Max-Forwards: 70

From: “Unknown” sip:[email protected];tag=as7d150d11

To: sip:[email protected]:5060

Contact: sip:[email protected]:5060

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

User-Agent: FPBX-13.0.124(13.9.1)

Date: Sat, 04 Jun 2016 10:51:51 GMT

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

Content-Length: 0


– 2016-06-04 07:51:50 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bKb74f06babc6e2a9bd;received=201.234.145.94;rport=65476

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060;tag=as0cca4830

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663643 REGISTER

Server: FPBX-13.0.124(13.9.1)

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

Expires: 120

Contact: sip:[email protected]:5060;expires=120

Date: Sat, 04 Jun 2016 10:51:51 GMT

Content-Length: 0


– 2016-06-04 07:51:50 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK2352c784;rport=5060;received=200.123.163.29

From: “Unknown” sip:[email protected];tag=as7d150d11

To: sip:[email protected]:5060;tag=3399630875

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Allow-Events: presence, refer

Contact: sip:[email protected]:5060;audio

Server: Media5-fone/4.20.2.8565 iOS/9.3.3

Supported: 100rel, eventlist, join, multiple-refer, norefersub, replaces, sdp-anat, tdialog, timer

Content-Length: 0


– 2016-06-04 07:52:50 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
OPTIONS sip:[email protected]:5060 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK447e353a;rport

Max-Forwards: 70

From: “Unknown” sip:[email protected];tag=as6ac73fac

To: sip:[email protected]:5060

Contact: sip:[email protected]:5060

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

User-Agent: FPBX-13.0.124(13.9.1)

Date: Sat, 04 Jun 2016 10:52:51 GMT

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

Content-Length: 0


– 2016-06-04 07:52:50 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK447e353a;rport=5060;received=200.123.163.29

From: “Unknown” sip:[email protected];tag=as6ac73fac

To: sip:[email protected]:5060;tag=2417050230

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Allow-Events: presence, refer

Contact: sip:[email protected]:5060;audio

Server: Media5-fone/4.20.2.8565 iOS/9.3.3

Supported: 100rel, eventlist, join, multiple-refer, norefersub, replaces, sdp-anat, tdialog, timer

Content-Length: 0


– 2016-06-04 07:53:20 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
REGISTER sip:200.123.163.29:5060 SIP/2.0

Accept: application/reginfo+xml, application/sdp, application/simple-message-summary, message/sipfrag, multipart/mixed, multipart/related

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bK8c45d9c5b1a61f7c2

Max-Forwards: 70

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663644 REGISTER

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Authorization: Digest username=“1004”,realm=“asterisk”,nonce=“2427168d”,uri=“sip:200.123.163.29:5060”,response=“e511b047213b1787944499ba8eefc835”,algorithm=MD5

Contact: sip:[email protected]:5060;audio;expires=120

User-Agent: Media5-fone/4.20.2.8565 iOS/9.3.3

Content-Length: 0


– 2016-06-04 07:53:20 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
SIP/2.0 401 Unauthorized

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bK8c45d9c5b1a61f7c2;received=201.234.145.94;rport=65476

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060;tag=as49cb8fda

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663644 REGISTER

Server: FPBX-13.0.124(13.9.1)

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce=“677a5a60”

Content-Length: 0


– 2016-06-04 07:53:20 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
REGISTER sip:200.123.163.29:5060 SIP/2.0

Accept: application/reginfo+xml, application/sdp, application/simple-message-summary, message/sipfrag, multipart/mixed, multipart/related

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bK82930cdfc661d6f0a

Max-Forwards: 70

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663645 REGISTER

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Authorization: Digest username=“1004”,realm=“asterisk”,nonce=“677a5a60”,uri=“sip:200.123.163.29:5060”,response=“c238238fae6200f53be0f70f9e333903”,algorithm=MD5

Contact: sip:[email protected]:5060;audio;expires=120

User-Agent: Media5-fone/4.20.2.8565 iOS/9.3.3

Content-Length: 0


– 2016-06-04 07:53:20 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
OPTIONS sip:[email protected]:5060 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK0d9c8293;rport

Max-Forwards: 70

From: “Unknown” sip:[email protected];tag=as6c19e79b

To: sip:[email protected]:5060

Contact: sip:[email protected]:5060

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

User-Agent: FPBX-13.0.124(13.9.1)

Date: Sat, 04 Jun 2016 10:53:21 GMT

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

Content-Length: 0


– 2016-06-04 07:53:20 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bK82930cdfc661d6f0a;received=201.234.145.94;rport=65476

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060;tag=as49cb8fda

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663645 REGISTER

Server: FPBX-13.0.124(13.9.1)

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

Expires: 120

Contact: sip:[email protected]:5060;expires=120

Date: Sat, 04 Jun 2016 10:53:21 GMT

Content-Length: 0


– 2016-06-04 07:53:20 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK0d9c8293;rport=5060;received=200.123.163.29

From: “Unknown” sip:[email protected];tag=as6c19e79b

To: sip:[email protected]:5060;tag=1971150046

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Allow-Events: presence, refer

Contact: sip:[email protected]:5060;audio

Server: Media5-fone/4.20.2.8565 iOS/9.3.3

Supported: 100rel, eventlist, join, multiple-refer, norefersub, replaces, sdp-anat, tdialog, timer

Content-Length: 0


– 2016-06-04 07:54:20 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
OPTIONS sip:[email protected]:5060 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK7212dec6;rport

Max-Forwards: 70

From: “Unknown” sip:[email protected];tag=as4f72f993

To: sip:[email protected]:5060

Contact: sip:[email protected]:5060

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

User-Agent: FPBX-13.0.124(13.9.1)

Date: Sat, 04 Jun 2016 10:54:21 GMT

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

Content-Length: 0


– 2016-06-04 07:54:20 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK7212dec6;rport=5060;received=200.123.163.29

From: “Unknown” sip:[email protected];tag=as4f72f993

To: sip:[email protected]:5060;tag=1096616765

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Allow-Events: presence, refer

Contact: sip:[email protected]:5060;audio

Server: Media5-fone/4.20.2.8565 iOS/9.3.3

Supported: 100rel, eventlist, join, multiple-refer, norefersub, replaces, sdp-anat, tdialog, timer

Content-Length: 0


– 2016-06-04 07:54:50 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
REGISTER sip:200.123.163.29:5060 SIP/2.0

Accept: application/reginfo+xml, application/sdp, application/simple-message-summary, message/sipfrag, multipart/mixed, multipart/related

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bK65c109ff2f3e66cb7

Max-Forwards: 70

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663646 REGISTER

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Authorization: Digest username=“1004”,realm=“asterisk”,nonce=“677a5a60”,uri=“sip:200.123.163.29:5060”,response=“c238238fae6200f53be0f70f9e333903”,algorithm=MD5

Contact: sip:[email protected]:5060;audio;expires=120

User-Agent: Media5-fone/4.20.2.8565 iOS/9.3.3

Content-Length: 0


– 2016-06-04 07:54:50 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
SIP/2.0 401 Unauthorized

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bK65c109ff2f3e66cb7;received=201.234.145.94;rport=65476

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060;tag=as2c7e3ee0

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663646 REGISTER

Server: FPBX-13.0.124(13.9.1)

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

WWW-Authenticate: Digest algorithm=MD5, realm=“asterisk”, nonce=“0a62b0fc”

Content-Length: 0


– 2016-06-04 07:54:50 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
REGISTER sip:200.123.163.29:5060 SIP/2.0

Accept: application/reginfo+xml, application/sdp, application/simple-message-summary, message/sipfrag, multipart/mixed, multipart/related

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bK31c1c6bdbf5572eb8

Max-Forwards: 70

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663647 REGISTER

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Authorization: Digest username=“1004”,realm=“asterisk”,nonce=“0a62b0fc”,uri=“sip:200.123.163.29:5060”,response=“892afe08c368d235b95ba8bab941ae04”,algorithm=MD5

Contact: sip:[email protected]:5060;audio;expires=120

User-Agent: Media5-fone/4.20.2.8565 iOS/9.3.3

Content-Length: 0


– 2016-06-04 07:54:50 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
OPTIONS sip:[email protected]:5060 SIP/2.0

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK0fa5238c;rport

Max-Forwards: 70

From: “Unknown” sip:[email protected];tag=as0c83ca1e

To: sip:[email protected]:5060

Contact: sip:[email protected]:5060

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

User-Agent: FPBX-13.0.124(13.9.1)

Date: Sat, 04 Jun 2016 10:54:51 GMT

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

Content-Length: 0


– 2016-06-04 07:54:50 - Received from 200.123.163.29:5060 at 192.168.14.84:5060
SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.14.84;branch=z9hG4bK31c1c6bdbf5572eb8;received=201.234.145.94;rport=65476

From: “1004” sip:[email protected]:5060;tag=4e2e1fe7a2

To: “1004” sip:[email protected]:5060;tag=as2c7e3ee0

Call-ID: bd1bc9df31dfaa2b

CSeq: 458663647 REGISTER

Server: FPBX-13.0.124(13.9.1)

Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE

Supported: replaces, timer

Expires: 120

Contact: sip:[email protected]:5060;expires=120

Date: Sat, 04 Jun 2016 10:54:51 GMT

Content-Length: 0


– 2016-06-04 07:54:50 - Sent to 200.123.163.29:5060 from 192.168.14.84:5060
SIP/2.0 200 OK

Via: SIP/2.0/UDP 192.168.1.50:5060;branch=z9hG4bK0fa5238c;rport=5060;received=200.123.163.29

From: “Unknown” sip:[email protected];tag=as0c83ca1e

To: sip:[email protected]:5060;tag=2957997991

Call-ID: [email protected]:5060

CSeq: 102 OPTIONS

Allow: ACK, BYE, CANCEL, INVITE, MESSAGE, NOTIFY, OPTIONS, REFER, SUBSCRIBE, UPDATE

Allow-Events: presence, refer

Contact: sip:[email protected]:5060;audio

Server: Media5-fone/4.20.2.8565 iOS/9.3.3

Supported: 100rel, eventlist, join, multiple-refer, norefersub, replaces, sdp-anat, tdialog, timer

Content-Length: 0

Thanks for your help!!!

are you using NAT at both ends?

It looks like your registration is being rejected. What does “CLI > sip show registry” report?

It would help if you posted your trunk config and freePBX/Asterisk version. And, as posi211 said, you need to setup NAT.

Registration sequence -

Phone: "Register"
Server: "401 Unauthorized"
Phone sometimes responds with ACK, then…
Phone: “Register” again with credentials (Digest auth)
Server: “200 OK”

So when you see an Unauthorized don’t assume there is a failure. It’s the normal handshake process.

NAT is the right answer; we can see the endpoints are in 192.168.x.x space and the server is on a public IP.

1 Like