Hello all,
I am newbie in asterisk so please point me to the correct document or case study.
This is a part of my dialplan:
same => n,set(KvNR=$[${EXTEN}+10000])
same => n,GotoIf($["${PJSIP_DIAL_CONTACTS(${KvNR})}" = ""]?checktlf)
same => n,set(KvNR=${PJSIP_DIAL_CONTACTS(${KvNR})})
same => n,GotoIf($["${PJSIP_DIAL_CONTACTS(${EXTEN})}" = ""]?start)
same => n,Set(PUSH(KvNR,&)=${PJSIP_DIAL_CONTACTS(${EXTEN})})
same => n,Goto(start)
same => n(checktlf),GotoIf($["${PJSIP_DIAL_CONTACTS(${EXTEN})}" = ""]?empty)
same => n,Set(KvNR=${PJSIP_DIAL_CONTACTS(${EXTEN})})
same => n(start),Dial(${KvNR})
same => n(empty),hangup()
It works and all endpoints stored in $KvNR ring. I what that if one endpoint drops call then it will be terminated for other extensions also.
Is it possible ?
Thanx