Using Dial & ChanIsAvail jumping with labels?


#1

I’ve been attempting to clean up my dial plan by converting from numbered priorities to using “n” and labels. However, I haven’t been able to figure out if it’s possible to use labels with the jump feature of the Dial and ChanIsAvail applications.

Old way:
exten => s,1,ChanIsAvail(SIP/${CallDest}|js)
exten => s,2,Set(EXT_INUSE=0)
exten => s,3,Goto(chk-busy)
exten => s,102,Set(EXT_INUSE=1)

New way?
exten => s,n,ChanIsAvail(SIP/${CallDest}|j(in-use)s)
exten => s,n,Set(EXT_INUSE=0)
exten => s,n,Goto(chk-busy)
exten => s,n(in-use),Set(EXT_INUSE=1)

This method doesn’t work. Does anyone have further suggestions?


#2

try this:

exten => s,n(foo),ChanIsAvail(SIP/${CallDest}|js)
exten => s,n,Set(EXT_INUSE=0)
exten => s,n,Goto(chk-busy)
exten => s,foo+101,Set(EXT_INUSE=1)


#3

Excellent! Thank you!