[Home]

Summary:ASTERISK-20966: Getting UDPTL(SIP):Transmission error:Resource temporarily unavailable
Reporter:Ahmed Munir Chohan (ahmed.munir)Labels:
Date Opened:2013-01-21 09:44:58.000-0600Date Closed:2013-03-01 15:01:51.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:Applications/app_fax
Versions:10.4.2 Frequency of
Occurrence
Occasional
Related
Issues:
Environment:CentOS 5.6Attachments:
Description:
Getting UDPTL(SIP):Transmission error:Resource temporarily

Postby ahmed.munir ยป Thu Jan 17, 2013 12:39 pm
Hi,

I configured Asterisk 10 for inbound fax, for couple of weeks I didn't see any issues until today. The setup I configured for inbound fax is quite simple i.e. Cisco Voice GW sends the fax calls to Asterisk using T.38 protocol and later Asterisk stores/forwards the fax to specific end user.

The configuration I made in sip.conf for enabling T38 is listed below;

t38pt_udptl = yes,fec,maxdatagram=400
faxdetect = t38

And in udptl.conf, I just uncommented 'use_even_ports = yes
;' and rest of it set as default.


Here is the error I'm usually seeing in Asterisk side;

[Jan 15 14:13:28] NOTICE[20514] udptl.c: UDPTL (SIP/10.3.22.6-00000ad6): Transmission error to 10.3.22.6:18428: Resource temporarily unavailable

If this notice comes, it occurs repeatedly unless I need to restart the asterisk service. For some reason it also effecingt the V-GW. There is no issue found in the V-GW side.


I first open this ticket in 'Asterisk Support', they advised they there might be bugs in Asterisk 10.4.2. Is there a fix in Asterisk 10.12? If yes, please advise at earliest.
Comments:By: Matt Jordan (mjordan) 2013-01-21 09:47:18.203-0600

There haven't been any major changes in the UDPTL stack in any currently supported version of Asterisk.

Please provide a pcap showing the fax message traffic, your udptl.conf, your sip.conf, and the relevant portions of your extensions.conf.

By: Ahmed Munir Chohan (ahmed.munir) 2013-01-21 12:00:29.161-0600

For T38, sip configuration in sip.conf under general section is listed below;

t38pt_udptl = yes,fec,maxdatagram=400
faxdetect = t38


udptl.conf under 'general section';

udptlstart=4000
udptlend=4999
udptlfecentries = 3
udptlfecspan = 3
use_even_ports = yes

extensions.conf

[fax-to-email]

exten => fax,1,NoOp(**** FAX DETECTED FOR EMAIL ****)
same => n,NoOp(**** FAX RECEIVED From ${CALLERID(num)} ${STRFTIME(${EPOCH},,%c)} ****)
same => n,Set(GLOBAL(FAXCOUNT)=$[ ${GLOBAL(FAXCOUNT)} + 1 ])
same => n,Set(FAXCOUNT=${GLOBAL(FAXCOUNT)})
same => n,Set(FAXFILE=fax-${UNIQUEID})
same => n,Set(GLOBAL(LASTFAXCALLERNUM)=${CALLERID(num)})
same => n,Set(GLOBAL(LASTFAXCALLERNAME)=${CALLERID(name)})
same => n,NoOp(**** SETTING FAXOPT ****)
same => n,Set(LOCALHEADERINFO=Received by FAX Server ${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)})
same => n,Set(LOCALSTATIONID=${CALLERID(dnid)})
same => n,NoOp(Local Header Info : ${LOCALHEADERINFO})
same => n,NoOp(Local Station Id : ${LOCALSTATIONID})
same => n,NoOp(**** RECEIVING FAX : ${FAXFILE} ****)
same => n,ReceiveFAX(/var/spool/asterisk/fax/${FAXFILE})
; Hangup! Print FAXOPTs
exten => h,1,AGI(receivedfax.pl,${FAXFILE},${REMOTESTATIONID},${CALLERID(dnid)})
same => n,NoOp(FAX File Name : ${FAXFILE})
same => n,NoOp(Local Header Info : ${LOCALHEADERINFO})
same => n,NoOp(Local Station Id : ${LOCALSTATIONID})
same => n,NoOp(FAX Pages : ${FAXPAGES})
same => n,NoOp(FAX Bit Rate : ${FAXBITRATE})
same => n,NoOp(Remote ID Station: ${REMOTESTATIONID})
same => n,NoOp(FAXOPT Resolution : ${FAXRESOLUTION})
same => n,NoOp(FAX Status : ${FAXSTATUS})
same => n,NoOp(FAX Error : ${FAXERROR})
same => n,Set(CDR(fax_status)=${FAXSTATUS})
same => n,Set(CDR(fax_error)=${FAXERROR})
same => n,Set(CDR(fax_pages)=${FAXPAGES})

The message/error: [Jan 15 14:13:28] NOTICE[20514] udptl.c: UDPTL (SIP/10.3.22.6-00000ad6): Transmission error to 10.3.22.6:18428: Resource temporarily unavailable

usually comes atleast once in a week(s) but for now, I'm not getting this message. If I get this message, I have to restart the Asterisk service.


By: Rusty Newton (rnewton) 2013-02-04 15:25:30.278-0600

You didn't provide all of the debug requested.

Please provide "a pcap showing the fax message traffic" (including SIP and the UDPTL)

Also, please attach your entire udptl.conf and sip.conf files. *Please attach the files to the issue and do not past them inline inside of a comment*


{quote}
If this notice comes, it occurs repeatedly unless I need to restart the asterisk service.
{quote}

To demonstrate this, please provide an Asterisk full log with VERBOSE and DEBUG messages enabled at level 5. https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information

It's hard to understand the behavior from your description. Is Asterisk responsive to calls, commands or anything else after the error occurs? Or is the error just scrolling the log with no other ill effects?





By: Rusty Newton (rnewton) 2013-03-01 15:01:42.482-0600

Suspended due to lack of activity. Please request a bug marshal in #asterisk-bugs on the IRC network irc.freenode.net to reopen the issue should you have the additional information requested.  Further information can be found at http://www.asterisk.org/developers/bug-guidelines