Hi everybody, I hope Christmas was good for you all!
I want to post a topic to get help from other community engineers about the Asterisk extend a call feature.
This is our ‘Extend a Call’ feature description with 1 minute remaining.
In the call the client will here a 1 minute waring and can hit 1 to extend or 2 to finish the call. if 2 then he finished out the 1 minute. If 1 then the time is paused and he has a choice to extend 10, 15 or 20 minutes. He makes his selection and then is asked to verify his zip again (since we kept the card number we will bill him for whatever he chooses). The agent is on hold and hears a recording what the client is picking while he makes his selection and once done they are connected again.
this is current asterisk v13’s codebaase,
[macro-extendcall]
exten => s,1,NoOp(Extending call for ${CHANNEL}, ${UNIQUEID}, ${MYVPC_ORDERID}, ${END_TIME}, ${EPOCH})
same => n,EndTime(END_TIME)
same => n,NoOp(end time ${END_TIME}, epoch ${EPOCH}, delta $[${END_TIME} - ${EPOCH}])
same => n,GotoIf($[(${END_TIME} - ${EPOCH}) > 120] ?endextend)
exten => s,n,Macro(finditems,${EXTENDCALL_GROUP},${CONTEXT},extendcall)
exten => s,n,GotoIf($[${LEN(${ITEMS_FOUND})} = 0] ?notavail,1)
exten => s,n,Macro(selectfromlist,${URIENCODE(${ITEMS_FOUND})},${MYVPC_COMMON_SOUND}/item,${MYVPC_COMMON_SOUND}/extendcallmenu)
exten => s,n,GotoIf($[${LEN(${CHOICE})} = 0] ?endextend)
exten => s,n,Set(OLDORDERID=${MYVPC_ORDERID})
exten => s,n,Macro(processpayment,${EXTENDCALL_OPTS},${CHOICE})
exten => s,n,GotoIf($[“${PAYMENT_STATUS}” != “APPROVED”] ?endextend)
same => n,Extend($[${MYVPC_DURATION} * 60000]:60000)
exten => s,n(endextend),NoOp
exten => notavail,1,Playback(myvpc/feature-not-avail)
I am getting an issue on “EndTime”,“endextend” in above [macro-extendcall]
Please check my post and give me your feedback.
Thank you, Alex