Difference between revisions of "VoIP: OpenSIPS route ke arah Asterisk"

From OnnoWiki
Jump to navigation Jump to search
 
Line 55: Line 55:
 
==Lebih Dalam==
 
==Lebih Dalam==
  
 +
* [[VoIP: Trunk]]
 
* [[VoIP: Asterisk menerima Anonymous Call]]
 
* [[VoIP: Asterisk menerima Anonymous Call]]
 
* [[VoIP: Asterisk route ke arah IP PBX lain dengan kode area]]
 
* [[VoIP: Asterisk route ke arah IP PBX lain dengan kode area]]
 
* [[VoIP: Cara Mengkonfigurasi Trunk di Asterisk]]
 
* [[VoIP: Cara Mengkonfigurasi Trunk di Asterisk]]
 
* [[VoIP: Cara Mengkonfigurasi Dial Out Melalui Trunk di Asterisk]]
 
* [[VoIP: Cara Mengkonfigurasi Dial Out Melalui Trunk di Asterisk]]
 +
* [[VoIP: Asterisk forward call ke IP softswitch lain]]
 +
 +
===Asterisk Round Robin===
 +
 +
* [[VoIP: Astersk Dial Round Robin]]
 +
* [[VoIP: Asterisk pakai GotoIf]]
  
 
===OpenSIPS===
 
===OpenSIPS===
Line 64: Line 71:
 
* [[VoIP: OpenSIPS route ke arah Asterisk]]
 
* [[VoIP: OpenSIPS route ke arah Asterisk]]
 
* [[OpenSIPS: Rewrite URI]]
 
* [[OpenSIPS: Rewrite URI]]
 +
* [[OpenSIPS: Rewritehostport]]
  
 +
===OpenSIPS round robin===
  
 
+
* [[OpenSIPS: dispatcher]]
 
 
  
 
==Pranala Menarik==
 
==Pranala Menarik==

Latest revision as of 19:57, 25 February 2014

Sumber: http://www.opensips.org/Documentation/Tutorials-OpenSIPSAsteriskIntegration-1-8

Contoh hook ke Asterisk

	# ASTERISK HOOK - BEGIN
	# media service number? (digits starting with *)
	if ($rU=~"^\*[1-9]+") {
		# we do provide access to media services only to our
		# subscribers, who were previously authenticated 
		if (!is_from_local()) {
			send_reply("403","Forbidden access to media service");
			exit;
		}
		#identify the services and translate to Asterisk extensions
		if ($rU=="*1111") {
			# access to own voicemail IVR
			$ru = "sip:VM_pickup@ASTERISK_IP:ASTERISK_PORT";
		} else
		if ($rU=="*2111") {
			# access to the "say time" announcement 
			$ru = "sip:AN_time@ASTERISK_IP:ASTERISK_PORT";
		} else
		if ($rU=="*2112") {
			# access to the "say date" announcement 
			$ru = "sip:AN_date@ASTERISK_IP:ASTERISK_PORT";
		} else
		if ($rU=="*2113") {
			# access to the "echo" service
			$ru = "sip:AN_echo@ASTERISK_IP:ASTERISK_PORT";
		} else
		if ($rU=~"\*3[0-9]{3}") {
			# access to the conference service 
			# remove the "*3" prefix and place the "CR_" prefix
			strip(2);
			prefix("CR_");
			rewritehostport("ASTERISK_IP:ASTERISK_PORT");
		} else {
			# unknown service
			$ru = "sip:AN_notavailable@ASTERISK_IP:ASTERISK_PORT";
		}
		# after setting the proper RURI (to point to corresponding ASTERISK extension),
		# simply forward the call
		t_relay();
		exit;
	}
	# ASTERISK HOOK - END


Referensi


Lebih Dalam

Asterisk Round Robin

OpenSIPS

OpenSIPS round robin

Pranala Menarik

Latar Belakang

Untuk Pemula

Untuk Peneliti / Pencoba

Untuk Operator

Topik Lanjut

Buku Teknologi VoIP