Help with Custom Destination dial plan

I have a very simple custom Destination,
The incoming call comes in,
Its first destination is a custom destination, caasship,s,1

It goes to the destination,
In that destintination I set a value of Client = ship

And call return like
exten => s,n,return

I get an error of

– Executing [[email protected]:20] Goto(“PJSIP/vz1-00000017”, “CaasshipTag,s,1”) in new stack
– Goto (CaasshipTag,s,1)
– Executing [[email protected]:1] NoOp(“PJSIP/vz1-00000017”, “start”) in new stack
– Executing [[email protected]:2] Set(“PJSIP/vz1-00000017”, “client=ship”) in new stack
– Executing [[email protected]:3] NoOp(“PJSIP/vz1-00000017”, “ship”) in new stack
– Executing [[email protected]:4] Return(“PJSIP/vz1-00000017”, “”) in new stack
[2020-04-09 13:22:42] ERROR[12060][C-00000015]: app_stack.c:400 return_exec: Return without Gosub: stack is empty
== Spawn extension (CaasshipTag, s, 4) exited non-zero on ‘PJSIP/vz1-00000017’

Any Ideas, This seems like it should be really simple.

In the GUI for the custom destination enable the ‘Return’ option and choose a destination to send the call when your custom dialplan is done.

This is my return statement
exten => s,n,return

My destination is the time side to check for holidays.


I have that done already.

Something is not right. Are you sure the call is going to that custom dest, and not somewhere else? Can you provide a full trace begin to end?

I deleted it and re added and it started to work.


This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.