Call Files - Call a virtual number

Hi,

I need with “Call Files” , to call a virtual number and simulate a response.

My SIP user is:

[xxxxx]
type=friend
callerid=“xxxxx”
context=default
disallow=all
allow=ulaw

My extensions is:

‘default’, ‘xxxxx’, ‘1’, ‘Answer’, ‘’
‘default’, ‘xxxxx’, ‘2’, ‘Hangup’, ‘’

Someone can help me, please?

There is a nice writeup on call files in the wiki

https://wiki.asterisk.org/wiki/display/AST/Asterisk+Call+Files

Thanks, I know this guide and I use the Call Files for others calls, but I don’t be able to solve the problem.

I don’t understand the requirement. Showing what you have tried might help make it more clear.

Hi David,

I’ll try to explain with more details.

The architecture is simple, I have a file.call that work correctly.

Content of file .call:

Channel: SIP/xxxxx
Codecs: ulaw
MaxRetries: 1
RetryTime: 1
WaitTime: 160
Context: context
Extension: s
Priority: 1
Callerid: Callerid
Account: asterisk
AlwaysDelete: yes
Archive: yes
Application: Dial

When I call the SIP user ([xxxxx]), I need only to activate Answer and Hangup function to trace the call, but the log is:

“Call failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?)”

Thanks.

If it states that then it doesn’t appear as though it was answered in the eyes of Asterisk. You should provide a SIP trace using “sip set debug on” to show the actual signaling that happened.

Thanks, but with debug on, I’ve not more details.

If protocol debugging shows nothing, it means the device is dynamic and has failed to register, or it has failed a qualify, or it is not configured at all. A sufficient debug level should reveal which.

Hi,

I’ve not device, I want only receive a dial and force an answer.

‘context’, ‘xxxxx’, ‘1’, ‘Answer’, ‘’
‘context’, ‘xxxxx’, ‘2’, ‘Hangup’, ‘’

A call file HAS to dial something. You can use a Local channel to have it dial into the dialplan, where it could Answer/Wait/etc, and then send it elsewhere.

1 Like

Thank you very much, now it’s ok!