ผลต่างระหว่างรุ่นของ "Session Initiation Protocol"
เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
ไม่มีความย่อการแก้ไข |
ไม่มีความย่อการแก้ไข |
||
บรรทัด 112:
a=direction:both
== ตัวอย่างภาษา Perl ==▼
use Net::SIP;▼
#create new agent▼
my $ua = Net::SIP::Simple->new(▼
outgoing_proxy => '192.168.0.10',▼
registrar => '192.168.0.10',▼
domain => 'example.com',▼
from => 'me',▼
auth => [ 'me','secret' ], );▼
#Register agent▼
$ua->register;▼
#Invite other party, send anncouncement once connected▼
$ua->invite( 'you',▼
init_media => $ua->rtp( 'send_recv', 'announcement.pcmu-8000' ),▼
asymetric_rtp => 1, );▼
#Mainloop▼
$ua->loop;▼
เส้น 308 ⟶ 290:
| 606 || Not acceptable. ||
|}
▲== ตัวอย่างภาษา Perl ==
▲ use Net::SIP;
▲ #create new agent
▲ my $ua = Net::SIP::Simple->new(
▲ outgoing_proxy => '192.168.0.10',
▲ registrar => '192.168.0.10',
▲ domain => 'example.com',
▲ from => 'me',
▲ auth => [ 'me','secret' ], );
▲ #Register agent
▲ $ua->register;
▲ #Invite other party, send anncouncement once connected
▲ $ua->invite( 'you',
▲ init_media => $ua->rtp( 'send_recv', 'announcement.pcmu-8000' ),
▲ asymetric_rtp => 1, );
▲ #Mainloop
▲ $ua->loop;
{{โครง}}
|