[asterisk-users] How to set SIP to auto answer in the dial plan .

Steve Edwards asterisk.org at sedwards.com
Sat Jul 14 17:55:48 CDT 2012


> upendra wrote:

>> - If i call from sip1 to sip2 then sip2 should automatically answer the 
>> call and play some sound file.

On Sat, 14 Jul 2012, Ron Bergin wrote:

> Unless I'm misunderstanding your needs, wouldn't this do what you want?
>
> exten => 1234,1,Answer
> exten => 1234,n,Playback(soundfile)
> exten => 1234,n,Dial(SIP/1234,60,m)  ; caller hears music on hold
>                                     ; instead of ringtone

Thank you for not top-posting. It appears everybody forgot their 
netiquette last week :)

Not as I understand the OP's request.

As I understand the request, when sip1 originates a call to sip2, sip2 
should just start playing audio from sip1 without requiring any action on 
sip2's part.

Several posters have already suggested the solution lies in having sip1 
add the appropriate sip header in the INVITE to ask sip2 to automagically 
answer so sip2 can play the sound file.

Unfortunately, the OP seems to lack the ability or motivation to read the 
documentation to be able to take advantage of the suggestions.

Even more unfortunately, auto-answer is device and configuration specific. 
My cisco 9760 just needs a SIP header added while my Polycom 501 needs a 
different SIP header and the correct bits twiddled in it's humongous 
configuration files.

-- 
Thanks in advance,
-------------------------------------------------------------------------
Steve Edwards       sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000



More information about the asterisk-users mailing list