This is strange. @markosjal can you run rasterisk -vvvvv
and post the output when you are trying to park a call via your phone? My guess is that the DEVICE_STATE
is not interpreted correctly.
Maybe it’s just the forum that auto-corrected your post. If not, there are two $ missing. That could explain it.
same = n,Gotoif($[${DEVICE_STATE(park:${PARKINGEXTEN} `@parkedcalls` )}==INUSE]?pickup)
This is how it looks for me:
[Sep 17 11:36:40] -- Executing [62@from-internal:1] NoOp("PJSIP/224-00000050", "caller 224 called 222") in new stack
[Sep 17 11:36:40] -- Executing [62@from-internal:2] Set("PJSIP/224-00000050", "PARKINGEXTEN=72") in new stack
[Sep 17 11:36:40] -- Channel PJSIP/222-00000051 left 'simple_bridge' basic-bridge <aec16bea-d80d-4bfb-885d-2483ecad7143>
[Sep 17 11:36:40] -- Executing [62@from-internal:3] GotoIf("PJSIP/224-00000050", "0?par1") in new stack
[Sep 17 11:36:40] -- Executing [62@from-internal:4] Set("PJSIP/224-00000050", "PTIMEOUT=30") in new stack
[Sep 17 11:36:40] -- Executing [62@from-internal:5] NoOp("PJSIP/224-00000050", "set timeout 30 and return context for parkext 72") in new stack
[Sep 17 11:36:40] -- Executing [62@from-internal:6] GotoIf("PJSIP/224-00000050", "0?pickup") in new stack
[Sep 17 11:36:40] -- Executing [62@from-internal:7] GotoIf("PJSIP/224-00000050", "1?godefault") in new stack
[Sep 17 11:36:40] -- Goto (from-internal,62,10)
[Sep 17 11:36:40] -- Executing [62@from-internal:10] Park("PJSIP/224-00000050", "default,st(30)") in new stack
[Sep 17 11:36:40] > Setting Parker dial string to PJSIP/222 from BLINDTRANSFER value
[Sep 17 11:36:40] -- Parking 'PJSIP/224-00000050' in 'default' at space 72
[Sep 17 11:36:40] -- Channel PJSIP/224-00000050 joined 'holding_bridge' parking-bridge <6a895cda-d845-439d-8f24-458f5351a0fa>
[Sep 17 11:36:40] -- Started music on hold, class 'default', on channel 'PJSIP/224-00000050'
Btw I’ve use “>” to make quotes because I wasn’t aware of block preformatted text “```”
Best