[Home]

Summary:ASTERISK-11455: Asterisk 1.4.17 T.38 doesn't work
Reporter:Balgansuren Batsukh (balgaa)Labels:
Date Opened:2008-02-16 19:29:59.000-0600Date Closed:2011-06-07 14:02:41
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/T.38
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) HT486-Kapanga-T38.txt
Description:I had installed Asterisk-1.4.17 on Debian 4.0 (etch) using it since two months ago.

Recently, I required to do incoming and outgoing fax for SIP client.

I bought Grandstream HT-486 and Kapanga softphone.

I test following scenario:
--------------------------
Xerox fax machine---HT-486----Asterisk-----Kapanga
Xerox fax machine---HT-486----Asterisk-----HT-486---Panasonic fax machine

When I try to send/receive fax on scenario then it fail.

And I got

[Feb 17 11:38:30] WARNING[16454] chan_sip.c: Unsupported SDP media type in offer: image 5004 udptl t38
[Feb 17 11:38:32] WARNING[16454] chan_sip.c: Unsupported SDP media type in offer: image 5004 udptl t38
[Feb 17 11:39:42] WARNING[16454] chan_sip.c: Unsupported SDP media type in offer: image 5004 udptl t38
[Feb 17 11:39:45] WARNING[16454] chan_sip.c: Unsupported SDP media type in offer: image 5004 udptl t38

error message then fax call immediately dropped.

sip.conf:
---------
[1100055]
type=friend
username=1100055
;secret=4321
nat=yes
faxdetect=both
host=dynamic
context=default
;defaultip=192.168.0.120
canreinvite=yes
callerid=1100055
mailbox=1100055@local
disallow=all
allow=alaw
allow=ulaw
;allow=gsm
;allow=g729
;allow=g723
t38pt_udptl=yes
qualify=yes

[1100056]
type=friend
username=1100056
;secret=4321
nat=yes
faxdetect=both
host=dynamic
context=default
defaultip=192.168.0.120
canreinvite=yes
callerid=1100056
mailbox=1100056@local
disallow=all
allow=alaw
allow=ulaw
;allow=gsm
;allow=g729
;allow=g723
t38pt_udptl=yes
qualify=yes

[1100057]
type=friend
username=1100057
;secret=4321
nat=yes
host=dynamic
context=towerfax
;defaultip=192.168.0.120
canreinvite=yes
callerid=1100057
mailbox=1100057@local
disallow=all
allow=alaw
allow=ulaw
faxdetect=both
;allow=gsm
;allow=g729
;allow=g723
t38pt_udptl=yes
qualify=yes

sip show peer
-------------
pbx*CLI> sip show peer 1100057
pbx*CLI>

 * Name       : 1100057
 Secret       : <Not set>
 MD5Secret    : <Not set>
 Context      : towerfax
 Subscr.Cont. : <Not set>
 Language     :
 AMA flags    : Unknown
 Transfer mode: open
 CallingPres  : Presentation Allowed, Not Screened
 Callgroup    :
 Pickupgroup  :
 Mailbox      : 1100057@local
 VM Extension : asterisk
 LastMsgsSent : 0/0
 Call limit   : 0
 Dynamic      : Yes
 Callerid     : "" <1100057>
 MaxCallBR    : 384 kbps
 Expire       : 53
 Insecure     : no
 Nat          : Always
 ACL          : No
 T38 pt UDPTL : Yes
 CanReinvite  : Yes
 PromiscRedir : No
 User=Phone   : No
 Video Support: No
 Trust RPID   : No
 Send RPID    : No
 Subscriptions: Yes
 Overlap dial : No
 DTMFmode     : rfc2833
 LastMsg      : 0
 ToHost       :
 Addr->IP     : 122.254.125.12 Port 56197
 Defaddr->IP  : 0.0.0.0 Port 5060
 Def. Username: 1100057
 SIP Options  : (none)
 Codecs       : 0xc (ulaw|alaw)
 Codec Order  : (alaw:20,ulaw:20)
 Auto-Framing:  No
 Status       : OK (12 ms)
 Useragent    : Grandstream HT487 1.0.8.33
 Reg. Contact : sip:1100057@192.168.0.173;user=phone

pbx*CLI>

pbx*CLI> sip show peer 1100055
pbx*CLI>

 * Name       : 1100055
 Secret       : <Not set>
 MD5Secret    : <Not set>
 Context      : default
 Subscr.Cont. : <Not set>
 Language     :
 AMA flags    : Unknown
 Transfer mode: open
 CallingPres  : Presentation Allowed, Not Screened
 Callgroup    :
 Pickupgroup  :
 Mailbox      : 1100055@local
 VM Extension : asterisk
 LastMsgsSent : 0/0
 Call limit   : 0
 Dynamic      : Yes
 Callerid     : "" <1100055>
 MaxCallBR    : 384 kbps
 Expire       : 97
 Insecure     : no
 Nat          : Always
 ACL          : No
 T38 pt UDPTL : Yes
 CanReinvite  : Yes
 PromiscRedir : No
 User=Phone   : No
 Video Support: No
 Trust RPID   : No
 Send RPID    : No
 Subscriptions: Yes
 Overlap dial : No
 DTMFmode     : rfc2833
 LastMsg      : 0
 ToHost       :
 Addr->IP     : 203.91.112.200 Port 5060
 Defaddr->IP  : 0.0.0.0 Port 5060
 Def. Username: 1100055
 SIP Options  : (none)
 Codecs       : 0xc (ulaw|alaw)
 Codec Order  : (alaw:20,ulaw:20)
 Auto-Framing:  No
 Status       : OK (189 ms)
 Useragent    : Kapanga Softphone Desktop 1.00/2166s+1203210879_0016D3B685E5
 Reg. Contact : sip:1100055@192.168.1.100:5060;transport=udp;rinstance=27F7788A27F77883
pbx*CLI> sip show peer 1100056
pbx*CLI>

 * Name       : 1100056
 Secret       : <Not set>
 MD5Secret    : <Not set>
 Context      : default
 Subscr.Cont. : <Not set>
 Language     :
 AMA flags    : Unknown
 Transfer mode: open
 CallingPres  : Presentation Allowed, Not Screened
 Callgroup    :
 Pickupgroup  :
 Mailbox      : 1100056@local
 VM Extension : asterisk
 LastMsgsSent : 0/0
 Call limit   : 0
 Dynamic      : Yes
 Callerid     : "" <1100056>
 MaxCallBR    : 384 kbps
 Expire       : 650
 Insecure     : no
 Nat          : Always
 ACL          : No
 T38 pt UDPTL : Yes
 CanReinvite  : Yes
 PromiscRedir : No
 User=Phone   : No
 Video Support: No
 Trust RPID   : No
 Send RPID    : No
 Subscriptions: Yes
 Overlap dial : No
 DTMFmode     : rfc2833
 LastMsg      : 0
 ToHost       :
 Addr->IP     : 122.254.125.12 Port 50878
 Defaddr->IP  : 192.168.0.120 Port 5060
 Def. Username: 1100056
 SIP Options  : (none)
 Codecs       : 0xc (ulaw|alaw)
 Codec Order  : (alaw:20,ulaw:20)
 Auto-Framing:  No
 Status       : OK (12 ms)
 Useragent    : Grandstream HT487 1.0.8.33
 Reg. Contact : sip:1100056@192.168.0.170;user=phone

I tested 1.4.16/1.4.16.2/1.4.17 all same.

Comments:By: Balgansuren Batsukh (balgaa) 2008-02-18 12:12:38.000-0600

Is there any way to get work T.38 on Asterisk 1.4.16/17?

By: Dmitry Andrianov (dimas) 2008-02-20 17:21:07.000-0600

have you tried enabling t38pt_udptl=yes globally instead of per-peer basis?

By: Balgansuren Batsukh (balgaa) 2008-02-20 22:54:51.000-0600

I did per-peer basis like above sip.conf

By: Dmitry Andrianov (dimas) 2008-02-21 00:32:09.000-0600

Try setting it globally. I have a feeling it will help...

By: Balgansuren Batsukh (balgaa) 2008-02-21 03:16:53.000-0600

How can I to globally set it?

By: Dmitry Andrianov (dimas) 2008-02-21 06:10:50.000-0600

just put it into [general] section of sip.conf

By: Balgansuren Batsukh (balgaa) 2008-02-24 00:38:43.000-0600

Now it is working fine. Thanks

By: Caio Begotti (caio1982) 2008-02-24 10:25:34.000-0600

balgaa, just to let you know you can only set it on a per-peer basis when you want to disable it, you'll still have to enable it globally if you want just a single peer out from 100 to use T.38 anyway.

By: Joshua C. Colp (jcolp) 2008-03-11 14:39:01

Closed as it was a configuration issue.