I need with “Call Files” , to call a virtual number and simulate a response.
My SIP user is:
My extensions is:
‘default’, ‘xxxxx’, ‘1’, ‘Answer’, ‘’
‘default’, ‘xxxxx’, ‘2’, ‘Hangup’, ‘’
Someone can help me, please?
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.
I’ll try to explain with more details.
The architecture is simple, I have a file.call that work correctly.
Content of file .call:
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?)”
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.
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.
Thank you very much, now it’s ok!