<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    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">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">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">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">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">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>
  </body>
</html>