Issue is in .call File with asterisk 13

Hi all,

I’m facing issue in .call file ,when i set the account code in .call file asterisk doesn’t work properly (hangup doesn’t work) and after that ringing continuous and hangup doesn’t works and .call functionality (/var/spool/asterisk /outgoing) also doesn’t work …it works only then when i restart the whole server…so if you have any solutions then give me asap.
The format of .call file is given below

Channel: SIP/g0/18155085999
MaxRetries:2
RetryTime: 35
WaitTime: 30
Application: Playback
Data: /usr/Welcome
Context: dataword
Extension: 91111
Priority: 2
Set: CDR(userfield)=om
Set: CDR(accountcode)= 1245

What version of Asterisk are you using? There was a bug[1] where using CDR for certain things would hang. Using the CHANNEL dialplan function instead[2] is the method to use.

[1] https://issues.asterisk.org/jira/browse/ASTERISK-27460
[2] https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Function_CHANNEL

i am using asterisk 13 and now problem has been resolved by using below mention methods;

Channel: SIP/g0/18155085999
MaxRetries:2
RetryTime: 35
WaitTime: 30
Application: Playback
Data: /usr/Welcome
Context: dataword
Extension: 91111
Priority: 2
Set: CDR(userfield)=om
Set: CDR(accountcode)= 1245
Account:234