[Asterisk-Users] Problem with IAX2 dialin with portunity
Tim Panton
tim at mexuar.com
Sat Jun 3 11:12:04 MST 2006
On 3 Jun 2006, at 16:11, Matthias Fechner wrote:
> Hi,
>
> Matthias Fechner wrote:
>> [portunity-in]
>> type=user
>> context=incoming-portunity
>> permit=82.139.223.1/255.255.255.255
>
> now I have the next problem.
> I can connect an iax phone and a sip phone to my asterisk.
> The problem is with incoming phone calls.
> If I use xlite everything is working perfectly but diax and idefisk
> are
> not working. So I think it is a problem with the IAX2 configuration. I
> got the call but i cannot hear anything and the calling person cannot
> her me.
> If I transfer the call to hold the calling person can hear MoH.
>
> Here is the debug log from asterisk:
> ___BEGIN___
> Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX
> Subclass: NEW
> Timestamp: 00005ms SCall: 00058 DCall: 00000 [82.139.223.1:4569]
> VERSION : 2
> CALLED NUMBER : s
> CALLING NUMBER : 03062006
> CALLING NAME : diax0.9.15a
> LANGUAGE : en
> FORMAT : 2
> CAPABILITY : 64798
> ADSICPE : 0
> DATE TIME : 2006-06-03 17:00:04
>
> -- Accepting UNAUTHENTICATED call from 82.139.223.1:
>> requested format = gsm,
>> requested prefs = (),
>> actual format = ulaw,
>> host prefs = (ulaw|alaw|gsm),
>> priority = mine
> Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass:
> ACCEPT
> Timestamp: 00001ms SCall: 00001 DCall: 00058 [82.139.223.1:4569]
> FORMAT : 4
>
> -- Executing Dial("IAX2/portunity-out-1", "IAX2/idefix&SIP/
> idefix")
> in new stack
> -- Called idefix
> Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 000 Type: IAX
> Subclass: NEW
> Timestamp: 00004ms SCall: 00006 DCall: 00000 [192.168.0.151:4569]
> VERSION : 2
> CALLED NUMBER : s
> CODEC_PREFS : (ulaw|alaw|gsm)
> CALLING NUMBER : 03062006
> CALLING PRESNTN : 0
> CALLING TYPEOFN : 0
> CALLING TRANSIT : 0
> CALLING NAME : diax0.9.15a
> LANGUAGE : de
> USERNAME : idefix
> FORMAT : 14
> CAPABILITY : 63502
> ADSICPE : 0
> DATE TIME : 2006-06-03 17:00:06
>
> Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX
> Subclass: ACK
> Timestamp: 00004ms SCall: 00310 DCall: 00006 [192.168.0.151:4569]
> Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX
> Subclass: ACK
> Timestamp: 00001ms SCall: 00058 DCall: 00001 [82.139.223.1:4569]
> Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass:
> ACCEPT
> Timestamp: 00016ms SCall: 00310 DCall: 00006 [192.168.0.151:4569]
> FORMAT : 14
>
> -- Call accepted by 192.168.0.151 (format unknown)
> -- Format for call is (gsm|ulaw|alaw)
> Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 001 Type: IAX
> Subclass: ACK
> Timestamp: 00016ms SCall: 00006 DCall: 00310 [192.168.0.151:4569]
> Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: CONTROL Subclass:
> RINGING
> Timestamp: 00003ms SCall: 00310 DCall: 00006 [192.168.0.151:4569]
> Tx-Frame Retry[-01] -- OSeqno: 001 ISeqno: 002 Type: IAX
> Subclass: ACK
> Timestamp: 00003ms SCall: 00006 DCall: 00310 [192.168.0.151:4569]
> -- IAX2/idefix-6 is ringing
> Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 001 Type: CONTROL Subclass:
> RINGING
> Timestamp: 00004ms SCall: 00001 DCall: 00058 [82.139.223.1:4569]
> Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 002 Type: IAX
> Subclass: ACK
> Timestamp: 00004ms SCall: 00058 DCall: 00001 [82.139.223.1:4569]
> Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 001 Type: IAX
> Subclass: PING
> Timestamp: 02000ms SCall: 00310 DCall: 00006 [192.168.0.151:4569]
> Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 003 Type: IAX
> Subclass: PONG
> Timestamp: 02000ms SCall: 00006 DCall: 00310 [192.168.0.151:4569]
> RR_JITTER : 0
> RR_LOSS : 0
> RR_PKTS : 1
> RR_DELAY : 40
> RR_DROPPED : 0
> RR_OUTOFORDER : 0
>
> Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 002 Type: IAX
> Subclass: ACK
> Timestamp: 02000ms SCall: 00310 DCall: 00006 [192.168.0.151:4569]
> Rx-Frame Retry[ No] -- OSeqno: 003 ISeqno: 002 Type: CONTROL Subclass:
> ANSWER
> Timestamp: 03485ms SCall: 00310 DCall: 00006 [192.168.0.151:4569]
> Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 004 Type: IAX
> Subclass: ACK
> Timestamp: 03485ms SCall: 00006 DCall: 00310 [192.168.0.151:4569]
> Rx-Frame Retry[ No] -- OSeqno: 004 ISeqno: 002 Type: CONTROL Subclass:
> ANSWER
> Timestamp: 03488ms SCall: 00310 DCall: 00006 [192.168.0.151:4569]
> Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 005 Type: IAX
> Subclass: ACK
> Timestamp: 03488ms SCall: 00006 DCall: 00310 [192.168.0.151:4569]
> -- IAX2/idefix-6 answered IAX2/portunity-out-1
> -- Attempting native bridge of IAX2/portunity-out-1 and IAX2/
> idefix-6
> -- Operating with different codecs 4[(ulaw)] 14[(gsm|ulaw|alaw)] ,
> can't native bridge...
> Tx-Frame Retry[000] -- OSeqno: 002 ISeqno: 001 Type: CONTROL Subclass:
> (255?)
> Timestamp: 03489ms SCall: 00001 DCall: 00058 [82.139.223.1:4569]
> Tx-Frame Retry[000] -- OSeqno: 003 ISeqno: 001 Type: CONTROL Subclass:
> ANSWER
> Timestamp: 03492ms SCall: 00001 DCall: 00058 [82.139.223.1:4569]
> Rx-Frame Retry[Yes] -- OSeqno: 004 ISeqno: 002 Type: CONTROL Subclass:
> ANSWER
> Timestamp: 03488ms SCall: 00310 DCall: 00006 [192.168.0.151:4569]
> Tx-Frame Retry[-01] -- OSeqno: 002 ISeqno: 005 Type: IAX
> Subclass: ACK
> Timestamp: 03488ms SCall: 00006 DCall: 00310 [192.168.0.151:4569]
> Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 003 Type: IAX
> Subclass: ACK
> Timestamp: 03489ms SCall: 00058 DCall: 00001 [82.139.223.1:4569]
> Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 004 Type: IAX
> Subclass: ACK
> Timestamp: 03492ms SCall: 00058 DCall: 00001 [82.139.223.1:4569]
> Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 004 Type: VOICE
> Subclass: 4
> Timestamp: 03562ms SCall: 00058 DCall: 00001 [82.139.223.1:4569]
> Tx-Frame Retry[-01] -- OSeqno: 004 ISeqno: 002 Type: IAX
> Subclass: ACK
> Timestamp: 03562ms SCall: 00001 DCall: 00058 [82.139.223.1:4569]
> Tx-Frame Retry[000] -- OSeqno: 002 ISeqno: 005 Type: VOICE
> Subclass: 2
> Timestamp: 03540ms SCall: 00006 DCall: 00310 [192.168.0.151:4569]
> Rx-Frame Retry[ No] -- OSeqno: 005 ISeqno: 003 Type: IAX
> Subclass: ACK
> Timestamp: 03540ms SCall: 00310 DCall: 00006 [192.168.0.151:4569]
> Rx-Frame Retry[ No] -- OSeqno: 000 ISeqno: 000 Type: IAX Subclass:
> REGREQ
> Timestamp: 00003ms SCall: 00311 DCall: 00000 [192.168.0.151:4569]
> USERNAME : idefix
> REFRESH : 60
>
> Tx-Frame Retry[000] -- OSeqno: 000 ISeqno: 001 Type: IAX Subclass:
> REGAUTH
> Timestamp: 00003ms SCall: 00007 DCall: 00311 [192.168.0.151:4569]
> AUTHMETHODS : 3
> CHALLENGE : 840999978
> USERNAME : idefix
>
> Rx-Frame Retry[ No] -- OSeqno: 001 ISeqno: 001 Type: IAX Subclass:
> REGREQ
> Timestamp: 00015ms SCall: 00311 DCall: 00007 [192.168.0.151:4569]
> USERNAME : idefix
> REFRESH : 60
> MD5 RESULT : 0434478367ea12d051f73f25573cfcf8
>
> Tx-Frame Retry[000] -- OSeqno: 001 ISeqno: 002 Type: IAX Subclass:
> REGACK
> Timestamp: 00014ms SCall: 00007 DCall: 00311 [192.168.0.151:4569]
> USERNAME : idefix
> DATE TIME : 2006-06-03 17:00:10
> REFRESH : 60
> APPARENT ADDRES : IPV4 192.168.0.151:4569
> MESSAGE COUNT : 0
>
> Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 002 Type: IAX
> Subclass: ACK
> Timestamp: 00014ms SCall: 00311 DCall: 00007 [192.168.0.151:4569]
> Rx-Frame Retry[ No] -- OSeqno: 005 ISeqno: 003 Type: IAX Subclass:
> HANGUP
> Timestamp: 08469ms SCall: 00310 DCall: 00006 [192.168.0.151:4569]
> CAUSE : Dumped Call
>
> Tx-Frame Retry[-01] -- OSeqno: 003 ISeqno: 006 Type: IAX
> Subclass: ACK
> Timestamp: 08469ms SCall: 00006 DCall: 00310 [192.168.0.151:4569]
> -- Hungup 'IAX2/idefix-6'
> -- Hungup 'IAX2/portunity-out-1'
> Tx-Frame Retry[000] -- OSeqno: 004 ISeqno: 002 Type: IAX Subclass:
> HANGUP
> Timestamp: 08477ms SCall: 00001 DCall: 00058 [82.139.223.1:4569]
> CAUSE CODE : 16
>
> Rx-Frame Retry[ No] -- OSeqno: 002 ISeqno: 005 Type: IAX
> Subclass: ACK
> Timestamp: 08477ms SCall: 00058 DCall: 00001 [82.139.223.1:4569]
> ___END___
>
> Thx for any help.
You have a weird codec problem.
Try changing the iax config to limit it to ulaw and see if that helps:
[portunity-in]
type=user
context=incoming-portunity
permit=82.139.223.1/255.255.255.255
disallow=all
allow=ulaw
You might also want to upgrade to asterisk 1.2.8 - which has
some fixes in the IAX code - but I don't know if any are related to
this - I haven't had a chance to install it yet.
Tim.
Tim Panton
tim at mexuar.com
More information about the asterisk-users
mailing list