[Asterisk-Users] AudioCodes MP-124

Giedrius Augys voipas at gmail.com
Fri Jun 30 20:34:03 MST 2006


Hi,

I have AudioCodes MP-124 device. It works fine, but I want to fix one
problem, but I don't know how! In AudioCodes I've created two lines
for tests:52040668
and 52040669. Here is my sip.conf fragment sniffed traffic:

sip.conf
[52040668]
type=friend
accountcode=1
videosupport=yes
context=bandymas
secret=12345
host=dynamic ; This device needs to register
nat=no ; X-Lite is behind a NAT router
canreinvite=no ; Typically set to NO if behind NAT

[52040669]
type=friend
accountcode=1
videosupport=yes
context=bandymas
secret=12345
host=dynamic
nat=no
canreinvite=no
allow=all



*#
U 192.168.144.161:5060 -> 192.168.144.157:5060
**REGISTER sip:192.168.144.157 SIP/2.0.
**Via: SIP/2.0/UDP 192.168.144.161;branch=z9hG4bKac1513259412.
**Max-Forwards: 70.
**From: <sip:52040668 at audiocodes>;tag=1c1513251713.
**To: <sip:52040668 at audiocodes>.
Call-ID: 70673352311200042619 at 192.168.144.161.
CSeq: 933 REGISTER.
**Contact: <sip:52040668 at 192.168.144.161>;expires=180.
Supported: em,timer,replaces,path.
**Allow:
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE.
**Expires: 180.
**User-Agent: Audiocodes-Sip-Gateway-MP-124 FXS/v.4.60A.016.003.
**Content-Length: 0.

.
**#
U 192.168.144.157:5060 -> 192.168.144.161:5060
**SIP/2.0 100 Trying.
**Via: SIP/2.0/UDP 192.168.144.161;branch=z9hG4bKac1513259412;received=
192.168.144.161.
**From: <sip:52040668 at audiocodes>;tag=1c1513251713.
**To: <sip:52040668 at audiocodes>.
**Call-ID: 70673352311200042619 at 192.168.144.161.
**CSeq: 933 REGISTER.
**User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
**Contact: <sip:52040668 at 192.168.144.157>.
**Content-Length: 0.

.
**
**#
**U 192.168.144.157:5060 -> 192.168.144.161:5060
**SIP/2.0 401 Unauthorized.
**Via: SIP/2.0/UDP 192.168.144.161;branch=z9hG4bKac1513259412;received=
192.168.144.161.
From: <sip:52040668 at audiocodes>;tag=1c1513251713.
**To: <sip:52040668 at audiocodes>;tag=as06ce03af.
**Call-ID: 70673352311200042619 at 192.168.144.161.
**CSeq: 933 REGISTER.
**User-Agent: Asterisk PBX.
**Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Contact: <sip:52040668 at 192.168.144.157>.
**WWW-Authenticate: Digest realm="asterisk", nonce="6b60d637".
**Content-Length: 0.
**
.
**#
U 192.168.144.161:5060 -> 192.168.144.157:5060
**REGISTER sip:192.168.144.157 SIP/2.0.
Via: SIP/2.0/UDP 192.168.144.161;branch=z9hG4bKac1513308367.
Max-Forwards: 70.
From: <sip:52040669 at audiocodes>;tag=1c1513298370.
**To: <sip:52040669 at audiocodes>.
**Call-ID: 70673375911200042619 at 192.168.144.161.
CSeq: 933 REGISTER.
**Contact: <sip:52040669 at 192.168.144.161>;expires=180.
Supported: em,timer,replaces,path.
**Allow:
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE.
**Expires: 180.
**User-Agent: Audiocodes-Sip-Gateway-MP-124 FXS/v.4.60A.016.003.
Content-Length: 0.
**
.
**#
U 192.168.144.157:5060 -> 192.168.144.161:5060
SIP/2.0 100 Trying.
**Via: SIP/2.0/UDP 192.168.144.161;branch=z9hG4bKac1513308367;received=
192.168.144.161.
**From: <sip:52040669 at audiocodes>;tag=1c1513298370.
**To: <sip:52040669 at audiocodes>.
**Call-ID: 70673375911200042619 at 192.168.144.161.
**CSeq: 933 REGISTER.
**User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Contact: <sip:52040669 at 192.168.144.157>.
**Content-Length: 0.
.

**

#
**U 192.168.144.157:5060 -> 192.168.144.161:5060
**SIP/2.0 401 Unauthorized.
**Via: SIP/2.0/UDP 192.168.144.161;branch=z9hG4bKac1513308367;received=
192.168.144.161.
From: <sip:52040669 at audiocodes>;tag=1c1513298370.
**To: <sip:52040669 at audiocodes>;tag=as5624ce96.
Call-ID: 70673375911200042619 at 192.168.144.161.
CSeq: 933 REGISTER.
**User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
**Contact: <sip:52040669 at 192.168.144.157>.
**WWW-Authenticate: Digest realm="asterisk", nonce="43fa4b04".
Content-Length: 0.
**.

**#
U 192.168.144.161:5060 -> 192.168.144.157:5060
REGISTER sip:192.168.144.157 SIP/2.0.
Via: SIP/2.0/UDP 192.168.144.161;branch=z9hG4bKac1513347194.
**Max-Forwards: 70.
**From: <sip:52040668 at audiocodes>;tag=1c1513251713.
**To: <sip:52040668 at audiocodes>.
**Call-ID: 70673352311200042619 at 192.168.144.161.
CSeq: 934 REGISTER.
**Authorization: Digest
username="52040668",realm="asterisk",nonce="6b60d637",uri="sip:
192.168.144.157",algorithm=MD5,response="a3ff24f7421c4fde4dff7a8965504fc4".
Contact: <sip:52040668 at 192.168.144.161>;expires=180.
**Supported: em,timer,replaces,path.
Allow:
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE.
**Expires: 180.
User-Agent: Audiocodes-Sip-Gateway-MP-124 FXS/v.4.60A.016.003.
**Content-Length: 0.

.
**


#

U 192.168.144.157:5060 -> 192.168.144.161:5060
**SIP/2.0 100 Trying.
**Via: SIP/2.0/UDP 192.168.144.161;branch=z9hG4bKac1513347194;received=
192.168.144.161.
**From: <sip:52040668 at audiocodes>;tag=1c1513251713.
**To: <sip:52040668 at audiocodes>.
**Call-ID: 70673352311200042619 at 192.168.144.161.
**CSeq: 934 REGISTER.
User-Agent: Asterisk PBX.
**Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
**Contact: <sip:52040668 at 192.168.144.157>.
**Content-Length: 0.
**.



#
**U 192.168.144.157:5060 -> 192.168.144.161:5060
**SIP/2.0 200 OK.
**Via: SIP/2.0/UDP 192.168.144.161;branch=z9hG4bKac1513347194;received=
192.168.144.161.
From: <sip:52040668 at audiocodes>;tag=1c1513251713.
To: <sip:52040668 at audiocodes>;tag=as06ce03af.
**Call-ID: 70673352311200042619 at 192.168.144.161.
**CSeq: 934 REGISTER.
**User-Agent: Asterisk PBX.
**Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Expires: 180.
**Contact: <sip:52040668 at 192.168.144.161>;expires=180.
**Date: Sat, 01 Jul 2006 06:23:14 GMT.
**Content-Length: 0.
**.


**#
**U 192.168.144.161:5060 -> 192.168.144.157:5060
REGISTER sip:192.168.144.157 SIP/2.0.
Via: SIP/2.0/UDP 192.168.144.161;branch=z9hG4bKac1513406098.
Max-Forwards: 70.
**From: <sip:52040669 at audiocodes>;tag=1c1513298370.
**To: <sip:52040669 at audiocodes>.
**Call-ID: 70673375911200042619 at 192.168.144.161.
**CSeq: 934 REGISTER.
**Authorization: Digest
username="52040669",realm="asterisk",nonce="43fa4b04",uri="sip:
192.168.144.157",algorithm=MD5,response="4906bbe1da1a907d3bddbe169b891c7e".
**Contact: <sip:52040669 at 192.168.144.161>;expires=180.
**Supported: em,timer,replaces,path.
Allow:
REGISTER,OPTIONS,INVITE,ACK,CANCEL,BYE,NOTIFY,PRACK,REFER,INFO,SUBSCRIBE,UPDATE.
**Expires: 180.
**User-Agent: Audiocodes-Sip-Gateway-MP-124 FXS/v.4.60A.016.003.
Content-Length: 0.
**
.
**

#
U 192.168.144.157:5060 -> 192.168.144.161:5060
**SIP/2.0 100 Trying.
**Via: SIP/2.0/UDP 192.168.144.161;branch=z9hG4bKac1513406098;received=
192.168.144.161.
**From: <sip:52040669 at audiocodes>;tag=1c1513298370.
To: <sip:52040669 at audiocodes>.
Call-ID: 70673375911200042619 at 192.168.144.161.
**CSeq: 934 REGISTER.
**User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Contact: <sip:52040669 at 192.168.144.157>.
Content-Length: 0.
**
.

**
#
U 192.168.144.157:5060 -> 192.168.144.161:5060
SIP/2.0 200 OK.
**Via: SIP/2.0/UDP 192.168.144.161;branch=z9hG4bKac1513406098;received=
192.168.144.161.
**From: <sip:52040669 at audiocodes>;tag=1c1513298370.
**To: <sip:52040669 at audiocodes>;tag=as5624ce96.
**Call-ID: 70673375911200042619 at 192.168.144.161.
CSeq: 934 REGISTER.
User-Agent: Asterisk PBX.
**Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
**Expires: 180.
Contact: <sip:52040669 at 192.168.144.161>;expires=180.
**Date: Sat, 01 Jul 2006 06:23:14 GMT.
**Content-Length: 0.


In ASTERISK:
Jul 1 09:28:00 DEBUG[6138]: chan_sip.c:1323 __sip_autodestruct: Auto
destroying call '70673352311200042619 at 192.168.144.161'
Jul 1 09:28:00 DEBUG[6138]: chan_sip.c:1323 __sip_autodestruct: Auto
destroying call '70673375911200042619 at 192.168.144.161'
Jul 1 09:28:53 NOTICE[6138]: pbx.c:1741 pbx_extension_helper: Cannot find
extension context 'default'
Jul 1 09:28:53 DEBUG[6138]: chan_sip.c:11338 sipsock_read: SIP message could
not be handled, bad request: 193703101611200016955 at 192.168.144.161
*
Can you help me?*
**
**

**
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060630/c1d81993/attachment.htm


More information about the asterisk-users mailing list