Problem with .call files and extensions

Hi, I’m trying to make some calls with the .call file, but I don’t know what i’m doing wrong, what I want to do is:

  1. SIP 181 dial to 182
  2. 182 automatic answer the call
  3. Wait 3 seconds
  4. 182 send the busy tone and hangup

This is the .call file

Channel: SIP/182
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: phones
Extension: 181

And the extensions.conf

exten => 181,1,NoOp(Call for Linux-Zoiper)
same => n,Dial(SIP/181)
same => n,Wait(15)
same => n,Hangup

exten => 182,1,NoOp(Call for Windows-Zoiper)
same => n,Answer
same => n,Playtones(busy)
same => n,Busy(10)
same => n,Hangup

If you want sip 181 to call 182 you should call 181, as soon as that extension answers it will be dropped in to the context phones, and call extensions 182.

So your call file should be:

Channel: SIP/181
MaxRetries: 2
RetryTime: 60
WaitTime: 30
Context: phones
Extension: 182
Priority: 1

And your dialplan should be:


exten => 182,1,NoOp(Call to extension 182)
same => n,Dial(SIP/182)
same => n,Hangup

This should work.

1 Like

It worked, thanks you very much!

But as I said before, there is some way to do it automatically?
Just copying the .call file in the outgoing asterisk folder and the other side answer the call automatically?

If your endpoint supports an auto-answer header you could try adding one to your dialplan.

Something like

You’ll need to consult the documentation for your endpoint as to what method it may use for answering.

Just what i needed, thank you!