[Users] speeddial bug?

Frogger froggerandbongo at yahoo.com
Thu Apr 27 06:58:01 CEST 2006


Bogdan,

Thanks for the guidance.

Indeed, the following works:


# check one or two digit speed_dial attempts
if(uri=~"sip:[0-9]{2}@.*") || (uri=~"sip:[1-9]@.*") {

   sd_lookup("speed_dial");
             #  ^ must match the table in the db

   # rewrite or relay code here

};


Works great.  Thanks again.

F




--- Bogdan-Andrei Iancu <bogdan at voice-system.ro>
wrote:

> Hi,
> 
> by default, the "speed_dial" table is created, so
> you should use
>     sd_lookup("speed_dial");
> 
> to debug your configuration, enable logging on mysql
> server and see what 
> are the related mysql queries performed by
> openser....most surely you 
> have setup bug.
> 
> regards,
> bogdan
> 
> 
> Frogger wrote:
> 
> >I have been unable to use the speeddial module.
> >
> >There is some interesting behavior.  Maybe a bug?
> >
> >When using:
> >
> >sd_lookup("speeddial");
> >
> >The log shows an entry:  "openser.speeddial" does
> not
> >exist.
> >
> >openser db shows the table name as "speed_dial".
> >
> >Even when replacing names and using different
> >combinations I cannot get speeddial to work.
> >
> >Ethereal will show multiple invites like openser is
> >trying to find the record but it cannot.
> >
> >Any thoughts?
> >
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> >http://mail.yahoo.com 
> >
> >_______________________________________________
> >Users mailing list
> >Users at openser.org
> >http://openser.org/cgi-bin/mailman/listinfo/users
> >
> >  
> >
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the Users mailing list