[Spce-user] CE 2.6: Call-forwarding to voicebox via VSC

Klaus Peter v. Friedeburg friedeburg at aco.de
Thu Nov 1 08:52:13 EDT 2012


@all

Voiceboxnumber = 2000
when creating a CF to voicebox by dialing  the vsc *72*2000 sems will insert a CF to SIP-URI "sip:+2000 at ..." to the CF_SETS
In standard  installation this does not work. So that I have build the following patch for kamailio-proxy script:

In route[ROUTE_FIND_CALLEE]
Edit the lines from line 2532 for this:
###########################
#!ifdef ENABLE_VOICEMAIL
	#else if(uri =~ "^sip:voicebox@" || uri =~ "^sip:[% sems.vsc.voicemail_number %]@")
	else if( (uri =~ "^sip:voicebox@" && $var(cf_loop) != 1) || (uri =~ "^sip:[% sems.vsc.voicemail_number %]@" && $var(cf_loop) != 1) )
	{
		$rU = $avp(s:caller_cli_netprov);
		$rd = 'voicebox.local';
		prefix("abc");
		route(ROUTE_VOICEBOX);
		exit;
	}
	#else if(uri =~ "^sip:voiceboxpass@")
	else if(( uri =~ "^sip:[% sems.vsc.voicemail_number %]@" && $var(cf_loop) == 1) )
	{
		$rd = 'voicebox.local';
		xlog("L_INFO", "Voiceboxcall via CF to sip-URI ([% sems.vsc.voicemail_number %])\n");
		if ( $(tU{s.substr,0,1}) == "+" )
		{
			# strip leading +
			$rU = $(tU{s.substr,1,0});
		} else {
			$rU = $tU;
		}
		prefix("vmu");
		#prefix("bcd");
		route(ROUTE_VOICEBOX);
		exit;
	}
#!endif
###########################
"voicebixpass" is not nessesary in the kamailio-script. When asterisk-voicemailsystem aswer the call the user can press "*" twice an then the system switch to the maco "voicemailowner_pass" and ask for the PIN.

Regrads

Klaus Peter


More information about the Spce-user mailing list