I am having a recurring problem making calls. Sail 2.3.2-12 and Linksys SPA942 handset.
The problem is if I dial a number on the SPA I immediatley get Declined but if I immediately redial the call goes through. Output from asterisk CLI is below - the first call seems to fail at ast_carefulwrite.
(Note I have changed the dialled number to 1234567)
-- Executing [1234567@internal:1] AGI("SIP/5001-08ddf938", "selintra|OutCluster|1234567") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
[Sep 29 12:00:16] NOTICE[13139]: utils.c:938 ast_carefulwrite: Timed out trying to write
-- AGI Script selintra completed, returning 0
== Auto fallthrough, channel 'SIP/5001-08ddf938' status is 'UNKNOWN'
-- Executing [h@internal:1] Hangup("SIP/5001-08ddf938", "") in new stack
== Spawn extension (internal, h, 1) exited non-zero on 'SIP/5001-08ddf938'
-- Executing [1234567@internal:1] AGI("SIP/5001-08de3948", "selintra|OutCluster|1234567") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
-- AGI Script selintra completed, returning 0
-- Executing [1234567@default:1] AGI("SIP/5001-08de3948", "selintra|OutRoute|UK Landline") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
-- AGI Script Executing Application: (Dial) Options: (SIP/00441211234567@SIPDiscount||)
-- Called 00441211234567@SIPDiscount
-- SIP/SIPDiscount-08de7958 is making progress passing it to SIP/5001-08de3948
== Spawn extension (default, 1234567, 1) exited non-zero on 'SIP/5001-08de3948'
-- Executing [h@default:1] Hangup("SIP/5001-08de3948", "") in new stack
== Spawn extension (default, h, 1) exited non-zero on 'SIP/5001-08de3948'
This only appears to happen on external calls.