TOT netcall Webboard - ยินดีต้อนรับสู่กระดานข่าวของบริการโทรศัพท์ผ่านอินเทอร์เน็ต TOT netcall
22 May 2012, 06:30:45 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: TOT netcall โปรโมชั่น Postpaid เหมาะสำหรับผู้ใช้บริการที่ต้องการค่าโทรราคาถูกพิเศษ สามารถโทรไปยังเลขหมายต่าง ๆ ภายในประเทศหรือโทรไปยังเลขหมายต่างประเทศได้ ซึ่งโปรโมชั่น Postpaid นี้มีหลายอัตราให้เลือกตามความต้องการของผู้ใช้บริการแต่ละราย ซึ่งจะมีอุปกรณ์แถมในแต่ละโปรโมชั่น  สมัครใช้ได้ที่ ศูนย์บริการ ทีโอที ทั่วประเทศ
 
   Home   Help Search Recent Topics Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: การใช้งาน TOT Net Call + Asterisk + Meetme มีใครช่วยผมได้บ้างครับ  (Read 1276 times)
0 Members and 1 Guest are viewing this topic.
nakorn123
Newbie
*
Posts: 3


View Profile
« on: 13 November 2010, 22:39:34 »

เรียนท่านผู้รู้ทั้งหลายครับ  Cheesy

ขณะนี้ผมสามารถต่อ asterisk ของผมเข้ากับ TOT net call ได้แล้วดังนี้ (ผมมี 2 account นะครับ เพราะต้องการโทรออกทีละ 2 สายพร้อมๆกัน)

Code:
trixbox1*CLI> sip show registry
Host                            Username       Refresh State                Reg.Time     
203.113.125.82:5060             0681121526          45 Registered           Sat, 13 Nov 2010 22:28:41
203.113.125.82:5060             0681121495          45 Registered           Sat, 13 Nov 2010 22:28:41
2 SIP registrations.

ตอนนี้ผมกำลังให้ Asterisk โทรออกไปหาเบอนอกที่เป็นมือถือ ผ่านทาง TOT Net call แล้วให้ดึงเข้า Meetme โดยใช้ Asterisk Manager Interface (AMI) ดังนี้ (โค๊ดเป็น PHP นะครับ แต่ตัดมาเฉพาะส่วนที่เกี่ยวข้อง)

Code:
$asterisk_ip = "127.0.0.1";
$timeout = 30000;

$socket = fsockopen($asterisk_ip,"5038", $errno, $errstr, $timeout);
fputs($socket, "Action: Login
");
fputs($socket, "UserName: root
");
fputs($socket, "Secret: 123456

");

fputs($socket, "Action: Originate
" );
fputs($socket, "Channel: SIP/0868996243@totnetcall
" );
fputs($socket, "Exten: 9000
" );
fputs($socket, "Context: ext-meetme
" );
fputs($socket, "Priority: 1
" );
fputs($socket, "Timeout: 100000

" );

ตรงนี้เป็น Context ของ TOT Net call ครับ

Code:
[totnetcall]
username=0681121495
type=friend
fromuser=0681121495
realm=10.10.2.50
secret=รหัสผ่านของผม
host=203.113.125.82
outboundproxy=203.113.125.82
fromdomain=203.113.125.82
insecure=very
canreinvite=no
dtmfmode=rfc2833
call-limit=1
allow=g729
allow=alaw
allow=ulaw
nat=yes

ซึ่งเมื่อเรียกใช้งานโค๊ดนี้ ทำให้ Asterisk โทรออกไปที่เบอร์ 0868996243 ได้ แต่พอกดรับสายแล้ว มันก็ตัดสายทันที ข้างล่างนี้ เป็น log จาก CLI นะครับ

Code:
  == Manager 'root' logged on from 127.0.0.1
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP TOS bits 136
  == Using SIP VRTP CoS mark 6
    -- Executing [9000@ext-meetme:1] Macro("SIP/totnetcall-00000010", "user-callerid,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/totnetcall-00000010", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:2] GotoIf("SIP/totnetcall-00000010", "0?report") in new stack
    -- Executing [s@macro-user-callerid:3] ExecIf("SIP/totnetcall-00000010", "1?Set(REALCALLERIDNUM=)") in new stack
    -- Executing [s@macro-user-callerid:4] Set("SIP/totnetcall-00000010", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/totnetcall-00000010", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/totnetcall-00000010", "1?report") in new stack
    -- Goto (macro-user-callerid,s,10)
    -- Executing [s@macro-user-callerid:10] GotoIf("SIP/totnetcall-00000010", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:11] Set("SIP/totnetcall-00000010", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:12] GotoIf("SIP/totnetcall-00000010", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,19)
    -- Executing [s@macro-user-callerid:19] NoOp("SIP/totnetcall-00000010", "Using CallerID "" <>") in new stack
    -- Executing [9000@ext-meetme:2] Set("SIP/totnetcall-00000010", "MEETME_ROOMNUM=9000") in new stack
    -- Executing [9000@ext-meetme:3] GotoIf("SIP/totnetcall-00000010", "0?USER") in new stack
    -- Executing [9000@ext-meetme:4] Answer("SIP/totnetcall-00000010", "") in new stack
    -- Executing [9000@ext-meetme:5] Wait("SIP/totnetcall-00000010", "1") in new stack
  == Manager 'root' logged off from 127.0.0.1
    -- Executing [9000@ext-meetme:6] Set("SIP/totnetcall-00000010", "MEETME_OPTS=M") in new stack
    -- Executing [9000@ext-meetme:7] Goto("SIP/totnetcall-00000010", "STARTMEETME,1") in new stack
    -- Goto (ext-meetme,STARTMEETME,1)
    -- Executing [STARTMEETME@ext-meetme:1] MeetMe("SIP/totnetcall-00000010", "9000,M,") in new stack
  == Parsing '/etc/asterisk/meetme.conf':   == Found
  == Parsing '/etc/asterisk/meetme_additional.conf':   == Found
    -- Created MeetMe conference 1023 for conference '9000'
    -- Hungup 'DAHDI/pseudo-1502346693'
  == Spawn extension (ext-meetme, STARTMEETME, 1) exited non-zero on 'SIP/totnetcall-00000010'
    -- Executing [h@ext-meetme:1] Hangup("SIP/totnetcall-00000010", "") in new stack
  == Spawn extension (ext-meetme, h, 1) exited non-zero on 'SIP/totnetcall-00000010'
trixbox1*CLI>

มีใครสามารถช่วยแนะนำได้ไหมครับ ว่าทำไมสายถึงตัดไป เมื่อจะเข้าห้อง MeetMe



Post Merge: 13 November 2010, 22:43:07
เพิ่มเติมนะครับ ผมสามารถโทรออกจาก Softphone ซึ่ง register เป็น user ใน Asterisk ของผม ไปสู่เบอมือถือข้างนอกได้แล้ว โดยกดตัด 1 หรือ 2 ตามด้วยเบอมือถือ เช่น 10868996243 โดยสายไม่ตัดเมื่อมือถือรับสายครับ แต่สำหรับ Meetme ยังทำไม่ได้ครับ มันตัดสายตลอด

Quote
[mytot]
exten => _1.,1,Dial(SIP/${EXTEN:1}@totnetcall,45,r)

[mytot2]
exten => _2.,1,Dial(SIP/${EXTEN:1}@totnetcall2,45,r)
« Last Edit: 13 November 2010, 22:43:07 by nakorn123 » Logged
DAVE :)
Nice to meet you.
Administrator
Hero Member
*****
Posts: 1220


VoIP is my life :P


View Profile WWW
« Reply #1 on: 14 November 2010, 08:54:30 »

สวัสดีครับ

ลองตรวจสอบว่า SIP signaling ที่ออกมาเมื่อใช้กับระบบ Meetme มีอะไรที่ต่างจากการใช้งานแบบปกติบ้างน่ะครับ

อาจมีบางพารามิเตอร์ที่ไม่เหมือนกันน่ะครับ

ขอบคุณครับ
Logged

TOT netcall Support Center
E-mail: support@totnetcall.com
Twitter: http://twitter.com/totnetcall
Facebook: http://www.facebook.com/totnetcall
============================
TOT Public Company Limited, Thailand (www.tot.co.th)
nakorn123
Newbie
*
Posts: 3


View Profile
« Reply #2 on: 14 November 2010, 10:54:18 »

สวัสดีครับ คุณ DAVE

ผมยังค่อนข้างใหม่กับ Asterisk น่ะครับ  Sad คืออยากให้คุณ Dave ช่วยบอกผมที ว่าวิธีการดู parameter นั้น หมายถึงดูที่ไหน อย่างไรครับผม

Post Merge: 15 November 2010, 21:44:57
ขอเปลี่ยนคำถามให้ง่ายขึ้นดีกว่าครับ ในที่นี้ มีใครเคยใช้ TOT Net call ร่วมกับ MeetMe ใน Asterisk ได้บ้างไหมครับ ถ้ามี อยากให้ช่วยแนะนำผมทีครับ

ขอบคุณล่วงหน้าครับผม  Wink

Post Merge: 15 November 2010, 22:25:32
ผมว่าผมเจอต้นตอของปัญหาแล้วละครับ มันเกิดจากเรื่อง codec ของ MeetMe น่ะครับ ซึ่งผมยังหาทางแก้ไขไม่ได้ ข้างล่างนี้เป็น Log ที่ผมเพิ่งได้มาน่ะครับ

Quote
[Nov 15 22:17:19] VERBOSE[2939] logger.c:     -- Executing [769000@myroom:1] Answer("SIP/totnetcall-00000007", "") in new stack
[Nov 15 22:17:19] VERBOSE[2939] logger.c:     -- Executing [769000@myroom:2] Set("SIP/totnetcall-00000007", "CONFNO=769000") in new stack
[Nov 15 22:17:19] VERBOSE[2939] logger.c:     -- Executing [769000@myroom:3] MeetMe("SIP/totnetcall-00000007", "769000,pdMX") in new stack
[Nov 15 22:17:19] VERBOSE[2939] logger.c:     -- Created MeetMe conference 1023 for conference '769000'
[Nov 15 22:17:19] WARNING[2939] channel.c: Unable to find a codec translation path from 0x100 (g729) to 0x2 (gsm)
[Nov 15 22:17:19] WARNING[2939] file.c: Unable to open conf-onlyperson (format 0x100 (g729)): No such file or directory
[Nov 15 22:17:19] WARNING[2939] channel.c: Unable to find a codec translation path from 0x100 (g729) to 0x40 (slin)
[Nov 15 22:17:19] WARNING[2939] app_meetme.c: Unable to set 'SIP/totnetcall-00000007' to write linear mode
[Nov 15 22:17:19] VERBOSE[2939] logger.c:     -- Hungup 'DAHDI/pseudo-937853399'
[Nov 15 22:17:19] VERBOSE[2939] logger.c:   == Spawn extension (myroom, 769000, 3) exited non-zero on 'SIP/totnetcall-00000007'
[Nov 15 22:17:19] VERBOSE[2938] logger.c:   == Manager 'root' logged off from 127.0.0.1

Post Merge: 15 November 2010, 23:46:03
เข้ามา update ครับ ในที่สุด ผมก็สามารถแก้ปัญหาได้แล้วครับ ผมทำการติดตั้ง G.729 ลงใน Trixbox Server ของผม ก็สามารถใช้ได้ทันทีครับ

อย่างไรก็ตาม ขอแชร์ความรู้ไว้ตรงนี้ละกันครับผม  Wink
« Last Edit: 15 November 2010, 23:46:03 by nakorn123 » Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Locations of visitors to this page
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!