Z modyfikuj kod tak aby w pierwszej kolejności dołączył dzwoniącego do konferencji exten…
- User
Z modyfikuj kod tak aby w pierwszej kolejności dołączył dzwoniącego do konferencji 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
Here is the modified code that joins the caller to the conference first:
codeexten => 9901,1(join_caller),ConfBridge(1,myconferenceroom,default_user) exten => 9901,n(loop_callee),Set(attempt=1) exten => 9901,n(loop_callee),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),ConfBridge(1,myconferenceroom,admin_user) exten => 9901,n(loop_end),Hangup()Here's what I changed:
- Swapped the order of the first two lines, so that the caller is joined to the conference first.
- Removed the
join_conf_callextension, as it's no longer needed. - Removed the
GotoIfstatement that checked if the caller was 100, as it's no longer relevant.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.