Re: [OpenSIPS-Devel] Is it possible to return 0 from an exported function?
On Jan 11, 2013, at 8:25 AM, Peter Lemenkov wrote: Hello. I'm writing a function (extending sipmsgops actually) which returns Payload ID. Obviously it should return 0 in case of PCMU/8000/1 which seems to be impossible. As a temporary solution I'm thinking of returing PayloadID+1 but this looks really strange. Maybe there are some other ways to return actual 0 from a module's exported function? Not that I know of. If a function causes 0 to be returned to the script routing will be aborted AFAIK. What about this: you can take an AVP as an argument and save the value there, then your function would return 1 if all went ok or -1 if there was some kind of error. Regards, -- Saúl Ibarra Corretgé AG Projects ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
[OpenSIPS-Devel] [ opensips-Patches-3600377 ] Allow avps as a parameters in rtpproxy
Patches item #3600377, was opened at 2013-01-11 03:22 Message generated for change (Tracker Item Submitted) made by peter_lemenkov You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=1086412aid=3600377group_id=232389 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: modules Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Peter Lemenkov (peter_lemenkov) Assigned to: Nobody/Anonymous (nobody) Summary: Allow avps as a parameters in rtpproxy Initial Comment: This is a copy of an original commit from your nasty twin's Git repository. It allows rtpproxy_offer/rtpproxy_answer to accept variables. I'm using a generic functions - fixup_spve_null, fixup_spve_spve, so please review it. I suppose that no additional fixup_free function is required here, right? -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=1086412aid=3600377group_id=232389 ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
[OpenSIPS-Devel] SF.net SVN: opensips:[9545] trunk/modules/event_route
Revision: 9545 http://opensips.svn.sourceforge.net/opensips/?rev=9545view=rev Author: razvancrainea Date: 2013-01-11 11:44:25 + (Fri, 11 Jan 2013) Log Message: --- fixed event_route documentation typo Modified Paths: -- trunk/modules/event_route/README trunk/modules/event_route/doc/event_route_admin.xml This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
[OpenSIPS-Devel] SF.net SVN: opensips:[9546] trunk
Revision: 9546 http://opensips.svn.sourceforge.net/opensips/?rev=9546view=rev Author: razvancrainea Date: 2013-01-11 13:22:31 + (Fri, 11 Jan 2013) Log Message: --- Added support for route parameters - when calling a route, some extra parameters can be attached (example: route(ROUTE_NAME, 1);), that can be later retrieved using the newly added 'param' pseudo variable Modified Paths: -- trunk/action.c trunk/cfg.y trunk/pvar.c trunk/pvar.h trunk/route.c This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
Re: [OpenSIPS-Devel] Is it possible to return 0 from an exported function?
I second what Saul said! It is the same case as for set_count() : http://www.opensips.org/html/docs/modules/1.8.x/cfgutils.html#id250444 Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 01/11/2013 10:19 AM, Saúl Ibarra Corretgé wrote: On Jan 11, 2013, at 8:25 AM, Peter Lemenkov wrote: Hello. I'm writing a function (extending sipmsgops actually) which returns Payload ID. Obviously it should return 0 in case of PCMU/8000/1 which seems to be impossible. As a temporary solution I'm thinking of returing PayloadID+1 but this looks really strange. Maybe there are some other ways to return actual 0 from a module's exported function? Not that I know of. If a function causes 0 to be returned to the script routing will be aborted AFAIK. What about this: you can take an AVP as an argument and save the value there, then your function would return 1 if all went ok or -1 if there was some kind of error. Regards, -- Saúl Ibarra Corretgé AG Projects ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
[OpenSIPS-Devel] New OpenXCAP release 2.1.0
Hello, OpenXCAP 2.1.0 has been released with support for org.openmobilealliance.pres-rules and org.openmobilealliance.pres-content OMA applications and several bug fixes. openxcap (2.1.0) Adapted to changes in SIP SIMPLE SDK package structure Added custom application to purge all server data (org.openxcap.purge) Separate pres-rules and OMA pres-rules applications Fixed creating route header for xcap-diff Fixed setting port number in DB URL Fixed unicode issues with SIPThor backend Refactor icon application to conform to standards Allow OpenXCAP to be started as non-root when running in foreground Send xcap-diff PUBLISH with expires set to 0 For more information visit: http://www.openxcap.org/news/27 Regards, Adrian ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel