you can edit dial-plan by adding following lines to your code<br><br>[internal]<br>
    <br>exten =&gt; s,1,Dial(SIP/1000)<br>

    exten =&gt; s,2,HangUp()<br>

    <br>

    <br>exten =&gt; 1000,1,Dial(SIP/1000)<br>
    exten =&gt; 1000,2,HangUp()<br>
    <br>
    exten =&gt; _XXXX,1,Dial(H323/${EXTEN}@<div bgcolor="#ffffff">Avaya)<br>
    exten =&gt; _XXXXXXXXXXX,1,Dial(H323/${EXTEN}@Avaya)<br>
    exten  =&gt; _XXXXXXXXXX,1,Dial(H323/${EXTEN}@Avaya)<br>
    </div><br><br><div class="gmail_quote">On Wed, Jul 13, 2011 at 1:35 PM, Malvin Rito <span dir="ltr">&lt;<a href="mailto:mrito@mail.altcladding.com.ph">mrito@mail.altcladding.com.ph</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<u></u>

  
    
  
  <div bgcolor="#ffffff" text="#000000">
    How do I write it on my code?<div><div></div><div class="h5"><br>
    <br>
    On 7/13/2011 4:04 PM, Warren Selby wrote:
    <blockquote type="cite">
      <div>Looks like you need an &#39;s&#39; exten in your [internal] context. <br>
        <br>
        Thanks,
        <div>--Warren Selby, dCAP</div>
      </div>
      <div><br>
        On Jul 13, 2011, at 2:02 AM, Malvin Rito &lt;<a href="mailto:mrito@mail.altcladding.com.ph" target="_blank">mrito@mail.altcladding.com.ph</a>&gt;
        wrote:<br>
        <br>
      </div>
      <blockquote type="cite">
        <div> Hi List,<br>
          <br>
          I have another issue on allowing outgoing calls to PSTN on
          Asterisk via Avaya Phones, I hope that anyone could help me
          fix this issue:<br>
          <br>
          <b>When I dial through Avaya phone i just here a &quot;good bye
            message&quot; reply from asterisk server. And here is the log:</b><br>
          <br>
           == Starting OOH323/(null)-b7db8aa0 at internal,s,1 failed so
          falling back to exten &#39;s&#39;<br>
            == Starting OOH323/(null)-b7db8aa0 at internal,s,1 still
          failed so falling back to context &#39;default&#39;<br>
              -- Executing [s@default:1]
          Playback(&quot;OOH323/(null)-b7db8aa0&quot;, &quot;vm-goodbye&quot;) in new stack<br>
              -- &lt;OOH323/(null)-b7db8aa0&gt; Playing
          &#39;vm-goodbye.ulaw&#39; (language &#39;en&#39;)<br>
              -- Executing [s@default:2] Macro(&quot;OOH323/(null)-b7db8aa0&quot;,
          &quot;hangupcall&quot;) in new stack<br>
              -- Executing [s@macro-hangupcall:1]
          GotoIf(&quot;OOH323/(null)-b7db8aa0&quot;, &quot;1?skiprg&quot;) in new stack<br>
              -- Goto (macro-hangupcall,s,4)<br>
              -- Executing [s@macro-hangupcall:4]
          GotoIf(&quot;OOH323/(null)-b7db8aa0&quot;, &quot;1?skipblkvm&quot;) in new stack<br>
              -- Goto (macro-hangupcall,s,7)<br>
              -- Executing [s@macro-hangupcall:7]
          GotoIf(&quot;OOH323/(null)-b7db8aa0&quot;, &quot;1?theend&quot;) in new stack<br>
              -- Goto (macro-hangupcall,s,9)<br>
              -- Executing [s@macro-hangupcall:9]
          Hangup(&quot;OOH323/(null)-b7db8aa0&quot;, &quot;&quot;) in new stack<br>
            == Spawn extension (macro-hangupcall, s, 9) exited non-zero
          on &#39;OOH323/(null)-b7db8aa0&#39; in macro &#39;hangupcall&#39;<br>
            == Spawn extension (default, s, 2) exited non-zero on
          &#39;OOH323/(null)-b7db8aa0&#39;<br>
              -- Executing [h@default:1] Macro(&quot;OOH323/(null)-b7db8aa0&quot;,
          &quot;hangupcall,&quot;) in new stack<br>
              -- Executing [s@macro-hangupcall:1]
          GotoIf(&quot;OOH323/(null)-b7db8aa0&quot;, &quot;1?skiprg&quot;) in new stack<br>
              -- Goto (macro-hangupcall,s,4)<br>
              -- Executing [s@macro-hangupcall:4]
          GotoIf(&quot;OOH323/(null)-b7db8aa0&quot;, &quot;1?skipblkvm&quot;) in new stack<br>
              -- Goto (macro-hangupcall,s,7)<br>
              -- Executing [s@macro-hangupcall:7]
          GotoIf(&quot;OOH323/(null)-b7db8aa0&quot;, &quot;1?theend&quot;) in new stack<br>
              -- Goto (macro-hangupcall,s,9)<br>
              -- Executing [s@macro-hangupcall:9]
          Hangup(&quot;OOH323/(null)-b7db8aa0&quot;, &quot;&quot;) in new stack<br>
            == Spawn extension (macro-hangupcall, s, 9) exited non-zero
          on &#39;OOH323/(null)-b7db8aa0&#39; in macro &#39;hangupcall&#39;<br>
            == Spawn extension (default, h, 1) exited non-zero on
          &#39;OOH323/(null)-b7db8aa0&#39;<br>
          <br>
          <b>Here is also the content of my extensions_custom.conf:</b><br>
          [general]<br>
          static=yes<br>
          autofallthrough=yes<br>
          <br>
          [internal]<br>
          exten =&gt; 1000,1,Dial(SIP/1000)<br>
          exten =&gt; 1000,2,HangUp()<br>
          <br>
          exten =&gt; _XXXX,1,Dial(H323/${EXTEN}@Avaya)<br>
          exten =&gt; _XXXXXXXXXXX,1,Dial(H323/${EXTEN}@Avaya)<br>
          exten  =&gt; _XXXXXXXXXX,1,Dial(H323/${EXTEN}@Avaya)<br>
          <br>
          <b>Here is also the content of my ooh323.conf:</b><br>
          [general]<br>
          faststart=yes<br>
          h245tunneling=yes<br>
          gatekeeper=DISABLE<br>
          bindaddr=10.1.129.231<br>
          port=1720<br>
          callerID=&quot;ALT Asterisk PBX&quot;<br>
          progress_setup=8<br>
          progress_alert=8<br>
          disallow=all<br>
          allow=all<br>
          dtmfmode=inband<br>
          faststart=yes<br>
          context=internal<br>
          <br>
          [Avaya]<br>
          type=friend<br>
          context=internal<br>
          host=10.1.129.247<br>
          port=1720<br>
          canreinvite=no<br>
          disallow=all<br>
          allow=alaw<br>
          dtmfmode=inband<br>
          <br>
          <b>Here is also the content of sip_custom.conf:</b><br>
          [general]<br>
          context=internal<br>
          videosupport=yes<br>
          allow=h261<br>
          allow=h263<br>
          allow=h263p<br>
          bindaddr=10.1.129.231<br>
          srvlookup=yes<br>
          conreinvitte=no<br>
          <br>
          [1000]<br>
          type=friend<br>
          secret=malvin123<br>
          host=dynamic<br>
          dtmfmode=inband<br>
          disallow=all<br>
          allow=all<br>
          nat=yes<br>
          <br>
          <br>
          Thanks &amp; regards,<br>
          Malvin<br>
        </div>
      </blockquote>
      <blockquote type="cite">
        <div><span>--</span><br>
          <span>_____________________________________________________________________</span><br>
          <span>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a>
            --</span><br>
          <span>New to Asterisk? Join us for a live introductory webinar
            every Thurs:</span><br>
          <span>               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a></span><br>
          <span></span><br>
          <span>asterisk-users mailing list</span><br>
          <span>To UNSUBSCRIBE or update options visit:</span><br>
          <span>   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></span></div>
      </blockquote>
      <pre><fieldset></fieldset>
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a>

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></pre>
    </blockquote>
  </div></div></div>

<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
New to Asterisk? Join us for a live introductory webinar every Thurs:<br>
               <a href="http://www.asterisk.org/hello" target="_blank">http://www.asterisk.org/hello</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>