<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    It seems that if there is a pause in the auto attendant longer than
    a second this problem occurs.  I have this for an extension in my
    extensions.conf file:<br>
    <br>
    exten => 2799,1,GotoIf($["${CALLERID(num)}" = "${EXTEN}"]?500)<br>
    exten => 2799,2,Dial(PJSIP/${EXTEN},14,tr)<br>
    exten => 2799,3,Dial(PJSIP/${EXTEN},1,tr)<br>
    exten => 2799,4,BackGround(abandon-all-hope)<br>
    exten => 2799,5,BackGround(dial-here-often)<br>
    exten => 2799,6,Wait(2)<br>
    exten => 2799,7,BackGround(gambling-drunk)<br>
    exten => 2799,8,BackGround(you-seem-impatient)<br>
    exten => 2799,9,BackGround(nobody-but-chickens)<br>
    exten => 2799,10,BackGround(tt-somethingwrong)<br>
    exten => 2799,11,BackGround(tt-weasels)<br>
    exten => 2799,12,Voicemail(${EXTEN},ug(15))<br>
    exten => 2799,13,Voicemail(${EXTEN},bg(15))<br>
    exten => 2799,14,Hangup<br>
    exten => 2799,500,VoicemailMain(${CALLERID(num)})<br>
    <div class="moz-signature"><br>
      If I change the Wait to 1 the MagicJack will hear everything.  If
      I change it to 2, nothing is heard from that point on.<br>
      <br>
          Chris<br>
      <br>
    </div>
    <div class="moz-cite-prefix">On 6/1/20 8:43 AM, Chris Dos wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:ffc68a8e-66b0-034f-6dc2-fbfbde7994b9@chrisdos.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      I upgraded our Asterisk 13 LTS to Asterisk 16 Certified 16.8
      yesterday and converted form SIP to PJSIP using the python script
      as a start and then mofiying from there.  I ran into an issue when
      testing that incoming calls from MagicJack would go silent after
      about 10 seconds.  This happened while in the automated attendant
      area.  This problem did not occur with Asterisk 13 LTS.  I
      reverted PJSIP back to SIP and the problem still occurred, so that
      was not it.<br>
      <br>
      We connect to Flowroute for our SIP provider.  I added "force_avp
      = yes" to the Flowroute endpoint section in the pjsip.conf and the
      problem appeared to be solved after I tested it a dozen times. 
      However, this morning this issue has reappeared.  Any thoughts on
      what might be causing this?<br>
      <br>
      My Flowroute pjsip.conf config:<br>
      [transport-udp]<br>
      type = transport<br>
      protocol = udp<br>
      bind = 0.0.0.0<br>
      tos = cs3<br>
      <br>
      [reg_us-west-wa.sip.flowroute.com]<br>
      type = registration<br>
      retry_interval = 20<br>
      expiration = 120<br>
      transport = transport-udp<br>
      outbound_auth = auth_reg_us-west-wa.sip.flowroute.com<br>
      client_uri = <a class="moz-txt-link-abbreviated"
        href="mailto:sip:12345678@us-west-wa.sip.flowroute.com"
        moz-do-not-send="true">sip:12345678@us-west-wa.sip.flowroute.com</a><br>
      server_uri = sip:us-west-wa.sip.flowroute.com<br>
      <br>
      [auth_reg_us-west-wa.sip.flowroute.com]<br>
      type = auth<br>
      password = XXZZXXZZXXZZ<br>
      username = 12345678<br>
      <br>
      [reg_us-west-or.sip.flowroute.com]<br>
      type = registration<br>
      retry_interval = 20<br>
      expiration = 120<br>
      transport = transport-udp<br>
      outbound_auth = auth_reg_us-west-or.sip.flowroute.com<br>
      client_uri = <a class="moz-txt-link-abbreviated"
        href="mailto:sip:12345678@us-west-or.sip.flowroute.com"
        moz-do-not-send="true">sip:12345678@us-west-or.sip.flowroute.com</a><br>
      server_uri = sip:us-west-or.sip.flowroute.com<br>
      <br>
      [auth_reg_us-west-or.sip.flowroute.com]<br>
      type = auth<br>
      password = XXZZXXZZXXZZ<br>
      username = 12345678<br>
      <br>
      [reg_us-east-nj.sip.flowroute.com]<br>
      type = registration<br>
      retry_interval = 20<br>
      expiration = 120<br>
      transport = transport-udp<br>
      outbound_auth = auth_reg_us-east-nj.sip.flowroute.com<br>
      client_uri = <a class="moz-txt-link-abbreviated"
        href="mailto:sip:12345678@us-east-nj.sip.flowroute.com"
        moz-do-not-send="true">sip:12345678@us-east-nj.sip.flowroute.com</a><br>
      server_uri = sip:us-east-nj.sip.flowroute.com<br>
      <br>
      [auth_reg_us-east-nj.sip.flowroute.com]<br>
      type = auth<br>
      password = XXZZXXZZXXZZ<br>
      username = 12345678<br>
      <br>
      [reg_us-east-va.sip.flowroute.com]<br>
      type = registration<br>
      retry_interval = 20<br>
      expiration = 120<br>
      transport = transport-udp<br>
      outbound_auth = auth_reg_us-east-va.sip.flowroute.com<br>
      client_uri = <a class="moz-txt-link-abbreviated"
        href="mailto:sip:12345678@us-east-va.sip.flowroute.com"
        moz-do-not-send="true">sip:12345678@us-east-va.sip.flowroute.com</a><br>
      server_uri = sip:us-east-va.sip.flowroute.com<br>
      <br>
      [auth_reg_us-east-va.sip.flowroute.com]<br>
      type = auth<br>
      password = XXZZXXZZXXZZ<br>
      username = 12345678<br>
      <br>
      [flowroute]<br>
      type = aor<br>
      contact = <a class="moz-txt-link-abbreviated"
        href="mailto:sip:12345678@us-west-wa.sip.flowroute.com"
        moz-do-not-send="true">sip:12345678@us-west-wa.sip.flowroute.com</a><br>
      <br>
      [flowroute]<br>
      type = identify<br>
      endpoint = flowroute<br>
      match = 147.75.60.160/28, 34.210.91.112/28, 34.226.36.32/28,
      147.75.65.192/28<br>
      <br>
      [flowroute]<br>
      type = auth<br>
      username = 12345678<br>
      password = XXZZXXZZXXZZ<br>
      <br>
      [flowroute]<br>
      type = endpoint<br>
      context = from-trunk<br>
      dtmf_mode = rfc4733<br>
      allow = !all,ulaw<br>
      direct_media = no<br>
      from_domain = us-west-wa.sip.flowroute.com<br>
      tos_audio = ef<br>
      tos_video = af41<br>
      ; Note: "force_avp = yes" fixes issues with calls coming from
      MagicJack with no audio after a few seconds.<br>
      force_avp = yes<br>
      auth = flowroute<br>
      outbound_auth = flowroute<br>
      aors = flowroute<br>
      t38_udptl = yes<br>
      t38_udptl_ec = fec<br>
      <br>
      [anonymous]<br>
      type=endpoint<br>
      context = anonymous<br>
      allow = !all,ulaw<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
    </blockquote>
    <br>
  </body>
</html>