Re: [OpenSIPS-Devel] opensips error
Hi, Guan! You won't find any sip messages in /var/log/messages, only OpenSIPS logs. You should watch the traces you captured in order to find the registration problem. Regards, -- Ra(zvan Crainea OpenSIPS Developer http://www.opensips-solutions.com On 04/19/2012 04:50 AM, Guan Xsun wrote: HI, Thank you very much ! I have solved that problem , but I find a new problem again. I use MySql as Database. And I have add a new number into database . but it cant registered when I use softphone to register. Can you tell me where can I whatch the log, I think it have received sip messsage for I have looked it from captured packets. But I find no sip messages from /var/log/message. Hope you can give me more informations. Thanks ? 2012?4?18? ??11:27,Vlad Paiu vladp...@opensips.org mailto:vladp...@opensips.org? ?: Hi, What OS is this on ? It seems to be something related to OS permissions, and not OpenSIPS on it's own, judging by the error message. Do you happen to have SELINUX enabled ? If yes, try to disable it and try again. Regards, Vlad Paiu OpenSIPS Developer http://www.opensips-solutions.com On 04/18/2012 06:22 PM, Guan Xsun wrote: HI,all, I enter an error when use opensips. The message log is listed: Apr 18 08:17:36 localhost opensips: ERROR:core:sr_load_module: 1 could not open module /usr/local/lib/opensips/modules/db_mysql.so: /usr/local/mysql/lib/libmysqlclient.so.15: cannot restore segment prot after reloc: Permission denied Apr 18 08:17:36 localhost opensips: CRITICAL:core:yyerror: 2parse error in config file, line 71, column 13-14: failed to load module Apr 18 08:17:36 localhost opensips: CRITICAL:core:yyerror: 2parse error in config file, line 192, column 1-6: syntax error Apr 18 08:17:36 localhost opensips: CRITICAL:core:yyerror: 2parse error in config file, line 192, column 1-6: Invalid arguments Apr 18 08:17:36 localhost opensips: ERROR:core:main: bad config file (3 errors) And the opesips.cfg is attached. ___ Devel mailing list Devel@lists.opensips.org mailto:Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel ___ Devel mailing list Devel@lists.opensips.org mailto: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 ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
Re: [OpenSIPS-Devel] 回复: Devel Digest, Vol 46, Issue 31
Hi, You can run your script with an absolute path, so you can put the external script wherever you would like. So you should do something like exec_avp(/usr/local/sbin/my_script.py $si, $avp(should_route)); if ($avp(should_route) == 0) { send_reply(403,Not relaying); exit; } # continue with regular routing The $ct in your example, or $si in mine, is passed as an argument to your script, so you can fetch it as a regular argument, like sys.argv[1] in python. The result of the script will get returned in $avp(should_route), in my example. Regards, Vlad Paiu OpenSIPS Developer http://www.opensips-solutions.com On 04/19/2012 12:22 PM, GTS2010 wrote: Hi Paiu: First, thank you very much for your help. Today I have read the web you give to me ,and I have some more questions about how to use the exec_avp() fuction , in the web I saw a simple ex:exec_avp(print- contact.sh$ct). The questions are where should I put my own script in ? And how to read the $ct in my own script (ex: python)? Hoping for your help! Thanks Regards, Li Peng beijing China 2012-04-19 2012-04-19 GTS2010 *发件人:*devel-request *发送时间:*2012-04-18 23:26 *主题:*Devel Digest, Vol 46, Issue 31 *收件人:*develdevel@lists.opensips.org *抄送:* Send Devel mailing list submissions to devel@lists.opensips.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.opensips.org/cgi-bin/mailman/listinfo/devel or, via email, send a message with subject or body 'help' to devel-requ...@lists.opensips.org You can reach the person managing the list at devel-ow...@lists.opensips.org When replying, please edit your Subject line so it is more specific than Re: Contents of Devel digest... Today's Topics: 1. Re: question (Vlad Paiu) 2. (no subject) (Guan Xsun) 3. opensips error (Guan Xsun) -- Message: 1 Date: Wed, 18 Apr 2012 14:41:01 +0300 From: Vlad Paiu vladp...@opensips.org Subject: Re: [OpenSIPS-Devel] question To: devel@lists.opensips.org Message-ID: 4f8ea84d.5010...@opensips.org Content-Type: text/plain; charset=utf-8; Format=flowed Hello, There is no need to develop an extra module for this. You can use the exec_avp() function from the exec module ( see #1) and call an external script ( bash, python, etc ) that runs your logic, and returns the result back to OpenSIPS. Based on the external script results, in the OpenSIPS script you can drop or further relay the message. 1. http://www.opensips.org/html/docs/modules/devel/exec#id250135 Regards Vlad Paiu OpenSIPS Developer http://www.opensips-solutions.com On 04/18/2012 04:15 AM, GTS2010 wrote: 2012-04-18 Hi: I am a college student from China. I have just started working on opensips. Now I have some questions about it, and I hope you could help me out. Our project want to add some additional functions on the sip server. The primary is when the server received an invite message from a sip phone, amd the server should get the src-ip and the des-ip of the session. Then send the src-ip and the dst-ip to another computer, in which we run a application that have the informations about the resource of the network (By the way,the server and the sip phones are all in an LAN). Then the application will tell the server whether it should allow this session. In another word, we want to add a judgement in the sip session. My question is whether the opensips could do that for me? Should I add an additional module in the opensips? Or add some funcitions in some modules whick the opensips already have? How to? Thank you very much for your help! Hoping for your advance. Thanks Regards, Li Peng Beijing China 2012-04-18 GTS2010 ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel -- next part -- An HTML attachment was scrubbed... URL: http://lists.opensips.org/pipermail/devel/attachments/20120418/f93aad98/attachment-0001.htm -- Message: 2 Date: Wed, 18 Apr 2012 23:22:40 +0800 From: Guan Xsun guanxian...@gmail.com Subject: [OpenSIPS-Devel] (no subject) To: devel@lists.opensips.org Message-ID: cahbwywc9gpztuedc9_4slcxbh-om+ks-s7qxlawbrfbxnyy...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 HI,all, I enter an error when use opensips. The message log is listed: Apr 18 08:17:36 localhost opensips: ERROR:core:sr_load_module: 1 could not open module /usr/local/lib/opensips/modules/db_mysql.so: /usr/local/mysql/lib/libmysqlclient.so.15: cannot restore segment prot after reloc: Permission denied Apr 18 08:17:36 localhost opensips:
[OpenSIPS-Devel] New CDRTool release 8.3.0
There is a new release of CDRTool application with bug fixes and improvements. Changelog cdrtool (8.3.0) unstable; urgency=low [ Rating Engine ] * Fixed populating domain field in prepaid queries * Fixed escaping of destination names * Changed SipRPID field to be saved decoded * Fixed on-net rating for divert-on-net and on-net-divert-on-net * Fixed fallback to default destinations * Fixed rating calculation when crossing spans [ Web Interface ] * Change CDR column header * Added image for CISCO spa303 phone * Added jitsi sip ua logo * Added qutecom sip ua logo * Added MD5 password hashing support * Fixed loginform to be able to use the JS For how to upgrade your installation see: http://cdrtool.ag-projects.com/projects/cdrtool/wiki/Installation_Guide Regards, Adrian ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
Re: [OpenSIPS-Devel] opensips error
HI,Crainea, Where can I look the log of opensips. I want to look its footprint. Best Regards 在 2012年4月19日 下午4:23,Razvan Crainea raz...@opensips.org写道: Hi, Guan! You won't find any sip messages in /var/log/messages, only OpenSIPS logs. You should watch the traces you captured in order to find the registration problem. Regards, -- Răzvan Crainea OpenSIPS Developerhttp://www.opensips-solutions.com On 04/19/2012 04:50 AM, Guan Xsun wrote: HI, Thank you very much ! I have solved that problem , but I find a new problem again. I use MySql as Database. And I have add a new number into database . but it cant registered when I use softphone to register. Can you tell me where can I whatch the log, I think it have received sip messsage for I have looked it from captured packets. But I find no sip messages from /var/log/message. Hope you can give me more informations. Thanks 在 2012年4月18日 下午11:27,Vlad Paiu vladp...@opensips.org写 道: Hi, What OS is this on ? It seems to be something related to OS permissions, and not OpenSIPS on it's own, judging by the error message. Do you happen to have SELINUX enabled ? If yes, try to disable it and try again. Regards, Vlad Paiu OpenSIPS Developerhttp://www.opensips-solutions.com On 04/18/2012 06:22 PM, Guan Xsun wrote: HI,all, I enter an error when use opensips. The message log is listed: Apr 18 08:17:36 localhost opensips: ERROR:core:sr_load_module: 1 could not open module /usr/local/lib/opensips/modules/db_mysql.so: /usr/local/mysql/lib/libmysqlclient.so.15: cannot restore segment prot after reloc: Permission denied Apr 18 08:17:36 localhost opensips: CRITICAL:core:yyerror: 2parse error in config file, line 71, column 13-14: failed to load module Apr 18 08:17:36 localhost opensips: CRITICAL:core:yyerror: 2parse error in config file, line 192, column 1-6: syntax error Apr 18 08:17:36 localhost opensips: CRITICAL:core:yyerror: 2parse error in config file, line 192, column 1-6: Invalid arguments Apr 18 08:17:36 localhost opensips: ERROR:core:main: bad config file (3 errors) And the opesips.cfg is attached. ___ Devel mailing listDevel@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/devel ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel ___ Devel mailing listDevel@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/devel ___ 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
Re: [OpenSIPS-Devel] opensips error
Hi,Crainea. I find my opensips cant receive sip message from socket. How can I debug it. where can I check its log?? Best Regards 在 2012年4月19日 下午11:07,Guan Xsun guanxian...@gmail.com写道: HI,Crainea, Where can I look the log of opensips. I want to look its footprint. Best Regards 在 2012年4月19日 下午4:23,Razvan Crainea raz...@opensips.org写道: Hi, Guan! You won't find any sip messages in /var/log/messages, only OpenSIPS logs. You should watch the traces you captured in order to find the registration problem. Regards, -- Răzvan Crainea OpenSIPS Developerhttp://www.opensips-solutions.com On 04/19/2012 04:50 AM, Guan Xsun wrote: HI, Thank you very much ! I have solved that problem , but I find a new problem again. I use MySql as Database. And I have add a new number into database . but it cant registered when I use softphone to register. Can you tell me where can I whatch the log, I think it have received sip messsage for I have looked it from captured packets. But I find no sip messages from /var/log/message. Hope you can give me more informations. Thanks 在 2012年4月18日 下午11:27,Vlad Paiu vladp...@opensips.org写 道: Hi, What OS is this on ? It seems to be something related to OS permissions, and not OpenSIPS on it's own, judging by the error message. Do you happen to have SELINUX enabled ? If yes, try to disable it and try again. Regards, Vlad Paiu OpenSIPS Developerhttp://www.opensips-solutions.com On 04/18/2012 06:22 PM, Guan Xsun wrote: HI,all, I enter an error when use opensips. The message log is listed: Apr 18 08:17:36 localhost opensips: ERROR:core:sr_load_module: 1 could not open module /usr/local/lib/opensips/modules/db_mysql.so: /usr/local/mysql/lib/libmysqlclient.so.15: cannot restore segment prot after reloc: Permission denied Apr 18 08:17:36 localhost opensips: CRITICAL:core:yyerror: 2parse error in config file, line 71, column 13-14: failed to load module Apr 18 08:17:36 localhost opensips: CRITICAL:core:yyerror: 2parse error in config file, line 192, column 1-6: syntax error Apr 18 08:17:36 localhost opensips: CRITICAL:core:yyerror: 2parse error in config file, line 192, column 1-6: Invalid arguments Apr 18 08:17:36 localhost opensips: ERROR:core:main: bad config file (3 errors) And the opesips.cfg is attached. ___ Devel mailing listDevel@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/devel ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel ___ Devel mailing listDevel@lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/devel ___ 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] [ opensips-Bugs-3519665 ] drouting: improper handling for address in dr_gateways
Bugs item #3519665, was opened at 2012-04-19 15:35 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=1086410aid=3519665group_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: 1.8.x Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: drouting: improper handling for address in dr_gateways Initial Comment: The documentation specify that the address field in dr_gateways table is a SIP URI. When a SIP URI is populated into the table, drouting fails to load. The first thing that needs to be fixed is creating the URI that needs to be parsed in routing.c:add_dst(): @@ -491,8 +491,9 @@ pgw-type = type; /* add address in the list */ - if(pgw-ip_str.len5 || (strncasecmp(sip:, ip, 4) -strncasecmp(sips:, ip, 5))) + if(pgw-ip_str.len5 || + (strncasecmp(sip:,ip,4) != 0 + strncasecmp(sips:,ip,5) != 0)) { if(pgw-ip_str.len+4=GWABUF_MAX_SIZE) { LM_ERR(GW address (%d) longer But after that, the code still expects an IP:port in pgw-ip_str (but we have a SIP URI). When the new destination URI is created, the resulting SIP URI is bogus because the host part of the new URI is startin with sip: drouting:push_gw_for_usage: adding gw [blah] as sip:username@sip:host in order 0 Regards, Ovidiu Sas -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=1086410aid=3519665group_id=232389 ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
[OpenSIPS-Devel] [ opensips-Bugs-3519665 ] drouting: improper handling for address in dr_gateways
Bugs item #3519665, was opened at 2012-04-19 15:35 Message generated for change (Comment added) made by osas You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=1086410aid=3519665group_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: 1.8.x Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: drouting: improper handling for address in dr_gateways Initial Comment: The documentation specify that the address field in dr_gateways table is a SIP URI. When a SIP URI is populated into the table, drouting fails to load. The first thing that needs to be fixed is creating the URI that needs to be parsed in routing.c:add_dst(): @@ -491,8 +491,9 @@ pgw-type = type; /* add address in the list */ - if(pgw-ip_str.len5 || (strncasecmp(sip:, ip, 4) -strncasecmp(sips:, ip, 5))) + if(pgw-ip_str.len5 || + (strncasecmp(sip:,ip,4) != 0 + strncasecmp(sips:,ip,5) != 0)) { if(pgw-ip_str.len+4=GWABUF_MAX_SIZE) { LM_ERR(GW address (%d) longer But after that, the code still expects an IP:port in pgw-ip_str (but we have a SIP URI). When the new destination URI is created, the resulting SIP URI is bogus because the host part of the new URI is startin with sip: drouting:push_gw_for_usage: adding gw [blah] as sip:username@sip:host in order 0 Regards, Ovidiu Sas -- Comment By: Ovidiu Sas (osas) Date: 2012-04-19 15:47 Message: The URI parsing part is fine (the patch is a noop). The only issue is storing the full SIP URI as a host:port in the structure pointed by pgw . Regards, Ovidiu Sas -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=1086410aid=3519665group_id=232389 ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
[OpenSIPS-Devel] [ opensips-Patches-3519714 ] NATHELPER - Check by port number in contact
Patches item #3519714, was opened at 2012-04-19 21:48 Message generated for change (Tracker Item Submitted) made by nikbyte You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=1086412aid=3519714group_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: trunk Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nick Altmann (nikbyte) Assigned to: Nobody/Anonymous (nobody) Summary: NATHELPER - Check by port number in contact Initial Comment: I need to check port in contact against source port (for STUN clients). It's additional check flag (64) for nat_uac_test: 64 - port in Contact is compared against source port of signaling -- You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=1086412aid=3519714group_id=232389 ___ Devel mailing list Devel@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/devel