[Serusers] Speeddial

William Towfiq william at intelejet.com
Sun Sep 18 03:20:15 CEST 2005


Hi Aisling,
Since you are doing a one digit speeddial make sure you have

if ((method==”INVITE”) && (uri=~”^sip:[0-9]@.*”)){

sd_lookup(“speed dial”);

};
rather than

if ((method==”INVITE”) && (uri=~”^sip:[0-9]{2}@.*”)){

sd_lookup(“speed dial”);

};

so that the uri matches and the lookup is done properly.

William Towfiq

Aisling O'Driscoll wrote:

>Thanks Ramona.
>  
>
>>---- Original Message ----
>>From: ramona at voice-system.ro
>>To: ashling.odriscoll at cit.ie
>>Subject: Re: [Serusers] Speeddial
>>Date: Thu, 15 Sep 2005 20:10:56 +0200
>>
>>    
>>
>>>Aisling wrote:
>>>
>>>      
>>>
>>>>Hello.
>>>>
>>>>I would really appreciate if someone could show me an example of
>>>>        
>>>>
>>how a 
>>    
>>
>>>>speed-dialing entry should be added to the ser mysql database?
>>>>
>>>>E.g. If user 2092 dials 3 it rings user 3500.
>>>>
>>>>I tried : insert into usr_preferences (username, domain,
>>>>        
>>>>
>>sd_username, 
>>    
>>
>>>>sd_domain, new_uri) values (“2092”, “x.x.x.x”, “3500”, “x.x.x.x”,
>>>>        
>>>>
>>“3”)
>>    
>>
>>>Hello Aisling,
>>>
>>>the entry should be (“2092”, “x.x.x.x”, “3”, “x.x.x.x”,
>>>      
>>>
>>“sip:3500 at x.x.x.x”).
>>    
>>
>>>Regards,
>>>Ramona
>>>
>>>-------------------Legal 
>>>      
>>>
>>Disclaimer---------------------------------------
>>    
>>
>>>The above electronic mail transmission is confidential and intended
>>>      
>>>
>>only for the person to whom it is addressed. Its contents may be
>>protected by legal and/or professional privilege. Should it be
>>received by you in error please contact the sender at the above
>>quoted email address. Any unauthorised form of reproduction of this
>>message is strictly prohibited. The Institute does not guarantee the
>>security of any information electronically transmitted and is not
>>liable if the information contained in this communication is not a
>>proper and complete record of the message as transmitted by the
>>sender nor for any delay in its receipt.
>>    
>>
>>>      
>>>
>
>
>
>-------------------Legal  Disclaimer---------------------------------------
>
>The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.
>
>_______________________________________________
>Serusers mailing list
>serusers at lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
>  
>




More information about the sr-users mailing list