Is it possible to configure an extension to allow using SIP and IAX2 alternatively? I.e. first try IAX2 channel and if it’s not responding, immediately try SIP.
I tried something like:
exten => 301,1,Dial(IAX2/301,20)
exten => 301,2,Dial(ISIP/301,20)
but it didn’t work as expected.
First its SIP, not ISIP.
Second, that will first call IAX2/301 and then SIP/301… is that what you want? there aren’t any IP phones I know of that can maintain both an iax and sip registration at the same time…
that said though your code (with SIP instead of ISIP) will first ring IAX2/301 for 20 seconds. If 20 seconds expires before they pick up or there is an error it will try SIP/301 for 20sec.
what you might want to try-
exten => 301,1,Dial(SIP/301&IAX2/301,20)
that will ring both for 20sec
I guess we could give it a go with a softphone, no?
Have a SIP login, and then an IAX login and see what’s what…