<DIV>
<DIV>Hello,</DIV>
<DIV>I added custom module (mailbox.so)&nbsp;to SER to add some DB queries (just like in DB example). The module exports the function mbx_lookupmailbox. The function is available for other modules; unfortunately I obtain the following when trying to call it from ser.cfg:</DIV>
<DIV>&nbsp;</DIV>
<DIV><EM><STRONG>%ser -c<BR>%0(20596) parse error (137,24-25): unknown command, missing loadmodule?</STRONG></EM></DIV>
<DIV>&nbsp;</DIV>
<DIV>(Though the module is loaded, the function is registered and found by other functions). Have I missed something?</DIV>
<DIV>Thanks in advance,</DIV>
<DIV>Tina Kramarenko</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here is my configuration file:</DIV>
<DIV>=============================================================</DIV>
<DIV>&nbsp;</DIV>
<DIV># ----------- global configuration parameters ------------------------</DIV>
<DIV>#debug=3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # debug level (cmd line: -dddddddddd)<BR>#fork=yes<BR>#log_stderror=no&nbsp;# (cmd line: -E)</DIV>
<DIV>/* Uncomment these lines to enter debugging mode <BR>debug=7<BR>fork=no<BR>log_stderror=yes<BR>*/</DIV>
<DIV>check_via=no&nbsp;# (cmd. line: -v)<BR>dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: -r)<BR>rev_dns=no&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; # (cmd. line: -R)<BR>#port=5060<BR>#children=4<BR>fifo="/tmp/ser_fifo"</DIV>
<DIV># ------------------ module loading ----------------------------------</DIV>
<DIV># Uncomment this if you want to use SQL database<BR>loadmodule "/usr/local/lib/ser/modules/mysql.so"<BR><STRONG>loadmodule "/usr/local/lib/ser/modules/mailbox.so"</STRONG></DIV>
<DIV>loadmodule "/usr/local/lib/ser/modules/sl.so"<BR>loadmodule "/usr/local/lib/ser/modules/tm.so"<BR>loadmodule "/usr/local/lib/ser/modules/rr.so"<BR>loadmodule "/usr/local/lib/ser/modules/maxfwd.so"<BR>loadmodule "/usr/local/lib/ser/modules/usrloc.so"<BR>loadmodule "/usr/local/lib/ser/modules/registrar.so"</DIV>
<DIV># Uncomment this if you want digest authentication<BR>#mysql.so must be loaded !<BR>loadmodule "/usr/local/lib/ser/modules/auth.so"<BR>loadmodule "/usr/local/lib/ser/modules/auth_db.so"</DIV>
<DIV># ----------------- setting module-specific parameters ---------------</DIV>
<DIV># -- usrloc params --</DIV>
<DIV>#modparam("usrloc", "db_mode",&nbsp;&nbsp; 0)</DIV>
<DIV># Uncomment this if you want to use SQL database <BR># for persistent storage and comment the previous line<BR>modparam("usrloc", "db_mode", 2)</DIV>
<DIV># -- auth params --<BR># Uncomment if you are using auth module<BR>#<BR>modparam("auth_db", "calculate_ha1", yes)<BR>#<BR># If you set "calculate_ha1" parameter to yes (which true in this config), <BR># uncomment also the following parameter)<BR>#<BR>modparam("auth_db", "password_column", "password")</DIV>
<DIV># -- rr params --<BR># add value to ;lr param to make some broken UAs happy<BR>modparam("rr", "enable_full_lr", 1)</DIV>
<DIV>modparam("tm", "fr_inv_timer", 15 )<BR>modparam("tm", "fr_timer", 10 )</DIV>
<DIV><BR># -------------------------&nbsp; request routing logic -------------------</DIV>
<DIV># main routing logic</DIV>
<DIV>route{</DIV>
<DIV>&nbsp;# initial sanity checks -- messages with<BR>&nbsp;# max_forwards==0, or excessively long requests<BR>&nbsp;if (!mf_process_maxfwd_header("10")) {<BR>&nbsp;&nbsp;sl_send_reply("483","Too Many Hops");<BR>&nbsp;&nbsp;break;<BR>&nbsp;};<BR>&nbsp;if ( msg:len &gt; max_len ) {<BR>&nbsp;&nbsp;sl_send_reply("513", "Message too big");<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</DIV>
<DIV>&nbsp;# we record-route all messages -- to make sure that<BR>&nbsp;# subsequent messages will go through our proxy; that's<BR>&nbsp;# particularly good if upstream and downstream entities<BR>&nbsp;# use different transport protocol<BR>&nbsp;record_route();&nbsp;<BR>&nbsp;# loose-route processing<BR>&nbsp;if (loose_route()) {<BR>&nbsp;&nbsp;t_relay();<BR>&nbsp;&nbsp;break;<BR>&nbsp;};</DIV>
<DIV>&nbsp;# if the request is for other domain use UsrLoc<BR>&nbsp;# (in case, it does not work, use the following command<BR>&nbsp;# with proper names and addresses in it)<BR>&nbsp;if (uri==myself) {</DIV>
<DIV>&nbsp;&nbsp;if (method=="REGISTER") {</DIV>
<DIV># Uncomment this if you want to use digest authentication<BR>#<BR>&nbsp;&nbsp;&nbsp;if (!www_authorize("localhost", "subscriber")) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;www_challenge("localhost", "0");<BR>&nbsp;&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;&nbsp;};<BR>&nbsp;&nbsp;&nbsp;save("location");<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;};</DIV>
<DIV>&nbsp;&nbsp;# native SIP destinations are handled using our USRLOC DB<BR>&nbsp;&nbsp;if (!lookup("location")) {<BR>&nbsp;&nbsp;&nbsp;sl_send_reply("404", "Not Found");<BR>&nbsp;&nbsp;&nbsp;break;<BR>&nbsp;&nbsp;};<BR>&nbsp;&nbsp;<BR># if we do not get a positive reply, continue at reply_route[1]</DIV>
<DIV>&nbsp;# forward the request to all destinations in destination set now <BR>&nbsp;t_on_failure("1"); <BR>&nbsp;t_relay();<BR>&nbsp;};&nbsp;<BR>}</DIV>
<DIV><BR>failure_route[1]{<BR>&nbsp;log(1, "failure_route[1]\n");<BR>&nbsp;&nbsp;&nbsp; if (t_check_status("408|486|487")){<BR>&nbsp;&nbsp;&nbsp; &nbsp;log(1, "t_check_status(408|486|487)\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<STRONG>mbx_lookupmailbox();</STRONG></DIV>
<DIV>#here will be some processing<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_relay();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; break;<BR>&nbsp;&nbsp;&nbsp; }<BR>}</DIV>
<DIV>&nbsp;</DIV></DIV><p>
                <hr size=1>Do you Yahoo!?<br> 
Yahoo! Mail - Find what you need with new enhanced search. <a href="http://us.rd.yahoo.com/evt=29917/*http://info.mail.yahoo.com/mail_250">Learn more.</a>