[OpenSIPS-Users] Virtual Service Activation Codes

Bogdan-Andrei Iancu bogdan at voice-system.ro
Wed Dec 9 10:22:41 CET 2009


Hi Indiver,

your code is not implementing DND, but simply redirects *78 to a voice 
announcement.  What you have to do is to actually implement the DND 
service first (maybe using an ACL -> if a user receives a call and the 
user had the DND ACL on, reject the call) and then to control it 
(enable/disable) via the *78 code.

Regards,
Bogdan

Indiver wrote:
> Hi Bodgan,
>
> For Virtual service activation codes, as per my observation when ever user
> dials *78 u just redirecting to asterisk as follows:
> 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=="*78") {
> 			# access to own voicemail IVR
> 			seturi("sip:AN_fwdok at ASTERISK_IP:ASTERISK_PORT");
>                          t_relay();
> 		        exit;
>             and when the user dialing *79 it was just rewriting the uri as
> follows
>                         
>            seturi("sip:AN_fwdko at ASTERISK_IP:ASTERISK_PORT");
>            t_relay();
>            exit;
>
> Is my assumption is right?Thanks in advance
>
>
>
>
> Bogdan-Andrei Iancu wrote:
>   
>> Hi Indiver,
>>
>> the Activation Codes service is pure scripting - it is not a module in 
>> opensips. Most of the VoIP features you can do with OpenSIPS are not 
>> necessarily provided by module (directly by C code), but rather via 
>> scripting logic (combination of different ops in the opensips script).
>>
>> Regards,
>> Bogdan
>>
>> Indiver wrote:
>>     
>>> Hi Every One,
>>>
>>> I registered in opensips voip services site. I found a tab regarding
>>> dialing
>>> plan. such as *78 for enable dnd,*72 for setting to permanent
>>> redirect,*50
>>> for voicemail inbox. I found no documentation in opensips regarding these
>>> services. Is there a way for acheiving this thru opensips. Thanks in
>>> advance.
>>>   
>>>       
>> -- 
>> Bogdan-Andrei Iancu
>> www.voice-system.ro
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>>     
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list