Dank rentier-s hab es jetzt wie vorgeschlagen per Subroutine gelöst.
[choose-line]
exten = s,1,NoOp("Checking which line is free:${ARG1} or ${ARG2}")
exten = s,n,NoOp("${ARG1}=${DEVICE_STATE(SIP/${ARG1})}")
exten = s,n,NoOp("${ARG2}=${DEVICE_STATE(SIP/${ARG2})}")
exten =...