ถามปัญหาการส่ง videocall ครับ

Asterisk Opensource IP Pbx

ถามปัญหาการส่ง videocall ครับ

โพสต์โดย seui » 18 มี.ค. 2011 12:22

คือผมใช้ trixbox เป็น server ครับ แล้วลง sipdroid ใน A99 ไว้ครับ และใน pc ก็ลง X-Lite4 ไว้ครับ

ภาพจาก A99 ส่งไปที่ X-lite4 ได้ครับ แต่ภาพจาก X-Lite4 ส่งมาที่ sipdroid ไม่ได้ครับ ใครพอจะทราบช่วยชี้แนะทีครับ ขอบคุณครับ :|
seui
Silver Member
 
โพสต์: 20
ลงทะเบียนเมื่อ: 19 ส.ค. 2010 15:55

Re: ถามปัญหาการส่ง videocall ครับ

โพสต์โดย Alpacino » 18 มี.ค. 2011 15:05

ปัญหานี้ผมว่า อาจจะเกิดจาก sip trunk นะครับ type อาจจะเป็นแบบ peer ยังงัยลองเปลี่ยนเป็น แบบ friend นะครับ

ยังงัยรอคุณหนุ่ยมา confirm อีกทีละกัน
ความรู้คือการแบ่งปัน
Alpacino
Bronz Member
 
โพสต์: 17
ลงทะเบียนเมื่อ: 20 ต.ค. 2010 09:06

Re: ถามปัญหาการส่ง videocall ครับ

โพสต์โดย seui » 18 มี.ค. 2011 15:35

Alpacino เขียน:ปัญหานี้ผมว่า อาจจะเกิดจาก sip trunk นะครับ type อาจจะเป็นแบบ peer ยังงัยลองเปลี่ยนเป็น แบบ friend นะครับ

ยังงัยรอคุณหนุ่ยมา confirm อีกทีละกัน


set เป็น friend แล้วครับ ยังไม่ขึ้น รู้เรื่องการส่ง RTSP รึเปล่าครับ (ขอบคุณที่มาตอบครับ)
seui
Silver Member
 
โพสต์: 20
ลงทะเบียนเมื่อ: 19 ส.ค. 2010 15:55

Re: ถามปัญหาการส่ง videocall ครับ

โพสต์โดย seui » 18 มี.ค. 2011 15:40

Alpacino เขียน:ปัญหานี้ผมว่า อาจจะเกิดจาก sip trunk นะครับ type อาจจะเป็นแบบ peer ยังงัยลองเปลี่ยนเป็น แบบ friend นะครับ

ยังงัยรอคุณหนุ่ยมา confirm อีกทีละกัน


set friend อันนี้ผม set ตรง Account ครับ ถูกรึเปล่าครับหรือต้องไป set ตรงไหนอีกครับ :|
seui
Silver Member
 
โพสต์: 20
ลงทะเบียนเมื่อ: 19 ส.ค. 2010 15:55

Re: ถามปัญหาการส่ง videocall ครับ

โพสต์โดย nuiz » 18 มี.ค. 2011 16:32

ไม่เคยใช้อ่ะครับ แต่

1. ทั้งหมดนี่ Trixbox, x-lite 4, sipdroid อยู่ใน lan เดียวกันป่าวครับ
2. เสียงเวอร์คป่าวครับ
3. x-lite 4 อาจจะต้องกด send video ด้วยครับภาพถึงจะไป
และสุดท้าย
4. ลองหา x-lite 4 มาอีกเครื่อง แล้วเทส video call ระหว่าง x-lite 4 ครับ ได้หรือไม่ได้

แล้วค่อยแก้ปัญหา step ต่อไปครับ

ผมก็ไม่ค่อยรู้นะครับ แต่ถ้าเจอปัญหาทีไรก็จะ step-by-step แบบนี้แหล่ะ :D
** หากมีปัญหากับอุปกรณ์ที่ซื้อมาเองหรือบริการที่ทำขึ้นมาเอง ให้โพสต์ถามในเว็บบอร์ดนี้นะครับ **
** งานเร่งด่วนติดต่อว่าจ้างที่เบอร์ 08-5161-9439 อีเมล์ iamaladin@gmail.com ไลน์ NuizVoip ครับ **
nuiz
Diamond Member
 
โพสต์: 6995
ลงทะเบียนเมื่อ: 24 มี.ค. 2010 09:33

Re: ถามปัญหาการส่ง videocall ครับ

โพสต์โดย seui » 18 มี.ค. 2011 19:31

nuiz เขียน:ไม่เคยใช้อ่ะครับ แต่

1. ทั้งหมดนี่ Trixbox, x-lite 4, sipdroid อยู่ใน lan เดียวกันป่าวครับ
2. เสียงเวอร์คป่าวครับ
3. x-lite 4 อาจจะต้องกด send video ด้วยครับภาพถึงจะไป
และสุดท้าย
4. ลองหา x-lite 4 มาอีกเครื่อง แล้วเทส video call ระหว่าง x-lite 4 ครับ ได้หรือไม่ได้

แล้วค่อยแก้ปัญหา step ต่อไปครับ

ผมก็ไม่ค่อยรู้นะครับ แต่ถ้าเจอปัญหาทีไรก็จะ step-by-step แบบนี้แหล่ะ :D


อยู่ใน Lan เดียวกันครับ ขอบคุณที่แนะนำครับ :)
seui
Silver Member
 
โพสต์: 20
ลงทะเบียนเมื่อ: 19 ส.ค. 2010 15:55

Re: ถามปัญหาการส่ง videocall ครับ

โพสต์โดย seui » 24 มี.ค. 2011 12:26

คือผมใช้ sipdroid กับ pbxes สามารถส่งได้ครับ แต่ใช้ trixbox sipdroid ส่งภาพไปหา x-lite ได้ครับ แต่จาก x-lite ส่งกลับมา sipdroid ไม่ได้ครับ ถ้าพอรู้รอบกวนด้วยนะครับ :D
seui
Silver Member
 
โพสต์: 20
ลงทะเบียนเมื่อ: 19 ส.ค. 2010 15:55

Re: ถามปัญหาการส่ง videocall ครับ

โพสต์โดย nuiz » 24 มี.ค. 2011 17:15

1. โทษครับ pbxes นี่คือไรครับ ใช่ trixbox หรือเปล่า พอดีไม่เคยใช้งาน
2. x-lite 4 ต้องกด send video ก่อนป่าวคับภาพถึงจะไป
3. คอนฟิกเบอร์ extension ของ sipdroid และของ x-lite ในไฟล์ sip.conf ไว้ว่ายังไงบ้างครับ
4. แล้ว asterisk messages ขณะที่โทรหากัน ขึ้นว่ายังไงบ้าง
** หากมีปัญหากับอุปกรณ์ที่ซื้อมาเองหรือบริการที่ทำขึ้นมาเอง ให้โพสต์ถามในเว็บบอร์ดนี้นะครับ **
** งานเร่งด่วนติดต่อว่าจ้างที่เบอร์ 08-5161-9439 อีเมล์ iamaladin@gmail.com ไลน์ NuizVoip ครับ **
nuiz
Diamond Member
 
โพสต์: 6995
ลงทะเบียนเมื่อ: 24 มี.ค. 2010 09:33

Re: ถามปัญหาการส่ง videocall ครับ

โพสต์โดย seui » 28 มี.ค. 2011 10:17

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

----------------------------------------------------------------------------------------------------------------------------

อันนี้ถูกรึเปล่าครับ ผิดพลาดยังไงแนะนำด้วยนะครับ :D
seui
Silver Member
 
โพสต์: 20
ลงทะเบียนเมื่อ: 19 ส.ค. 2010 15:55

Re: ถามปัญหาการส่ง videocall ครับ

โพสต์โดย nuiz » 28 มี.ค. 2011 10:47

เซ็ตด้วย trixbox หรือ freepbx หรือ elastix แต่ละเบอร์ extension ให้ใส่ตรงช่อง disallow ด้วยนะครับ
disallow = all

แล้วช่อง allow ให้เพิ่ม codec ของ voice ด้วย เช่น gsm, ulaw, alaw

สรุปว่าแต่ละ extension ให้ทำแบบนี้

disallow=all
allow=gsm,ulaw,alaw,h264,h263p,h263,h261

แล้วดูบทความนี้ครับ เผื่อจะช่วยได้ เพราะใน TrixBox ก็มี FreePBX เหมือนกันกับ Elastix

การเซ็ต Video บน Elastix 2.x
** หากมีปัญหากับอุปกรณ์ที่ซื้อมาเองหรือบริการที่ทำขึ้นมาเอง ให้โพสต์ถามในเว็บบอร์ดนี้นะครับ **
** งานเร่งด่วนติดต่อว่าจ้างที่เบอร์ 08-5161-9439 อีเมล์ iamaladin@gmail.com ไลน์ NuizVoip ครับ **
nuiz
Diamond Member
 
โพสต์: 6995
ลงทะเบียนเมื่อ: 24 มี.ค. 2010 09:33

ต่อไป

ย้อนกลับไปยัง Asterisk SIP Server

ผู้ใช้งานขณะนี้

่กำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และ บุคคลทั่วไป 1 ท่าน

cron