Z modyfikuj kod tak aby w pierwszej kolejności dołączył dzwoniącego do konferencji (Nie…
- User
Z modyfikuj kod tak aby w pierwszej kolejności dołączył dzwoniącego do konferencji (Nie ma powiązania pomiędzy dzwoniącym a rozszerzeniem 100 po prostu chcę aby dzwoniąc był do łączony do konferencji a 100 była próba podłączenia ale to nie jest powiązane exten => 9901,1(join_conf_call),Dial(PJSIP/100,,G(2)) exten => 9901,n(join_caller),ConfBridge(1,myconferenceroom,default_user) exten => 9901,n(loop_callee),GotoIf({CALLERID(num)}" = "100"]?callee_join:loop_start) exten => 9901,n(loop_start),Set(attempt=1) exten => 9901,n(loop_start),Goto(loop_check) exten => 9901,n(loop_check),GotoIf({attempt}" = "10"]?loop_end:loop_call) exten => 9901,n(loop_call),Dial(PJSIP/100,,G(2)) exten => 9901,n(loop_call),GotoIf({DIALSTATUS}" = "BUSY"]?loop_end:loop_success) exten => 9901,n(loop_success),Goto(callee_join) exten => 9901,n(loop_end),Hangup() exten => 9901,n(callee_join),ConfBridge(1,myconferenceroom,admin_user)
Assistant
To ensure that the caller is joined to the conference first and then attempts are made to connect extension 100, without any direct association between the caller and extension 100, you can modify the Asterisk dialplan logic. The modified dialplan will first join the caller to the conference and then attempt to dial extension 100 in a loop until it's successful or reaches the maximum number of attempts.
Here's the modified dialplan:
asterisk