如何設定同時具有總機與專線功能

55 views
Skip to first unread message

david

unread,
Sep 3, 2010, 7:19:13 AM9/3/10
to Taiwan Asterisk Users' Group - www.osslab.org.tw
大家好,
我目前安裝的是Elastix2.0
一張語音卡有4線,目前接亞太的節費電話,
假設4線門號分別為:
0982-000-001接Zap1
0982-000-002接Zap2
0982-000-003接Zap3
0982-000-004接Zap4

我想規劃成
撥出時:
分機 撥出專線
101(總機) 0982-000-001(代表號)
102 0982-000-002
103 0982-000-003
104 0982-000-004
進線時:
進線門號 接通分機
0982-000-001 語音:請直撥分機號碼,或撥0由總機為您服務....) 按0時接通101
0982-000-002 102
0982-000-003 103
0982-000-004 104
請問該怎麼設定?
謝謝!


A.Lang, Hsu - Blog.osslab.org.tw

unread,
Sep 3, 2010, 8:24:17 AM9/3/10
to aster...@googlegroups.com
for outbound)
使用 Custom Context 模組

for inbound)
Unembedded FreePBX > Zap Channel DIDs
Outbound Route
IVR



2010/9/3 david <da...@ibank.com.tw>


--
您已訂閱「Google 網上論壇」的「Taiwan Asterisk Users' Group - www.osslab.org.tw」群組,因此我們特別傳送這封郵件通知您。
如要在此群組張貼留言,請傳送電子郵件至 aster...@googlegroups.com
如要取消訂閱此群組,請傳送電子郵件至 asterisk-tw...@googlegroups.com
如需更多選項,請造訪此群組:http://groups.google.com/group/asterisk-tw?hl=zh-TW


白馬

unread,
Sep 3, 2010, 9:28:58 AM9/3/10
to Taiwan Asterisk Users' Group - www.osslab.org.tw
記得還要把dahdi-channels.conf 內之context 從 from-pstn 改成 from-zaptel , 這樣
inbound route
才會正確判斷DID,而且要把group分開,不然你無法把outbound trunk分成四線。

On 9月3日, 下午8時24分, "A.Lang, Hsu - Blog.osslab.org.tw"

> > 如要取消訂閱此群組,請傳送電子郵件至 asterisk-tw...@googlegroups.com<asterisk-tw%2Bunsu...@googlegroups.com>
> > 。
> > 如需更多選項,請造訪此群組:http://groups.google.com/group/asterisk-tw?hl=zh-TW

david

unread,
Sep 3, 2010, 10:25:12 AM9/3/10
to Taiwan Asterisk Users' Group - www.osslab.org.tw
請問白馬大大,
我這樣寫OK嗎?
;;; line="1 WCTDM/4/0 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-zaptel
channel => 1
callerid=
group=
context=default

;;; line="2 WCTDM/4/1 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=1
context=from-zaptel
channel => 2
callerid=
group=
context=default

;;; line="3 WCTDM/4/2 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=2
context=from-zaptel
channel => 3
callerid=
group=
context=default

;;; line="4 WCTDM/4/3 FXSKS"
signalling=fxs_ks
callerid=asreceived
group=3
context=from-zaptel
channel => 4
callerid=
group=
context=default

另,除了dahdi-channels.conf這個檔案須修改內容外
其他是不是直接從Elastix的Web管理頁面的PBX設定裡面去設定就可以?(也就是說
不用動到程式的內容)

> > > 如要取消訂閱此群組,請傳送電子郵件至 asterisk-tw...@googlegroups.com<asterisk-tw%2Bunsu...@googlegr-oups.com>
> > > 。
> > > 如需更多選項,請造訪此群組:http://groups.google.com/group/asterisk-tw?hl=zh-TW。- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

david

unread,
Sep 3, 2010, 10:41:29 AM9/3/10
to Taiwan Asterisk Users' Group - www.osslab.org.tw
A.Lang大大您好!
不好意思,有點給他不懂。(我才剛在學)
我找不到Custom Context 這個模組選項

On 9月3日, 下午8時24分, "A.Lang, Hsu - Blog.osslab.org.tw"
<alang....@gmail.com> wrote:

A.Lang, Hsu - Blog.osslab.org.tw

unread,
Sep 3, 2010, 10:52:34 AM9/3/10
to aster...@googlegroups.com
www.osslab.org.tw is your friend


2010/9/3 david <da...@ibank.com.tw>
您已訂閱「Google 網上論壇」的「Taiwan Asterisk Users' Group - www.osslab.org.tw」群組,因此我們特別傳送這封郵件通知您。
如要在此群組張貼留言,請傳送電子郵件至 aster...@googlegroups.com
如要取消訂閱此群組,請傳送電子郵件至 asterisk-tw...@googlegroups.com
如需更多選項,請造訪此群組:http://groups.google.com/group/asterisk-tw?hl=zh-TW


david

unread,
Sep 3, 2010, 7:49:02 PM9/3/10
to Taiwan Asterisk Users' Group - www.osslab.org.tw
A.Lang大大您好!
我已經安裝好Custom Context這個模組了
可是裡面的設定完全不懂,請問有相關的說明文件(中文的)
可以參考嗎?還是全部用原設定值就可以...
另是不是我有4條外線就必須設定4個Context呢?


On 9月3日, 下午10時52分, "A.Lang, Hsu - Blog.osslab.org.tw"
<alang....@gmail.com> wrote:
> www.osslab.org.twis your friend

> > <asterisk-tw%2Bunsubscr...@googlegr-oups.com<asterisk-tw%252Bunsubscr...@googlegr-oups.com>
>
> > > > 。
> > > > 如需更多選項,請造訪此群組:http://groups.google.com/group/asterisk-tw?hl=zh-TW。-<http://groups.google.com/group/asterisk-tw?hl=zh-TW%E3%80%82->隱藏被引用文字 -

白馬

unread,
Sep 3, 2010, 9:51:34 PM9/3/10
to Taiwan Asterisk Users' Group - www.osslab.org.tw
首先先建立四個dahdi trunk,分別為 g0 g1 g2 g3,再做四個outbound trunk,
因為Custom Context不是作為trunk的管理用,而是管理分機的行為(撥打方式),
因為依你目前的管理方式正好是四種條件,所以設定為4個是對的,不過因為很
久沒用Custom Context無法很仔細跟你說明,不過重點在outbound trunk每個分
機只能允許(allow)一個外線,才達到你的要求。

On 9月4日, 上午7時49分, david <da...@ibank.com.tw> wrote:
> A.Lang大大您好!
> 我已經安裝好Custom Context這個模組了
> 可是裡面的設定完全不懂,請問有相關的說明文件(中文的)
> 可以參考嗎?還是全部用原設定值就可以...
> 另是不是我有4條外線就必須設定4個Context呢?
>
> On 9月3日, 下午10時52分, "A.Lang, Hsu - Blog.osslab.org.tw"
>
> <alang....@gmail.com> wrote:

> >www.osslab.org.twisyour friend

> > > > > 如要取消訂閱此群組,請傳送電子郵件至 asterisk-tw...@googlegroups.com<asterisk-tw%2Bunsubscr...@googlegr-oups.com>


> > > <asterisk-tw%2Bunsubscr...@googlegr-oups.com<asterisk-tw%252Bunsubscr...@googlegr-oups.com>
>
> > > > > 。
> > > > > 如需更多選項,請造訪此群組:http://groups.google.com/group/asterisk-tw?hl=zh-TW。-<http://groups.google.com/group/asterisk-tw?hl=zh-TW%E3%80%82->隱藏被引用文字 -
>
> > > > - 顯示被引用文字 -
>
> > > --
> > > 您已訂閱「Google 網上論壇」的「Taiwan Asterisk Users' Group -www.osslab.org.tw
> > > 」群組,因此我們特別傳送這封郵件通知您。
> > > 如要在此群組張貼留言,請傳送電子郵件至 aster...@googlegroups.com

> > > 如要取消訂閱此群組,請傳送電子郵件至 asterisk-tw...@googlegroups.com<asterisk-tw%2Bunsubscr...@googlegr-oups.com>

StevenHsu

unread,
Sep 3, 2010, 4:52:25 PM9/3/10
to Taiwan Asterisk Users' Group - www.osslab.org.tw
這個很難一步登天阿...我也是摸了好幾個月,狂K原文資料才比較懂asterisk的整個運作
除了參考www.osslab.org.tw 這個好朋友之外
還可以google找下面這兩個電子檔練功,看完之後似懂非懂的都懂了...不過進階點的extension_custom還是不大熟

GettingStartedWithAsterisk.pdf
elastix_without_tears_June20_2010.pdf

> > > 如要取消訂閱此群組,請傳送電子郵件至 asterisk-tw...@googlegroups.com<asterisk-tw%2Bunsubscr...@googlegr-oups.com>

A.Lang, Hsu - Blog.osslab.org.tw

unread,
Sep 4, 2010, 9:58:27 AM9/4/10
to aster...@googlegroups.com
Custom Context 模組其實很簡單使用,簡述使用重點如下:
  1. 如白馬兄所言,做好那些規劃。
  2. 為 4 個 Trunk 分別新增對應的 4 個 outbound route,dial pattern 可以重複,因為稍候可以限制各撥各的,例如
    to_001
    to_002
    to_003
    to_004
  3. 分別新增四個 custom context,例如
    for_101
    for_102
    for_103
    for_104
    每個的設定項目,特別在 outbound route 的部份,只予許指定的項目。
    其他的內部功能 app-xxx 自行選擇
  4. 最後,分別在 101-104 的分機設定的 custom context 選擇對應的項目。


2010/9/4 白馬 <weihu...@gmail.com>
您已訂閱「Google 網上論壇」的「Taiwan Asterisk Users' Group - www.osslab.org.tw」群組,因此我們特別傳送這封郵件通知您。
如要在此群組張貼留言,請傳送電子郵件至 aster...@googlegroups.com
如要取消訂閱此群組,請傳送電子郵件至 asterisk-tw...@googlegroups.com
如需更多選項,請造訪此群組:http://groups.google.com/group/asterisk-tw?hl=zh-TW


StevenHsu

unread,
Sep 6, 2010, 9:53:22 AM9/6/10
to Taiwan Asterisk Users' Group - www.osslab.org.tw
受教了...我也遇到這個問題,感謝A.Lang、白馬兄跟David提出這個問題:P
目前我已經設定完畢,不過這邊沒辦法貼圖...所以沒辦法提供比較完整的圖解

On 9月4日, 下午9時58分, "A.Lang, Hsu - Blog.osslab.org.tw"
<alang....@gmail.com> wrote:
> Custom Context 模組其實很簡單使用,簡述使用重點如下:
>
> 1. 如白馬兄所言,做好那些規劃。
> 2. 為 4 個 Trunk 分別新增對應的 4 個 outbound route,dial pattern


> 可以重複,因為稍候可以限制各撥各的,例如
> to_001
> to_002
> to_003
> to_004

> 3. 分別新增四個 custom context,例如


> for_101
> for_102
> for_103
> for_104
> 每個的設定項目,特別在 outbound route 的部份,只予許指定的項目。
> 其他的內部功能 app-xxx 自行選擇

> 4. 最後,分別在 101-104 的分機設定的 custom context 選擇對應的項目。
>
> 2010/9/4 白馬 <weihung9...@gmail.com>

david

unread,
Sep 6, 2010, 1:30:10 PM9/6/10
to Taiwan Asterisk Users' Group - www.osslab.org.tw
感謝各位大大的指導,目前大致已設定完成,
只剩總機的部分(IVR)尚未設定,可能要先查一下資料,
如有不懂的地方,再請教大家,
謝謝!

> > > 機只能允許(allow)一個外線,才達到你的要求。- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

david

unread,
Sep 6, 2010, 3:30:39 PM9/6/10
to Taiwan Asterisk Users' Group - www.osslab.org.tw
天~~~阿~~~~
發現新問題了,分機不能互撥?

> > - 顯示被引用文字 -- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

StevenHsu

unread,
Sep 6, 2010, 4:46:16 PM9/6/10
to Taiwan Asterisk Users' Group - www.osslab.org.tw
設定一個Intra Company Route不知道有沒有用?

Optional: Selecting this option will treat this route as a intra-
company connection, preserving the internal Caller ID information and
not use the outbound CID of either the extension or trunk.:

On 9月7日, 上午3時30分, david <da...@ibank.com.tw> wrote:
> 天~~~阿~~~~
> 發現新問題了,分機不能互撥?
>

StevenHsu

unread,
Sep 6, 2010, 5:22:21 PM9/6/10
to Taiwan Asterisk Users' Group - www.osslab.org.tw
怪了..我應該是大致瞭解custom context的設定,我要的功能非常簡單

設了四個outbound routes和四個custom context
市話1、市話2、手機1、手機2

市話1線撥手機號碼走手機1線,室內長途走市話1,市話2線撥手機號碼走手機2線,室內長途走市話2,目前freePBX的outbound
routes的順序是手機1線前2線在後,我在custom context中有設定市話1線只走手機1線和市話1的outbound、市話2線只走手
機2線和市話2,但現在市話1、2線還是照原本outbound routes的順序都走手機1線出去,而不是照custom context所限定的
outbound route -_-

在extension也都有選定每個號碼所屬的custom context,what happend ? 我還漏掉了什麼嗎

On 9月4日, 下午9時58分, "A.Lang, Hsu - Blog.osslab.org.tw"


<alang....@gmail.com> wrote:
> Custom Context 模組其實很簡單使用,簡述使用重點如下:
>
> 1. 如白馬兄所言,做好那些規劃。

> 2. 為 4 個 Trunk 分別新增對應的 4 個 outbound route,dial pattern


> 可以重複,因為稍候可以限制各撥各的,例如
> to_001
> to_002
> to_003
> to_004

> 3. 分別新增四個 custom context,例如


> for_101
> for_102
> for_103
> for_104
> 每個的設定項目,特別在 outbound route 的部份,只予許指定的項目。
> 其他的內部功能 app-xxx 自行選擇

> 4. 最後,分別在 101-104 的分機設定的 custom context 選擇對應的項目。
>
> 2010/9/4 白馬 <weihung9...@gmail.com>

> > > > > > > 您已訂閱「Google 網上論壇」的「Taiwan Asterisk Users' Group -
> >www.osslab.org.tw
> > > > > > > 」群組,因此我們特別傳送這封郵件通知您。
> > > > > > > 如要在此群組張貼留言,請傳送電子郵件至 aster...@googlegroups.com

> > > > > > > 如要取消訂閱此群組,請傳送電子郵件至 asterisk-tw...@googlegroups.com<asterisk-tw%2Bunsubscribe@googlegr oups.com>
> > <asterisk-tw%2Bunsubscr...@googlegr-oups.com<asterisk-tw%252Bunsubscr...@googlegr-oups.com>
>
> > > > > <asterisk-tw%2Bunsubscr...@googlegr-oups.com<asterisk-tw%252Bunsubscr...@googlegr-oups.com>
> > <asterisk-tw%252Bunsubscr...@googlegr-oups.com<asterisk-tw%25252Bunsubscr...@googlegr-oups.com>


>
> > > > > > > 。
> > > > > > > 如需更多選項,請造訪此群組:
> >http://groups.google.com/group/asterisk-tw?hl=zh-TW。-<http://groups.google.com/group/asterisk-tw?hl=zh-TW%E3%80%82->
> > <http://groups.google.com/group/asterisk-tw?hl=zh-TW%E3%80%82->隱藏被引用文字 -
>
> > > > > > - 顯示被引用文字 -
>
> > > > > --
> > > > > 您已訂閱「Google 網上論壇」的「Taiwan Asterisk Users' Group -www.osslab.org.tw
> > > > > 」群組,因此我們特別傳送這封郵件通知您。
> > > > > 如要在此群組張貼留言,請傳送電子郵件至 aster...@googlegroups.com

> > > > > 如要取消訂閱此群組,請傳送電子郵件至 asterisk-tw...@googlegroups.com<asterisk-tw%2Bunsubscribe@googlegr oups.com>


> > <asterisk-tw%2Bunsubscr...@googlegr-oups.com<asterisk-tw%252Bunsubscr...@googlegr-oups.com>
>
> > > > > 。
> > > > > 如需更多選項,請造訪此群組:http://groups.google.com/group/asterisk-tw?hl=zh-TW。-<http://groups.google.com/group/asterisk-tw?hl=zh-TW%E3%80%82->隱藏被引用文字 -
>
> > > > - 顯示被引用文字 -
>
> > --
> > 您已訂閱「Google 網上論壇」的「Taiwan Asterisk Users' Group -www.osslab.org.tw
> > 」群組,因此我們特別傳送這封郵件通知您。
> > 如要在此群組張貼留言,請傳送電子郵件至 aster...@googlegroups.com

> > 如要取消訂閱此群組,請傳送電子郵件至 asterisk-tw...@googlegroups.com<asterisk-tw%2Bunsubscribe@googlegr oups.com>
> > 。
> > 如需更多選項,請造訪此群組:http://groups.google.com/group/asterisk-tw?hl=zh-TW

Reply all
Reply to author
Forward
0 new messages