[OpenSIPS-Users] Building Presences and PUA for OpenSIPS 1.6.1

Anca Vamanu anca at opensips.org
Fri Feb 5 15:33:50 CET 2010


Hi Steven,

The t_release() function was also removed. Now the release is done 
automatically when exiting the script.
I will remove it's usage in presence module documentation.

Thanks and regards,

-- 
Anca Vamanu
www.voice-system.ro


Steven C. Blair wrote:
> Anca,
>
>  Thanks for the pointer. We've been running a 1.3 release for so long I had trouble finding the relevant changelog. I do have one more item. When performing a syntax check on the config I get three errors. OpenSIPS 1.6.1 does not like the use of t_release() in a route block. This syntax worked in 1.3.x. It seems to be related to the presence module again but the README for presence says t_release is still supported. Can you provide any insight into what is happening?
>
>  The config section with the error is:
>
> route[2]
> {
>     xlog("L_INFO","Entering Route[2] $ci: $rm r-uri <$ru> from <$fu> to <$tu> [$si]\n");
>     if (!t_newtran()) {
>         sl_reply_error();
>         exit;
>     };
>
>     if (is_method("PUBLISH")) {
>         xlog("L_INFO","Route[2] $ci: Calling handle_publish\n");
>         if ($hdr(Sender)!= NULL)
>             handle_publish("$hdr(Sender)");
>         else
>             handle_publish("");
>         t_release();
>     } else if (is_method("SUBSCRIBE")) {
>         xlog("L_INFO","Route[2] $ci: Calling handle_subscribe\n");
>         handle_subscribe();
>         t_release();
>     } else if (is_method("NOTIFY")) {
>         if (bla_handle_notify()) {
>            xlog("L_INFO","Route[2] $ci: Call to bla_handle_notify OK\n");
>            t_reply("200", "OK");
>         } else {
>            xlog("L_INFO","Route[2] $ci: Call to bla_handle_notify FAILED\n");
>            t_reply("404", "Not found (BLA notify)");
>         }
>         t_release();
>     } else {
>         xlog("L_INFO","Leaving Route[2] $ci \n");
>     }
>     exit;
> }
>
> Thanks,Steve 
>
> -----Original Message-----
> From: users-bounces at lists.opensips.org [mailto:users-bounces at lists.opensips.org] On Behalf Of Anca Vamanu
> Sent: Friday, February 05, 2010 8:27 AM
> To: OpenSIPS users mailling list
> Subject: Re: [OpenSIPS-Users] Building Presences and PUA for OpenSIPS 1.6.1
>
> Hi Steven,
>
> Steven C. Blair wrote:
>   
>> One more thing. My config is quit old and still references uri_db. This module did not build and does not seem to exist in the source for 1.6.1-notls. I didn't see any mention of this in any changelog. Has this module been moved or changed into another?
>>     
>
>   
>>   
>>     
> Yes, the module as been removed because its functionality has been 
> merged with the uri module. It is mentioned here in the change log: 
> http://www.opensips.org/Main/Ver160#toc36.
>
> Regards,
>
>   



More information about the Users mailing list