title: Asterisk 16 w/ PJSIP - "Everyone is busy/congested" When Forwarding Inbound Call
body: <p>I am running Asterisk 16 on CentOS 7 and PJSIP. I am attempting to forward all inbound calls to a phone number (represented by 18001112222) to my cellphone (represented by 12224446666). Registration to the provider and the inbound call getting to the PBX both work without issue, but creating the outbound, forwarded call to my cellphone results in these log lines:</p>
  
  <pre><code>  == Setting global variable 'SIPDOMAIN' to '167.71.106.189'
      -- Executing [18001112222@from-external:1] Verbose("PJSIP/mytrunk-00000000", "1, "New caller, 2224446666 dialed into the IVR."") in new stack
    "New caller, 2224446666 dialed into the IVR."
      -- Executing [18001112222@from-external:2] Answer("PJSIP/mytrunk-00000000", "") in new stack
      -- Executing [18001112222@from-external:3] Dial("PJSIP/mytrunk-00000000", "PJSIP/mytrunk/sip:14045964207") in new stack
      -- Called PJSIP/mytrunk/sip:14045964207
      -- PJSIP/mytrunk-00000000 requested media update control 26, passing it to PJSIP/mytrunk-00000001
    == Everyone is busy/congested at this time (1:0/1/0)
      -- Executing [18001112222@from-external:4] Hangup("PJSIP/mytrunk-00000000", "") in new stack
    == Spawn extension (from-external, 18001112222, 4) exited non-zero on 'PJSIP/mytrunk-00000000'
  </code></pre>
  
  <p>It would appear that <code>Everyone is busy/congested at this time</code> is the error message causing this setup to fail. I have tried changing the authentication scheme for <code>mytrunk</code> using numerous online forum posts, but the error message continues to show up on the outbound leg of the forward. My configuration files are below:</p>
  
  <p><code>pjsip.conf</code>:</p>
  
  <pre><code>;==============TRANSPORTS
  
  [simpletrans]
  type=transport
  protocol=udp
  bind=0.0.0.0
  
  ;===============TRUNK
  
  [mytrunk]
  type=registration
  outbound_auth=mytrunk
  server_uri=sip:&lt;SIP provider gateway&gt;
  client_uri=sip:&lt;username&gt;@&lt;SIP provider gateway&gt;
  retry_interval=60
  
  [mytrunk]
  type=auth
  auth_type=userpass
  password=&lt;password&gt;
  username=&lt;username&gt;
  
  [mytrunk]
  type=aor
  contact=sip:&lt;SIP provider gateway&gt;:5060
  
  [mytrunk]
  type=endpoint
  context=from-external
  disallow=all
  allow=ulaw
  outbound_auth=mytrunk
  aors=mytrunk
  
  [mytrunk]
  type=identify
  endpoint=mytrunk
  match=&lt;SIP provider gateway&gt;
  </code></pre>
  
  <p><code>extensions.conf</code>:</p>
  
  <pre><code>[globals]
  ; General internal dialing options used in context Dial-Users.
  ; Only the timeout is defined here. See the Dial app documentation for
  ; additional options.
  INTERNAL_DIAL_OPT=,30
  
  [from-external]
  exten = _18001112222,1,Verbose(1, "New caller, ${CALLERID(num)} dialed in.")
   same = n,Answer()
   same = n,Dial(PJSIP/mytrunk/sip:12224446666@mytrunk)
   same = n,Hangup()
  </code></pre>
  
  <p>I believe the issue is with the <code>pjsip.conf</code> configuration for <em>outbound calls</em>, because the inbound call reaches the PBX without issue and I am able to do something like <code>Verbose()</code> and see the output in the Asterisk CLI. I am not sure what I need to do in order to create the outbound leg while an inbound call from the ITSP succeeds. </p>
  
  <p>Thank you.</p>