Call is not forwarded to voicemail in below dial plan, why?
exten => 4,1,Dial(${FD_L1},25,trw)
exten => 4,n,GotoIf($["${DIALSTATUS}"="BUSY"]?line2)
exten => 4,n(line2),Dial(${FD_L2},20,trw)
exten => 4,n,Voicemail(4)
exten => 4,n,Hangup()
-- Called SIP/4
-- SIP/4-0288 is ringing
--
The way you have the GotoIf is making it so that no matter what the busy
condition of the line, it will execute the next line in the dial plan.
What you'd need is an "if" or "then" which goes to a tagged line in the
dial plan. How it reads now is: "If [busy] then line2, else execute next
line". A
Thank you for the input Tim.
Yes, that worked.
exten => 4,n,GotoIf($["${DIALSTATUS}"="BUSY"]?line2:vmail)
exten => 4,n(vmail),Voicemail(4)
Though, I'm not sure why are you saying line 2 is FD_L2 needs to be fixed.
Do I need to removde "t", the call can not be transferred?
Even when I put:
exten
The "error" I was talking about was in your log:
"...== Spawn extension (extensions, 4, 3) exited non-zero on
'IAX2/home_server-6364'..."
The call terminated here in a error which prevented the dialplan from
continuing. Something there is broken, my recommendation is to check you
registrations f