Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-19770

Auto-answer not working with sangoma phones.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 13, 14, 15
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Bug Tracker:
      QA Testing
    • ToDo:
    • Distro Version:
      13,14,15
    • Distro:
      FreePBX Distro

      Description

      Auto-answer not working with sangoma phones.

      Made the below changes in the dialplan and the issue got resolved.

      
      [macro-autoanswer]
      include => macro-autoanswer-custom
      exten => s,1,GotoIf($["${KNOWNDIAL}" != ""]?knowndial)
      exten => s,n,Set(DEVICE=${DB(DEVICE/${ARG1}/dial)})
      exten => s,n,GotoIf($["${DEVICE:0:5}" == "PJSIP" ]?dopjsip)
      exten => s,n,Set(KNOWNDIAL=${DEVICE})
      exten => s,n,Goto(knowndial)
      exten => s,n(dopjsip),Set(KNOWNDIAL=${PJSIP_DIAL_CONTACTS(${ARG1})})
      exten => s,n,GotoIf($[${REGEX("&" ${KNOWNDIAL})} == 0]?knowndial)
      exten => s,n,Gosub(app-paging,ssetup,1())
      exten => s,n,Set(PAGEMODE=PAGE)
      exten => s,n,Set(PAGE_CONF_OPTS=duplex)
      exten => s,n,Set(STREAM=NONE)
      exten => s,n,Set(PAGE_MEMBERS=${ARG1})
      exten => s,n,AGI(page.agi)
      exten => s,n,Set(CONFBRIDGE(user,template)=page_user_duplex)
      exten => s,n,Set(CONFBRIDGE(user,admin)=yes)
      exten => s,n,Set(CONFBRIDGE(user,marked)=yes)
      exten => s,n,ConfBridge(${PAGE_CONF},,,admin_menu)
      exten => s,n,Hangup
      exten => s,n(knowndial),Set(DIAL=${KNOWNDIAL})
      exten => s,n,GotoIf($["${DB(DEVICE/${ARG1}/autoanswer/macro)}" != "" ]?macro)
      exten => s,n,GotoIf($["${DIAL:0:5}" = "PJSIP"]?pjsipua)
      exten => s,n,Set(USERAGENT=${SIPPEER(${CUT(DIAL,/,2)},useragent)})
      exten => s,n,Goto(uafin)
      exten => s,n(pjsipua),Set(AOR=${CUT(DIAL,/,2)})
      exten => s,n,Set(CONTACT=${PJSIP_AOR(${AOR},contact)})
      exten => s,n,Set(USERAGENT=${PJSIP_CONTACT(${CONTACT},user_agent)})
      exten => s,n(uafin),ExecIf($["${KNOWNAGENT}" != ""]?Set(USERAGENT=${KNOWNAGENT}))
      exten => s,n,ExecIf($["${LEN(${PVOL})}" != "0"]?Set(PAGE_VOL=\;volume=${PVOL}))
      exten => s,n,ExecIf($["${USERAGENT:0:6}" = "Digium"]?Set(ALERTINFO=ring-answer))
      exten => s,n,ExecIf($["${USERAGENT:0:5}" = "Mitel"]?Set(CALLINFO=\;answer-after=0))
      exten => s,n,ExecIf($["${USERAGENT:0:9}" = "OpenStage"]?Set(ALERTINFO=\;info=alert-autoanswer))
      exten => s,n,ExecIf($["${USERAGENT:0:9}" = "Panasonic"]?Set(ALERTINFO=Intercom))
      exten => s,n,ExecIf($["${USERAGENT:0:7}" = "Polycom"]?Set(ALERTINFO=Alert-Info: Auto Answer))
      
      exten => s,n,ExecIf($["${USERAGENT:0:7}" = "Sangoma"]?Set(ALERTINFO=\;info=external${PAGE_VOL}))
      
      Change the above line to 
      
      exten => s,n,ExecIf($["${USERAGENT:0:7}" = "Sangoma"]?Set(ALERTINFO=info=external${PAGE_VOL}))
      
      exten => s,n,ExecIf($["${SIPURI}" != ""]?Set(__SIP_URI_OPTIONS=${SIPURI}))
      exten => s,n+2(macro),Macro(${DB(DEVICE/${ARG1}/autoanswer/macro)},${ARG1});--== end of [macro-autoanswer] ==--; 

      Attached the call log for your reference.

      full_auto-answer-not-working

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  psandesh Sandesh Prakash
                  Reporter:
                  psandesh Sandesh Prakash
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    NextupJiraPlusStatus

                    Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.