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

Ron Bergin rkb at i.frys.com
Sat Jul 14 14:23:18 CDT 2012


upendra wrote:
> Hi,
>
>
> I am trying to write dial plan for sip to auto answer (auto attend) the
> incoming call to the sip phone.
>
> - If i call from sip1 to sip2 then sip2 should automatically answer the
> call and play some sound file.
> I am trying to do this but as new to the asterisk dial plan configuration
> ,
> so not able Todo this.
> help me if anyone already done this setup.
>
>
>
> Regards
> Upendra.
> --

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

-- 
Ron Bergin





More information about the asterisk-users mailing list