On 17 Apr 2006 at 17:15, Reza - Asterisk Enthusiast wrote:
>
> Ok Enthusiasts... I have a question. The answer might be simple but I'm just
> too
> lazy to read the docs now given the amount of food I'm trying to digest - as
> a result
> of the long weekend and celebrations :).
>
> I have a scenario where there is an extension number, lets say 1000
> registered on
> two devices, one a SIP & the other an IAX phone.Credentials for ext 1000 are
> available both in IAX and SIP conf files.
>
> Currently my dial plan is as follows:
>
> exten => 1XXX,1,Ringing()
> exten => 1XXX,2,Dial(SIP/${EXTEN},20,tr)
> exten => 1XXX,3,Dial(IAX2/[EMAIL PROTECTED],20,tr)
> exten => 1XXX,4,Voicemail(u${EXTEN})
> exten => 1XXX,5,Hangup
>
> Obviously from the above, it first tries to ring my SIP phone and if the SIP
> phone for
> ext 1000 is registered it will ring for 20 seconds. If the SIP phone is not
> registered,
> it will ring my IAX phone... etc etc etc.
>
> What I am trying to do is have both my SIP & IAX phones ring simultaneously,
> sort
> of like agents, except I don't want it to behave like agents.
>
> So the question is: Is there a way to have both SIP & IAX devices ring
> simultaneously within the extensions.conf directives?
You can have Dial(SIP/${EXTEN}&IAX2/${EXTEN}) in the one
line