<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Here is the sip.conf portion for extension 150<br>
    <br>
    [150]<br>
    deny=0.0.0.0/0.0.0.0<br>
    type=friend<br>
    secret=1234567890<br>
    qualify=yes<br>
    port=5060<br>
    pickupgroup=<br>
    permit=0.0.0.0/0.0.0.0<br>
    nat=yes<br>
    host=dynamic<br>
    dtmfmode=rfc2833<br>
    dial=SIP/150<br>
    context=from-trunk<br>
    canreinvite=no<br>
    callgroup=<br>
    callerid=device &lt;150&gt;<br>
    accountcode=<br>
    call-limit=50<br>
    <br>
    <br>
    On 8/30/2010 10:37 AM, Bryant Zimmerman wrote:
    <blockquote cite="mid:1003483a$4de91750$2309eb14$@com" type="cite"><span
        style="font-family: Arial,Helvetica,sans-serif; font-size:
        10pt;">Todd<br>
        <br>
        How do you have the context in the phones sip configs set?<br>
        <br>
        Bryant<br>
        <span style="font-family: tahoma,arial,sans-serif; font-size:
          10pt;"><b><br>
            From</b>: "Todd Reese" <a moz-do-not-send="true"
            href="mailto:treese65@gmail.com">treese65@gmail.com</a><br>
        </span><br>
        Hi all,<br>
        <br>
        I've been have problems with getting this system on line and
        would like <br>
        to acquire some help with the extensions.conf.<br>
        <br>
        My current problem is that the phones won't dialout.on the VOIP
        lines <br>
        listed as dialout1, dialout2, dialout3. This version of asterisk
        is <br>
        1.6.2.11. Below is the extensions.conf file.<br>
        <br>
        <br>
        [globals]<br>
        <br>
        <br>
        <br>
        QPHONE0=SIP/10<br>
        QPHONE1=SIP/11<br>
        QPHONE2=SIP/12<br>
        QPHONE3=SIP/13<br>
        QPHONE4=SIP/14<br>
        QPHONE5=SIP/15<br>
        QPHONE6=SIP/16<br>
        QPHONE7=SIP/17<br>
        <br>
        ACAPHONE0=SIP/20<br>
        ACAPHONE1=SIP/21<br>
        ACAPHONE2=SIP/22<br>
        ACAPHONE3=SIP/23<br>
        ACAPHONE4=SIP/24<br>
        ACAPHONE5=SIP/25<br>
        ACAPHONE6=SIP/26<br>
        ACAPHONE7=SIP/27<br>
        <br>
        GMNETPHONE0=SIP/30<br>
        GMNETPHONE1=SIP/31<br>
        GMNETPHONE2=SIP/32<br>
        GMNETPHONE3=SIP/33<br>
        GMNETPHONE4=SIP/34<br>
        GMNETPHONE5=SIP/35<br>
        GMNETPHONE6=SIP/36<br>
        GMNETPHONE7=SIP/37<br>
        <br>
        EXTERNPHONE0=SIP/150<br>
        <br>
        CPHONE1=SIP/16780000000<br>
        CPHONE2=SIP/17700000000<br>
        <br>
        EMERGENCY=0<br>
        EMERGENCY_TRUNK=DAHDI/G1<br>
        ; Change this for production use:<br>
        EMERGENCY_NUM=6789542133<br>
        <br>
        <br>
        [from-pstn]<br>
        exten =&gt; s,1,Set(FROM_DID="6780000000)<br>
        exten =&gt; s,n,NoOp(id is ${FROM_DID})<br>
        exten =&gt; s,n,Goto(incoming1,s,1)<br>
        <br>
        <br>
        <br>
        <br>
        [from-pstn1]<br>
        exten =&gt; s,1,Set(FROM_DID="6780000000)<br>
        exten =&gt; s,n,NoOp(id is ${FROM_DID})<br>
        exten =&gt; s,n,Goto(incoming1,s,1)<br>
        <br>
        [from-pstn2]<br>
        exten =&gt; s,1,Set(FROM_DID="6780000000)<br>
        exten =&gt; s,n,NoOp(id is ${FROM_DID})<br>
        exten =&gt; s,n,Goto(incoming1,s,1)<br>
        <br>
        [from-pstn3]<br>
        exten =&gt; s,1,Set(FROM_DID="6780000000)<br>
        exten =&gt; s,n,NoOp(id is ${FROM_DID})<br>
        exten =&gt; s,n,Goto(incoming1,s,1)<br>
        <br>
        [from-pstn4]<br>
        exten =&gt; s,1,Set(FROM_DID="6780000000)<br>
        exten =&gt; s,n,NoOp(id is ${FROM_DID})<br>
        exten =&gt; s,n,Goto(incoming3,s,1)<br>
        <br>
        [from-pstn5]<br>
        exten =&gt; s,1,Set(FROM_DID="6780000000)<br>
        exten =&gt; s,n,NoOp(id is ${FROM_DID})<br>
        exten =&gt; s,n,Goto(incoming2,s,1)<br>
        <br>
        [from-pstn6]<br>
        exten =&gt; s,1,Set(FROM_DID="6780000000)<br>
        exten =&gt; s,n,NoOp(id is ${FROM_DID})<br>
        exten =&gt; s,n,Goto(incoming1,s,1)<br>
        <br>
        [from-pstn7]<br>
        exten =&gt; s,1,Set(FROM_DID="6780000000)<br>
        exten =&gt; s,n,NoOp(id is ${FROM_DID})<br>
        exten =&gt; s,n,Goto(incoming1,s,1)<br>
        <br>
        [from-pstn8]<br>
        exten =&gt; s,1,Set(FROM_DID="6780000000)<br>
        exten =&gt; s,n,NoOp(id is ${FROM_DID})<br>
        exten =&gt; s,n,Goto(incoming1,s,1)<br>
        <br>
        <br>
        [incoming1]<br>
        include =&gt; from-internal<br>
        include =&gt; parkedcalls<br>
        exten =&gt; s,1,Answer<br>
        exten =&gt; s,n,Wait(1)<br>
        exten =&gt; s,n,Set(CHANNEL(musicclass)=QCI)<br>
        exten =&gt; s,n,Set(TIMEOUT(digit)=5)<br>
        exten =&gt; s,n,Set(TIMEOUT(response)=10)<br>
        exten =&gt; s,n,Background(thank-you-for-calling)<br>
        exten =&gt; <br>
s,n,Dial(${QPHONE0}&amp;${QPHONE1}&amp;${QPHONE2}&amp;${QPHONE3}&amp;${QPHONE4}&amp;${QPHONE5}&amp;${QPHONE6}&amp;${QPHONE7},40,Ttr)<br>
        exten =&gt; s,n,Hangup<br>
        <br>
        <br>
        [incoming2]<br>
        include =&gt; from-internal<br>
        include =&gt; parkedcalls<br>
        exten =&gt; s,1,Answer<br>
        exten =&gt; s,n,Wait(1)<br>
        exten =&gt; s,n,Set(CHANNEL(musicclass)=QCI)<br>
        exten =&gt; s,n,Set(TIMEOUT(digit)=5)<br>
        exten =&gt; s,n,Set(TIMEOUT(response)=10)<br>
        exten =&gt; s,n,Background(thank-you-for-calling)<br>
        exten =&gt; <br>
s,n,Dial(${ACAPHONE0}&amp;${ACAPHONE1}&amp;${ACAPHONE2}&amp;${ACAPHONE3}&amp;${ACAPHONE4}&amp;${ACAPHONE5}&amp;${ACAPHONE6}&amp;${ACAPHONE7},40,TTr)<br>
        exten =&gt; s,n,Hangup<br>
        <br>
        [incoming3]<br>
        include =&gt; from-internal<br>
        include =&gt; parkedcalls<br>
        exten =&gt; s,1,Answer<br>
        exten =&gt; s,n,Wait(1)<br>
        exten =&gt; s,n,Set(CHANNEL(musicclass)=QCI)<br>
        exten =&gt; s,n,Set(TIMEOUT(digit)=5)<br>
        exten =&gt; s,n,Set(TIMEOUT(response)=10)<br>
        exten =&gt; s,n,Background(thank-you-for-calling)<br>
        exten =&gt; s,n,GotoIfTime(17:01-09:00|*|*|*?closed,s,1)<br>
        exten =&gt; <br>
s,n,Dial(${GMNETPHONE0}&amp;${GMNETPHONE1}&amp;${GMNETPHONE2}&amp;${GMNETPHONE3}&amp;${GMNETPHONE4}&amp;${GMNETPHONE5}&amp;${GMNETPHONE6}&amp;${GMNETPHONE7},40,Ttr)<br>
        exten =&gt; s,n,Hangup<br>
        <br>
        [from-interal]<br>
        include =&gt; dialout1<br>
        include =&gt; dialout2<br>
        include =&gt; dialout3<br>
        include =&gt; parkedcalls<br>
        include =&gt; intercom<br>
        <br>
        exten =&gt; 10,1,Macro(oneline,${QPHONE0})<br>
        exten =&gt; 11,1,Macro(oneline,${QPHONE1})<br>
        exten =&gt; 12,1,Macro(oneline,${QPHONE2})<br>
        exten =&gt; 13,1,Macro(oneline,${QPHONE3})<br>
        exten =&gt; 14,1,Macro(oneline,${QPHONE4})<br>
        exten =&gt; 15,1,Macro(oneline,${QPHONE5})<br>
        exten =&gt; 16,1,Macro(oneline,${QPHONE6})<br>
        exten =&gt; 17,1,Macro(oneline,${QPHONE7})<br>
        <br>
        exten =&gt; 20,1,Macro(oneline,${ACAPHONE0})<br>
        exten =&gt; 21,1,Macro(oneline,${ACAPHONE1})<br>
        exten =&gt; 22,1,Macro(oneline,${ACAPHONE2})<br>
        exten =&gt; 23,1,Macro(oneline,${ACAPHONE3})<br>
        exten =&gt; 24,1,Macro(oneline,${ACAPHONE4})<br>
        exten =&gt; 25,1,Macro(oneline,${ACAPHONE5})<br>
        exten =&gt; 26,1,Macro(oneline,${ACAPHONE6})<br>
        exten =&gt; 27,1,Macro(oneline,${ACAPHONE7})<br>
        <br>
        exten =&gt; 30,1,Macro(oneline,${GMNETPHONE0})<br>
        exten =&gt; 31,1,Macro(oneline,${GMNETPHONE1})<br>
        exten =&gt; 32,1,Macro(oneline,${GMNETPHONE2})<br>
        exten =&gt; 33,1,Macro(oneline,${GMNETPHONE3})<br>
        exten =&gt; 34,1,Macro(oneline,${GMNETPHONE4})<br>
        exten =&gt; 35,1,Macro(oneline,${GMNETPHONE5})<br>
        exten =&gt; 36,1,Macro(oneline,${GMNETPHONE6})<br>
        exten =&gt; 37,1,Macro(oneline,${GMNETPHONE7})<br>
        <br>
        exten =&gt; 40,1,Macro(oneline,${QPHONE0})<br>
        exten =&gt; 41,1,Macro(oneline,${QPHONE1})<br>
        exten =&gt; 42,1,Macro(oneline,${QPHONE2})<br>
        exten =&gt; 43,1,Macro(oneline,${QPHONE3})<br>
        exten =&gt; 44,1,Macro(oneline,${QPHONE4})<br>
        exten =&gt; 45,1,Macro(oneline,${QPHONE5})<br>
        exten =&gt; 46,1,Macro(oneline,${QPHONE6})<br>
        exten =&gt; 47,1,Macro(oneline,${QPHONE7})<br>
        <br>
        exten =&gt; 150,1,Macro(oneline,${EXTERNPHONE0})<br>
        <br>
        <br>
        <br>
        <br>
        [macro-oneline]<br>
        exten =&gt; s,1,Set(CHANNEL(musicclass)=default)<br>
        exten =&gt; s,n,Dial(${ARG1},20,Ttr)<br>
        exten =&gt; s,n,Voicemail(${MACRO_EXTEN})<br>
        exten =&gt; s,n,Hangup<br>
        exten =&gt; s,102,Voicemail(${MACRO_EXTEN})<br>
        exten =&gt; s,103,Hangup<br>
        <br>
        <br>
        <br>
        [dialout1]<br>
        include =&gt; from-internal<br>
        include =&gt; 411<br>
        exten =&gt; 911,1,Goto(nineoneone,s,1)<br>
        exten =&gt; _1NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr)<br>
        exten =&gt; _NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr)<br>
        <br>
        [dialout2]<br>
        include =&gt; from-internal<br>
        include =&gt; 411<br>
        exten =&gt; 911,1,Goto(nineoneone,s,1)<br>
        exten =&gt; _1NXXNXXXXXX,n,Dial(SIP/voipdialACA/${EXTEN},40,Ttr)<br>
        exten =&gt; _NXXNXXXXXX,n,Dial(SIP/voipdialACA/${EXTEN},40,Ttr)<br>
        <br>
        [dialout3]<br>
        include =&gt; from-internal<br>
        include =&gt; 411<br>
        exten =&gt; 911,1,Goto(nineoneone,s,1)<br>
        exten =&gt; _1NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr)<br>
        exten =&gt; _1NXXNXXXXXX,n,Dial(SIP/v6781234567/${EXTEN},40,Ttr)<br>
        <br>
        <br>
        <br>
        [voicemail]<br>
        exten =&gt; 8500,1,VoicemailMain<br>
        exten =&gt; 8500,2,Hangup<br>
        <br>
        <br>
        <br>
        <br>
        [411]<br>
        exten =&gt; 411,1,Dial(SIP/v6781234567/18004664411,,Ttr)<br>
        <br>
        <br>
        [nineoneone]<br>
        exten =&gt; s,1,Set(SET_EMERG_FLAG=0)<br>
        exten =&gt; s,n(checkavail),ChanIsAvail(${EMERGENCY_TRUNK})<br>
        exten =&gt; s,n,Set(EMERGENCY=1,g)<br>
        exten =&gt; s,n,Set(SET_EMERG_FLAG=1)<br>
        exten =&gt; s,n(dial),Dial(${EMERGENCY_TRUNK}/${EMERGENCY_NUM})<br>
        exten =&gt; s,s+2(trunkbusy),GotoIf($[${EMERGENCY} =
        1]?inprogress)<br>
        exten =&gt; s,n,SoftHangup(${EMERGENCY_TRUNK}-1)<br>
        exten =&gt; s,n,Wait(12)<br>
        exten =&gt; s,n,Goto(checkavail)<br>
        exten =&gt; s,s+2(inprogress),Congestion<br>
        exten =&gt; s,checkavail+101(notavail),Goto(trunkbusy)<br>
        exten =&gt; h,1,GotoIf($[${SET_EMERG_FLAG} = 1]?3)<br>
        exten =&gt; h,3,Set(EMERGENCY=0,g)<br>
        <br>
        <br>
        [closed]<br>
        exten =&gt; s,n,Dial(Dial(SIP/v6781234567/${CPHONE1},40,Ttr)<br>
        exten =&gt; s,n,Hangup<br>
        <br>
        <br>
        [intercom]<br>
        exten =&gt; 59,1,SIPAddHeader(Call-Info: answer-after=0)<br>
        exten =&gt; <br>
59,2,Page(${GMNETPHONE0}&amp;${GMNETPHONE1}&amp;${GMNETPHONE2}&amp;${GMNETPHONE3}&amp;${GMNETPHONE4}&amp;${GMNETPHONE5}&amp;${GMNETPHONE6}&amp;${GMNETPHONE7}|d)<br>
        exten =&gt; 59,3, Hangup<br>
        <br>
        <br>
        -- <br>
_____________________________________________________________________<br>
        -- Bandwidth and Colocation Provided by
        <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a> --<br>
        New to Asterisk? Join us for a live introductory webinar every
        Thurs:<br>
        <a class="moz-txt-link-freetext" href="http://www.asterisk.org/hello">http://www.asterisk.org/hello</a><br>
        <br>
        asterisk-users mailing list<br>
        To UNSUBSCRIBE or update options visit:<br>
        <a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-users">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
        <br>
      </span>
    </blockquote>
    <br>
  </body>
</html>