nuiz เขียน:1. โทษครับ pbxes นี่คือไรครับ ใช่ trixbox หรือเปล่า พอดีไม่เคยใช้งาน
2. x-lite 4 ต้องกด send video ก่อนป่าวคับภาพถึงจะไป
3. คอนฟิกเบอร์ extension ของ sipdroid และของ x-lite ในไฟล์ sip.conf ไว้ว่ายังไงบ้างครับ
4. แล้ว asterisk messages ขณะที่โทรหากัน ขึ้นว่ายังไงบ้าง
pbxes คือเว็บนี้ครับ
http://www.pbxes.org เป็น sipserver free ส่วน trixbox เราโหลดมาลง pc เราเองครับ
x-lite กดส่ง video แล้วครับ
---------------------------------------------------------------------------------------------------------------------------
sip account ครับ
[1001]
allow=h264
allow=h263p
allow=h263
allow=h261
deny=0.0.0.0/0.0.0.0
type=friend
secret=trix1234
qualify=yes
port=5060
pickupgroup=
permit=0.0.0.0/0.0.0.0
nat=yes
mailbox=1001@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/1001
context=from-internal
canreinvite=no
callgroup=
callerid=device <1001>
accountcode=
call-limit=50
[1002]
allow=h264
allow=h263p
allow=h263
allow=h261
deny=0.0.0.0/0.0.0.0
type=friend
secret=trix1234
qualify=yes
port=5060
pickupgroup=
permit=0.0.0.0/0.0.0.0
nat=yes
mailbox=1002@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/1002
context=from-internal
canreinvite=no
callgroup=
callerid=device <1002>
accountcode=
call-limit=50
[1003]
allow=h264
allow=h263p
allow=h263
allow=h261
deny=0.0.0.0/0.0.0.0
type=friend
secret=trix1234
qualify=yes
port=5060
pickupgroup=
permit=0.0.0.0/0.0.0.0
nat=yes
mailbox=1003@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/1003
context=from-internal
canreinvite=no
callgroup=
callerid=device <1003>
accountcode=
call-limit=50
[1004]
allow=h264
allow=h263p
allow=h263
allow=h261
deny=0.0.0.0/0.0.0.0
type=friend
secret=trix1234
qualify=yes
port=5060
pickupgroup=
permit=0.0.0.0/0.0.0.0
nat=yes
mailbox=1004@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/1004
context=from-internal
canreinvite=no
callgroup=
callerid=device <1004>
accountcode=
call-limit=50
[1005]
allow=h264
allow=h263p
allow=h263
allow=h261
deny=0.0.0.0/0.0.0.0
type=friend
secret=trix1234
qualify=yes
port=5060
pickupgroup=
permit=0.0.0.0/0.0.0.0
nat=yes
mailbox=1005@device
host=dynamic
dtmfmode=rfc2833
dial=SIP/1005
context=from-internal
canreinvite=no
callgroup=
callerid=device <1005>
accountcode=
call-limit=50
------------------------------------------------------------------------------------------------
อันนี้น่าจะเป็น sip.conf
[general]
allow=h264
allow=h263p
allow=h263
allow=h261
videosupport=yes
maxcallbitrate=384
; These files will all be included in the [general] context
;
#include sip_general_additional.conf
;sip_general_custom.conf is the proper file location for placing any sip general
;options that you might need set. For example: enable and force the sip jitterbuffer.
;If these settings are desired they should be set the sip_general_custom.conf file.
;
; jbenable=yes
; jbforce=yes
;
;It is also the proper place to add the lines needed for sip nat'ing when going
;through a firewall. For nat'ing you'd need to add the following lines:
; nat=yes , externip= , localhost= , and optionally fromdomain= .
;
#include sip_general_custom.conf
;sip_nat.conf is here for legacy support reasons and for those that upgrade
;from previous versions. If you have this file with lines in it please make
;sure they are not duplicated in sip_general_custom.conf, if so remove them
;from sip_nat.conf as sip_general_custom.conf will have precedence.
#include sip_nat.conf
;sip_registrations_custom.conf is for any customizations you might need to do to
;the automatically generated registrations that FreePBX makes.
;
#include sip_registrations_custom.conf
#include sip_registrations.conf
; These files should all be expected to come after the [general] context
;
#include sip_custom.conf
#include sip_additional.conf
;sip_custom_post.conf If you have extra parameters that are needed for a
;extension to work to for example, those go here. So you have extension
;1000 defined in your system you start by creating a line [1000](+) in this
;file. Then on the next line add the extra parameter that is needed.
;When the sip.conf is loaded it will append your additions to the end of
;that extension.
;
#include sip_custom_post.conf
-----------------------------------------------------------------------------------------------------------
extension
; FreePBX
; Copyright (C) 2004 Coalescent Systems Inc (Canada)
; Copyright (C) 2006 Why Pay More 4 Less Pty Ltd (Australia)
; Copyright (C) 2007 Astrogen LLC (USA)
; Released under the GNU GPL Licence version 2.
; dialparties.agi (
http://www.sprackett.com/asterisk/)
; Asterisk::AGI (
http://asterisk.gnuinter.net/)
; gsm (
http://www.ibiblio.org/pub/Linux/utils/ ... short.html)
; loligo sounds (
http://www.loligo.com/asterisk/sounds/)
; mpg123 (
http://voip-info.org/wiki-Asterisk+conf ... nhold.conf)
;************************** -WARNING- ****************************************
; *
; This include file is to be used with extreme caution. In almost all cases *
; any custom dialplan SHOULD be put in extensions_custom.conf which will *
; not hurt a FreePBX generated dialplan. In some very rare and custom *
; situations users may have a need to override what FreePBX automatically *
; generates. If so anything in this file will do that. If you come up with a *
; situation where you need to modify the existing dialplan or macro, please *
; put it here and also notify the FreePBX development team so they can take it *
; into account in the future. *
; *
#include extensions_override_freepbx.conf
; *
;************************** -WARNING- ****************************************
; include extension contexts generated from AMP
#include extensions_additional.conf
; Customizations to this dialplan should be made in extensions_custom.conf
; See extensions_custom.conf.sample for an example.
; If you need to use [macro-dialout-trunk-predial-hook], [ext-did-custom], or
; [from-internal-custom] for example, place these in this file or they will get overwritten.
;
#include extensions_custom.conf
[from-trunk] ; just an alias since VoIP shouldn't be called PSTN
include => from-pstn
[from-pstn]
include => from-pstn-custom ; create this context in extensions_custom.conf to include customizations
include => ext-did
include => ext-did-post-custom
include => from-did-direct ; MODIFICATION (PL) for findmefollow if enabled, should be before ext-local
include => ext-did-catchall ; THIS MUST COME AFTER ext-did
exten => fax,1,Goto(ext-fax,in_fax,1)
;-------------------------------------------------------------------------------
; from-pstn-e164-us:
;
; The context is designed for providers who send calls in e164 format and is
; biased towards NPA calls, callerid and dialing rules. It will do the following:
;
; DIDs in an NPA e164 format of +1NXXNXXXXXX will be converted to 10 digit DIDs
;
; DIDs in any other format will be delivered as they are, including e164 non NPA
; DIDs which means they will need the full format including the + in the inbound
; route.
;
; CallerID(number) presented in e164 NPA format will be trimmed to a 10 digit CID
;
; CallerID(number) presented in e164 non-NPA (country code other than 1) will be
; reformated from: +<CountryCode><Number> to 011<CountryCode><Number>
;
[from-pstn-e164-us]
exten => _+1NXXNXXXXXX/_+1NXXNXXXXXX,1,Set(CALLERID(number)=${CALLERID(number):2})
exten => _+1NXXNXXXXXX/_NXXNXXXXXX,2,Goto(from-pstn,${EXTEN:2},1)
exten => _+1NXXNXXXXXX/_+X.,1,Set(CALLERID(number)=011${CALLERID(number):1})
exten => _+1NXXNXXXXXX/_011X.,n,Goto(from-pstn,${EXTEN:2},1)
exten => _+1NXXNXXXXXX,1,Goto(from-pstn,${EXTEN:2},1)
exten => _[0-9+]./_+1NXXNXXXXXX,1,Set(CALLERID(number)=${CALLERID(number):2})
exten => _[0-9+]./_NXXNXXXXXX,n,Goto(from-pstn,${EXTEN},1)
exten => _[0-9+]./_+X.,1,Set(CALLERID(number)=011${CALLERID(number):1})
exten => _[0-9+]./_011X.,n,Goto(from-pstn,${EXTEN},1)
exten => _[0-9+].,1,Goto(from-pstn,${EXTEN},1)
exten => s/_+1NXXNXXXXXX,1,Set(CALLERID(number)=${CALLERID(number):2})
exten => s/_NXXNXXXXXX,n,Goto(from-pstn,${EXTEN},1)
exten => s/_+X.,1,Set(CALLERID(number)=011${CALLERID(number):1})
exten => s/_011X.,n,Goto(from-pstn,${EXTEN},1)
exten => s,1,Goto(from-pstn,${EXTEN},1)
;-------------------------------------------------------------------------------
;-------------------------------------------------------------------------------
; from-pstn-to-did
;
; The context is designed for providers who send the DID in the TO: SIP header
; only. The format of this header is:
;
; To: <sip:2125551212@172.31.74.25>
;
; So the DID must be extracted between the sip: and the @, which this does
;
[from-pstn-toheader]
exten => s,1,Goto(from-pstn,${CUT(CUT(SIP_HEADER(To),@,1),:,2)},1)
;-------------------------------------------------------------------------------
; MODIFICATION (PL)
;
; Required to assure that direct dids go to personal ring group before local extension.
; This could be auto-generated however I it is preferred to be put here and hard coded
; so that it can be modified if ext-local should take precedence in certain situations.
; will have to decide what to do later.
;
[from-did-direct]
include => ext-findmefollow
include => ext-local
----------------------------------------------------------------------------------------------------------------------------
อันนี้ถูกรึเปล่าครับ ผิดพลาดยังไงแนะนำด้วยนะครับ