Re: [SR-Users] msilo clarification
On 13/03/15 12:55, mayamatakeshi wrote: On Fri, Mar 13, 2015 at 8:25 PM, Daniel-Constantin Mierla mico...@gmail.com mailto:mico...@gmail.com wrote: Hello, On 13/03/15 10:54, mayamatakeshi wrote: Hello, maybe this phrase in the msilo doc is misleading: /Every time when a user registers with Kamailio, the module is looking in database for offline messages intended for that user. All of them will be sent to contact address provided in REGISTER request./ http://kamailio.org/docs/modules/4.2.x/modules/msilo.html The above seems to imply that msilo would send the call directly to the contact address. But this doesn't seem to be the case based on what is mentioned in several threads in the mailing list and in what I saw in the msilo.c code. If so, is there a reason to be a such? Would it be a problem to allow msilo m_dump to get the values of contact, received and path and use them when calling t_request? IIRC, the MESSAGE requests are sent to the From address that sent the message. That's typically the AoR, meaning that the request is sent to the server of that user which should do lookup location to resolve the destination. There is an option to send some notification back to origin when the destination is offline, controlled by: - http://kamailio.org/docs/modules/stable/modules/msilo.html#msilo.p.use_contact But that should not be related to relaying the instant messages when the user becomes online. If the destination user is on same kamailio, be sure you don't authenticate requests coming from the same box (ie, skip authentication if src_ip==myself). Daniel, thanks for the explanation. I am doing as you described. Everything is running fine. I was just intrigued about having to loop the request if my own server is the registrar. The loop is local so there is no much impact. When msilo was developed (iirc, like 2003) there was not much inter-module API and this was the solution to go. Now probably msilo can be bound to usrloc and use the internal exported API, but it is more like some effort for no real big benefits. The existing behaviour still needs to be kept because msilo can be on a different instance that location server. Of course a patch will be accepted, but at least for me there are other higher priority features to work on for the moment. A benefit of current behavior is more control of what to do with dumped messages in request_route when receiving it via local loop. Cheers, Daniel -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] remove_hf_value
Hello, but the INVITE request goes out with 2 Record Route headers, if you get them in the 200ok. Not sure how it is going to work overall, you will have to manually set local sockets for requests within dialog, because you are doing also trasport layer gatewaying (tcp-udp). Anyhow, as a solution, maybe you should just not be using record_route() function and just add the header with insert_hf() for the invite, remove the Record-Route header for 200ok with remove_hf() and insert a new one again with insert_hf() If you know the local address (IP/port/transport) you want to put in the Record-Route, you can build the header as: insert_hf(Record-Route: sip:_LOCAL_IP_:_LOCAL_PORT_;transport=_LOCAL_TRANSPORT_;lr=on;ftag=$ft;nat=yes\r\n); Requests within the dialog can be handled with loose_route(), but again, you have to do more in config for selecting the local socket to send to next hop. Cheers, Daniel On 16/03/15 13:35, Slava Bendersky wrote: Hello Daniel, I want do clean up on routes from first SUBSCRIBE, that when traffic goes to public side of kamailio will be only public route and when traffic is internal the Record-Route will stay internal only. In SDP I see like this. I tired double routes set 0 in rr, but didn't clean enough. --- Transmitting (NAT) to 10.18.130.46:5060 --- SIP/2.0 200 OK Via: SIP/2.0/UDP 10.18.130.46;branch=z9hG4bKf852.e0223f39c2bbad8366fdf1b7cb22b336.0;i=8;received=10.18.130.46;rport=5060 Via: SIP/2.0/TCP 192.168.88.252:5062;received=client_pub_ipbranch=z9hG4bK0bbe1f7d27257bba9;rport=5062 Record-Route: sip:10.18.130.46;r2=on;lr=on;ftag=a185d974ec;nat=yes On public side remote this Record-Route Record-Route: sip:kamailio_pub_ip:5084;transport=tcp;r2=on;lr=on;ftag=a185d974ec;nat=yes On private side remote this Record-Route From: Slava Bendersky sips:10...@networklab.ca;tag=a185d974ec To: sips:10...@networklab.ca;tag=as00757d3e Call-ID: b08adb1ad1804a83 CSeq: 236711034 SUBSCRIBE Server: FPBX-2.11.0(11.15.1) Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE Supported: replaces, timer Expires: 3600 Contact: sip:10101@10.18.130.50:5060;expires=3600 Content-Length: 0 Slava. *From: *Daniel-Constantin Mierla mico...@gmail.com *To: *sr-users sr-users@lists.sip-router.org *Sent: *Monday, March 16, 2015 7:01:54 AM *Subject: *Re: [SR-Users] remove_hf_value Hello, can you give an example of incoming header and how you want to be after modification? It is not clear for me what end result you want/expect. Cheers, Daniel On 14/03/15 06:41, Slava Bendersky wrote: Hello Everyone, Here updated version. Trying remove Record-Route after the coma. My log shows Mar 14 01:25:21 canlvprx01 /usr/sbin/kamailio[751]: INFO: script: [SUBSCRIBE], Inbound connection from Client Public IP Mar 14 01:25:21 canlvprx01 /usr/sbin/kamailio[751]: ERROR: script: null Mar 14 01:25:21 canlvprx01 /usr/sbin/kamailio[751]: INFO: script: [SUBSCRIBE], Route for removal: 'null' route snippet. route[ROUTE_HDR_ORG] { # Getting record routes if(is_present_hf(Route)) { xlog(L_INFO, [$rm], Inbound connection from $si\n); if(is_method(SUBSCRIBE)) { if(is_ip_rfc1918($si)) { xlog($sel(@hf_value.Record_Route[-1])); xlog(L_INFO, [$rm], Route for removal: '$sel(@hf_value.Record_Route[-1])'\n); remove_hf_value(Record-Route[-1]); } else { xlog($sel(@hf_value.Record_Route[1])); xlog(L_INFO, [$rm], Route for removal: '$sel(@hf_value.Record_Route[1])'\n); remove_hf_value(Record-Route[1]); } } } return; } Slava, *From: *Slava Bendersky volga...@networklab.ca *To: *sr-users sr-users@lists.sip-router.org *Sent: *Friday, March 13, 2015 1:00:44 PM *Subject: *[SR-Users] remove_hf_value Hello Everyone, I am trying adjust Record-Route, but can't match headers value And I am call route(ROUTE_HDR_ORG); right after route(WITHINDLG); route[ROUTE_HDR_ORG] { # Getting record routes if(is_present_hf(Record-Route)) { if(is_method(SUBSCRIBE)) { xlog($sel(@hf_value.Record_Route[1])); xlog(L_INFO, [$rm], Route for removal: '$sel(@hf_value.Record_Route[1])'\n); remove_hf_value(Record-Route[1]); } }
Re: [SR-Users] Redirect server for load balancing and HA
On 13/03/15 16:39, Markus wrote: [...] I think this is something specific for your environment. Kamailio doesn't have any issues sending redirect replies. A proxy might be required in case of natted endpoints when they cannot communicate each other. But otherwise, if you don't want the new INVITE to pass again via LB, then you can send 3xx. Other than communication between natted endpoints you don't see any disadvantage of using Kamailio for LB+HA as Redirect server instead as proxy server? From Kamailio point of view, there is nothing. When doing redirect, the accounting for new calls (resulted from redirect) is no longer possible on the sip server, but I guess that is not something you look for in this scenario. Cheers, Daniel -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] siremis login issue
I will see if I can get this version somewhere and test. So far we mainly deployed to debian wheezy that has php 5.4. Cheers, Daniel On 12/03/15 11:39, Boris Ivanov wrote: php -v PHP 5.6.6 (cli) (built: Mar 5 2015 21:22:52) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies uname -a FreeBSD score10 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC 2014 r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 mysql -v Server version: 5.6.23 Source distribution Kamailio installed with pkg install kamailio Siremis installed from source (it was many permissions problem for temporary files) 10452721 Feb 2 09:16 siremis-4.2.0.tgz. *From:*sr-users [mailto:sr-users-boun...@lists.sip-router.org] *On Behalf Of *Daniel-Constantin Mierla *Sent:* Donnerstag, 12. März 2015 11:34 *To:* Kamailio (SER) - Users Mailing List; Boris Ivanov *Subject:* Re: [SR-Users] siremis login issue Hello, what is the version of PHP you have installed? Cheers, Daniel On 11/03/15 18:34, Boris Ivanov wrote: Hi Hope this is right place to post my question. I have installed siremis under FreeBSD 10 It went through well. DB created with /usr/local/sbin/kamdbctl create. Problem happen when I trying to login as admin. [{target:ERROR,content: *\n[2015-03-11 17:31:37 (GMT)] An exception occurred while executing this script: \nError message: **#8192, Non-static method BizSystem::getConfiguration() should not be called statically, assuming $this from incompatible context\/font \nScript name and line number of error:\/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstract.php:268\/font \n* *function:\/b errorHandler ( 8192, \Non-static method BizSystem::getConfiguration() should not be ca...\, \\/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstrac...\, 268, Array(0) ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/sysheader.inc 117\n function:\/b userErrorHandler ( 8192, \Non-static method BizSystem::getConfiguration() should not be ca...\, \\/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstrac...\, 268, Array(0) ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstract.php 268\n function:\/b setQuoteIdentifiers ( ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstract.php 177\n function:\/b __construct ( Array(1) ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj.php 37\n function:\/b __construct ( Array(1) ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/ObjectFactory.php 166\n function:\/b constructObject ( \system.do.UserDO\ ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/ObjectFactory.php 56\n function:\/b getObject ( \system.do.UserDO\, 0 ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizSystem.php 252\n function:\/b getObject ( \system.do.UserDO\ ) @ \/usr\/local\/www\/apache24\/data\/siremis\/modules\/service\/authService.php 92\n function:\/b authDBUser ( \admin\, \admin\ ) @ \/usr\/local\/www\/apache24\/data\/siremis\/modules\/service\/authService.php 66\n function:\/b authenticateUser ( \admin\, \admin\ ) @ \/usr\/local\/www\/apache24\/data\/siremis\/modules\/user\/form\/LoginForm.php 92\n function:\/b Login ( ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizController.php 310\n function:\/b invoke ( ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizController.php 110\n function:\/b dispatchRequest ( ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizController.php 32\n function:\/b include_once ( \\/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizController.php\ ) @ \/usr\/local\/www\/apache24\/data\/siremis\/bin\/controller.php 6\/div\n* * * *Please ask system administrator for help...\/div\n}]* Anyone knows how to fix? Boris This message and any attachments contain confidential information and must not be disclosed to a third party without the prior written consent of setcom. If you have received it erroneously, please discard it and contact us by return. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
Re: [SR-Users] Dialogs not deleted on BYE
Some modules use local variables to store some values to be used later when an action is done. In this specific case, the add_rr_param(), which should be used internally by dialog, is checking to see if the Record-Route header was added. If yes, then the parameter is added to it. If not, it is kept in the local variable and record_route() will check that variable to see if there is anything else to be added to the header. When suspending and resuming, practically the request handling moves to another and the local variable is lost. Cheers, Daniel On 17/03/15 23:15, Shane Harrison wrote: Yes that worked. Thanks. Can you explain why the text ops for adding the parameter aren't transparent to the suspend/resume process. Would be useful to better understand so I can avoid similar issues in the future. Cheers and thanks Shane -Original Message- From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Wednesday, 18 March 2015 10:32 a.m. To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Dialogs not deleted on BYE Can you try moving the record_route() before execution of the ims_charging function? Cheers, Daniel On 17/03/15 22:21, Shane Harrison wrote: Weird - just listening to your voice on youtube video of talk on async in kamailio and get your email response. Sort of all senses response :-) Yes have record_route and it is in the route[LOCATION] block. This is called from the CHARGING_CCR_REPLY block i.e. after the ims_charging function is called. Cheers Shane -Original Message- From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Wednesday, 18 March 2015 10:16 a.m. To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Dialogs not deleted on BYE Do you have record_route() in your code? Where is it relative to the ims_charging function? Cheers, Daniel On 17/03/15 20:58, Shane Harrison wrote: Thanks Daniel, From the request_route block I call the ims_charging module function Ro_CCR(). This is non-blocking and one of the parameters in the call is the route block to be called ( e.g. CHARGING_CCR_REPLY ) when the response to the charging request is obtained. Looking at the code, the Ro_CCR() function does a t_suspend() and then the ims_charging module does a t_continue() when the response is received. Then the specified routing block is called and processing of the INVITE continues. route[CHARGING_CCR_REPLY] { xlog(L_DBG,cca_return code is $avp(s:cca_return_code)\n); switch ($avp(s:cca_return_code)) { case 1: #success route(LOCATION); route(RELAY); break; . } It appears that the RR parameter that is added during the request_route processing (via dialog tracking) is no longer there when the INVITE continues being processed in the CHARGING_CCR_REPLY route block. Is that what you would expect? Any pointers to solutions? Hope that answers your question. Cheers Shane From: sr-users [sr-users-boun...@lists.sip-router.org] on behalf of Daniel-Constantin Mierla [mico...@gmail.com] Sent: 18 March 2015 00:24 To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Dialogs not deleted on BYE In what callback do you need it? Cheers, Daniel On 3/17/15, Shane Harrison shane.harri...@imgtec.com wrote: Thanks Daniel. Yes I am using the ims_charging module hence the need for the dialoguing module. I have confirmed that the dialog_id (DID) is added if I t_relay() the INVITE in the request_route. Hence dialog_ng is adding the parameter to the record_route when it creates a new_dialog. It is however lost once I exit from request_route. How do I ensure the RR parameter gets added when I resume processing the INVITE in the callback route block? Cheers and thanks Shane From: sr-users [sr-users-boun...@lists.sip-router.org] on behalf of Daniel-Constantin Mierla [mico...@gmail.com] Sent: 17 March 2015 19:34 To: Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Dialogs not deleted on BYE Hello, dialog_ng is more or less tailored for IMS modules, dialog module is still in use and very actual. If you are not using IMS module, you should try the dialog module. I haven't seen any issues for it lately and if there are, they will get fixed. Cheers, Daniel On 17/03/15 03:28, Shane Harrison wrote: Hi all, Have found a few threads on this before which have clarified my understanding a little but not yet presented me with a solution. I am using dialog_ng. dlg_manage() is deprecated and as per the documentation, I am simply setting a dialog flag early in the request_route. Kamctl dialog show does indeed show the dialogs are tracked, but they are not destroyed on the receipt of the BYE. Dialog ref count remains at 2 and in
Re: [SR-Users] siremis login issue
OK. What is the php version you have now? Just to compare and focus on the version that needs to be checked? Cheers, Daniel On 18/03/15 11:41, Boris Ivanov wrote: Thanks Daniel Meanwhile I installed it on Ubuntu precise. Works very good. BR/Boris *From:*Daniel-Constantin Mierla [mailto:mico...@gmail.com] *Sent:* Mittwoch, 18. März 2015 09:28 *To:* Boris Ivanov; Kamailio (SER) - Users Mailing List *Subject:* Re: [SR-Users] siremis login issue I will see if I can get this version somewhere and test. So far we mainly deployed to debian wheezy that has php 5.4. Cheers, Daniel On 12/03/15 11:39, Boris Ivanov wrote: php -v PHP 5.6.6 (cli) (built: Mar 5 2015 21:22:52) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies uname -a FreeBSD score10 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC 2014 r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC mailto:r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 mysql -v Server version: 5.6.23 Source distribution Kamailio installed with pkg install kamailio Siremis installed from source (it was many permissions problem for temporary files) 10452721 Feb 2 09:16 siremis-4.2.0.tgz. *From:*sr-users [mailto:sr-users-boun...@lists.sip-router.org] *On Behalf Of *Daniel-Constantin Mierla *Sent:* Donnerstag, 12. März 2015 11:34 *To:* Kamailio (SER) - Users Mailing List; Boris Ivanov *Subject:* Re: [SR-Users] siremis login issue Hello, what is the version of PHP you have installed? Cheers, Daniel On 11/03/15 18:34, Boris Ivanov wrote: Hi Hope this is right place to post my question. I have installed siremis under FreeBSD 10 It went through well. DB created with /usr/local/sbin/kamdbctl create. Problem happen when I trying to login as admin. [{target:ERROR,content: *\n[2015-03-11 17:31:37 (GMT)] An exception occurred while executing this script: \nError message: **#8192, Non-static method BizSystem::getConfiguration() should not be called statically, assuming $this from incompatible context\/font \nScript name and line number of error:\/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstract.php:268\/font \n* *function:\/b errorHandler ( 8192, \Non-static method BizSystem::getConfiguration() should not be ca...\, \\/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstrac...\, 268, Array(0) ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/sysheader.inc 117\n function:\/b userErrorHandler ( 8192, \Non-static method BizSystem::getConfiguration() should not be ca...\, \\/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstrac...\, 268, Array(0) ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstract.php 268\n function:\/b setQuoteIdentifiers ( ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstract.php 177\n function:\/b __construct ( Array(1) ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj.php 37\n function:\/b __construct ( Array(1) ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/ObjectFactory.php 166\n function:\/b constructObject ( \system.do.UserDO\ ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/ObjectFactory.php 56\n function:\/b getObject ( \system.do.UserDO\, 0 ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizSystem.php 252\n function:\/b getObject ( \system.do.UserDO\ ) @ \/usr\/local\/www\/apache24\/data\/siremis\/modules\/service\/authService.php 92\n function:\/b authDBUser ( \admin\, \admin\ ) @ \/usr\/local\/www\/apache24\/data\/siremis\/modules\/service\/authService.php 66\n function:\/b authenticateUser ( \admin\, \admin\ ) @ \/usr\/local\/www\/apache24\/data\/siremis\/modules\/user\/form\/LoginForm.php 92\n function:\/b Login ( ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizController.php 310\n function:\/b invoke ( ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizController.php 110\n function:\/b dispatchRequest ( ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizController.php 32\n
Re: [SR-Users] siremis login issue
Thanks Daniel Meanwhile I installed it on Ubuntu precise. Works very good. BR/Boris From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Mittwoch, 18. März 2015 09:28 To: Boris Ivanov; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] siremis login issue I will see if I can get this version somewhere and test. So far we mainly deployed to debian wheezy that has php 5.4. Cheers, Daniel On 12/03/15 11:39, Boris Ivanov wrote: php -v PHP 5.6.6 (cli) (built: Mar 5 2015 21:22:52) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies uname -a FreeBSD score10 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Fri Jan 17 01:46:25 UTC 2014 r...@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 mysql -v Server version: 5.6.23 Source distribution Kamailio installed with pkg install kamailio Siremis installed from source (it was many permissions problem for temporary files) 10452721 Feb 2 09:16 siremis-4.2.0.tgz. From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Daniel-Constantin Mierla Sent: Donnerstag, 12. März 2015 11:34 To: Kamailio (SER) - Users Mailing List; Boris Ivanov Subject: Re: [SR-Users] siremis login issue Hello, what is the version of PHP you have installed? Cheers, Daniel On 11/03/15 18:34, Boris Ivanov wrote: Hi Hope this is right place to post my question. I have installed siremis under FreeBSD 10 It went through well. DB created with /usr/local/sbin/kamdbctl create. Problem happen when I trying to login as admin. [{target:ERROR,content: \n[2015-03-11 17:31:37 (GMT)] An exception occurred while executing this script: \nError message: #8192, Non-static method BizSystem::getConfiguration() should not be called statically, assuming $this from incompatible context\/font \nScript name and line number of error:\/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstract.php:268\/font \n function:\/b errorHandler ( 8192, \Non-static method BizSystem::getConfiguration() should not be ca...\, \\/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstrac...\, 268, Array(0) ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/sysheader.inc 117\n function:\/b userErrorHandler ( 8192, \Non-static method BizSystem::getConfiguration() should not be ca...\, \\/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstrac...\, 268, Array(0) ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstract.php 268\n function:\/b setQuoteIdentifiers ( ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj_Abstract.php 177\n function:\/b __construct ( Array(1) ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/data\/BizDataObj.php 37\n function:\/b __construct ( Array(1) ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/ObjectFactory.php 166\n function:\/b constructObject ( \system.do.UserDO\ ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/ObjectFactory.php 56\n function:\/b getObject ( \system.do.UserDO\, 0 ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizSystem.php 252\n function:\/b getObject ( \system.do.UserDO\ ) @ \/usr\/local\/www\/apache24\/data\/siremis\/modules\/service\/authService.php 92\n function:\/b authDBUser ( \admin\, \admin\ ) @ \/usr\/local\/www\/apache24\/data\/siremis\/modules\/service\/authService.php 66\n function:\/b authenticateUser ( \admin\, \admin\ ) @ \/usr\/local\/www\/apache24\/data\/siremis\/modules\/user\/form\/LoginForm.php 92\n function:\/b Login ( ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizController.php 310\n function:\/b invoke ( ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizController.php 110\n function:\/b dispatchRequest ( ) @ \/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizController.php 32\n function:\/b include_once ( \\/usr\/local\/www\/apache24\/data\/openbiz\/bin\/BizController.php\ ) @ \/usr\/local\/www\/apache24\/data\/siremis\/bin\/controller.php 6\/div\n _ Please ask system administrator for help...\/div\n}] Anyone knows how to fix? Boris This message and any attachments contain confidential information and must not be disclosed to a third party without the prior written consent of setcom. If you have received it erroneously, please discard it and contact us by return. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015
[SR-Users] Kamailio and Busy Lamp Fields (BLF)
Hello, a bit of time ago I played with Kamailio and BLF, therefore I published kind of getting started configuration file for this feature. It is available at: - http://kb.asipto.com/kamailio:presence:k43-blf The plan was to add more to the tutorial, some guidelines for configuring the phones, but the time didn't allow it so far. Keep an eye on it for some new content. Contributions are also welcome, send them to me or take the content and publish it with new additions on another place. Hopefully is going to be useful for some people out there. Cheers, Daniel -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] Timeout after t_suspend and failure route
Hi, When receiving an INVITE, I arm a failure route and set the fr_timer to 30 seconds. After the fr_timer expires, I need to do some operations however I see the failure route is not executed. I guess it is related to the fact the INVITE has not been forwarded? If yes, how can I execute code when a transaction times out after calling t_suspend? Thanks, Mickael ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] SQLOPS bug
Hi Gents, Please consider applying this patch: --- ./modules/sqlops/sql_api.c.orig 2015-03-18 16:33:56.994320505 +0100 +++ ./modules/sqlops/sql_api.c 2015-03-18 16:34:11.254419341 +0100 @@ -743,7 +743,7 @@ LM_ERR(row index out of bounds [%d/%d]\n, i, res-nrows); goto error; } - if(i=res-ncols) + if(j=res-ncols) { LM_ERR(column index out of bounds [%d/%d]\n, j, res-ncols); goto error; Regards, Misi ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Timeout after t_suspend and failure route
Confirmed. Thanks, Mickael On 18 במרץ 2015, at 18:06, Daniel-Constantin Mierla mico...@gmail.com wrote: Hello, can't check the code right now, but to confirm, if you use t_on_failure() before suspending the transaction, isn't executed? Cheers, Daniel On 18/03/15 15:56, Mickael Marrache wrote: Hi, When receiving an INVITE, I arm a failure route and set the fr_timer to 30 seconds. After the fr_timer expires, I need to do some operations however I see the failure route is not executed. I guess it is related to the fact the INVITE has not been forwarded? If yes, how can I execute code when a transaction times out after calling t_suspend? Thanks, Mickael ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] SQLOPS bug
Hello, what version are you using? Cheers, Daniel On 18/03/15 16:51, Mihaly Zachar wrote: Hi Gents, Please consider applying this patch: --- ./modules/sqlops/sql_api.c.orig 2015-03-18 16:33:56.994320505 +0100 +++ ./modules/sqlops/sql_api.c 2015-03-18 16:34:11.254419341 +0100 @@ -743,7 +743,7 @@ LM_ERR(row index out of bounds [%d/%d]\n, i, res-nrows); goto error; } - if(i=res-ncols) + if(j=res-ncols) { LM_ERR(column index out of bounds [%d/%d]\n, j, res-ncols); goto error; Regards, Misi ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] SQLOPS bug
Hi Daniel, The patch was created on 4.1.4, sorry for that, but the bug still exists at 4.2.3 (d76f8e3) and df86f2a as well. Cheers, Misi On 03/18/15 17:45, Daniel-Constantin Mierla wrote: Hello, what version are you using? Cheers, Daniel On 18/03/15 16:51, Mihaly Zachar wrote: Hi Gents, Please consider applying this patch: --- ./modules/sqlops/sql_api.c.orig 2015-03-18 16:33:56.994320505 +0100 +++ ./modules/sqlops/sql_api.c 2015-03-18 16:34:11.254419341 +0100 @@ -743,7 +743,7 @@ LM_ERR(row index out of bounds [%d/%d]\n, i, res-nrows); goto error; } - if(i=res-ncols) + if(j=res-ncols) { LM_ERR(column index out of bounds [%d/%d]\n, j, res-ncols); goto error; Regards, Misi ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Timeout after t_suspend and failure route
Hello, can't check the code right now, but to confirm, if you use t_on_failure() before suspending the transaction, isn't executed? Cheers, Daniel On 18/03/15 15:56, Mickael Marrache wrote: Hi, When receiving an INVITE, I arm a failure route and set the fr_timer to 30 seconds. After the fr_timer expires, I need to do some operations however I see the failure route is not executed. I guess it is related to the fact the INVITE has not been forwarded? If yes, how can I execute code when a transaction times out after calling t_suspend? Thanks, Mickael ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] What is the best SIP trunk authentication strategy
Been struggling with this for awhile now. So far I am finding it rather difficult to come up with way to authenticate SIP trunks taking into account all possible scenarios. My setup is Kamailio combined with Asterisk realtime. Everything is in a MySQL database. All authentication is done by Kamailio. Kamailio handles SIP extension (user) authentication quite well but seems poorly equipped for SIP trunk (peer) authentication. The biggest problem I have run into so far is that SIP trunks typically use DNS names and Kamailio is not at all designed to used DNS names. Also SIP trunks do not use named realms whereas that is a key part of Kamailio authentication. For IP authentication about the only solution I have found is to DNS lookup and save all returned IP addresses in the ip_addr mysql table. Then I do: #!ifdef WITH_IPAUTH if((!is_method(REGISTER)) allow_source_address() $au == ) { # source IP allowed return; } I can run a cron job every hour to DNS lookup and update the ip_addr table as needed so I think this is a satisfactory solution for IP authentication. SIP trunk user/pass authentication is the one I am now struggling with. This standard Kamailio authentication section does not work for SIP trunks. if (is_method(REGISTER|INVITE) || from_uri==myself) { # authenticate requests #if (!auth_check($fd, subscriber, 1)) { if (!auth_check($fd, subscriber, 0)) { auth_challenge($fd, 0); exit; } # user authenticated - remove auth header if(!is_method(REGISTER|PUBLISH)) consume_credentials(); This is a multidomain setup and therefore: modparam(auth_db, use_domain, 1) So the authentication section will try authenticate the realm of the trunk which will always be an IP address. However the SIP trunk realm will usually be saved in the subscriber database as the FQDN. There is no mechanism for auth_check() to directly or indirectly check against FQDN. The other problem is that even if I used the ip_addr table somehow it will only try use the user/pass of the first instance of a matching IP address. For SIP trunks it is possible I could have multiple subaccounts and therefore multiple instances of the same IP with different user/pass. So auth_check() is not designed for being used this way as far as I can tell. Seems to me like there should almost be a special kamailio module just for SIP trunks. I had a look a carrierroute module it's not designed for this either. ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] SQLOPS bug
Hello, thanks, patch pushed to master, 4.2 and 4.1 branches. Cheers, Daniel On 18/03/15 18:00, Mihaly Zachar wrote: Hi Daniel, The patch was created on 4.1.4, sorry for that, but the bug still exists at 4.2.3 (d76f8e3) and df86f2a as well. Cheers, Misi On 03/18/15 17:45, Daniel-Constantin Mierla wrote: Hello, what version are you using? Cheers, Daniel On 18/03/15 16:51, Mihaly Zachar wrote: Hi Gents, Please consider applying this patch: --- ./modules/sqlops/sql_api.c.orig 2015-03-18 16:33:56.994320505 +0100 +++ ./modules/sqlops/sql_api.c 2015-03-18 16:34:11.254419341 +0100 @@ -743,7 +743,7 @@ LM_ERR(row index out of bounds [%d/%d]\n, i, res-nrows); goto error; } - if(i=res-ncols) + if(j=res-ncols) { LM_ERR(column index out of bounds [%d/%d]\n, j, res-ncols); goto error; Regards, Misi ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Timeout after t_suspend and failure route
Can you try with the patch from the next commit? - https://github.com/kamailio/kamailio/commit/6484b199fb48acc2c55f318812f2c968b845ca80 Cheers, Daniel On 18/03/15 17:09, Mickael Marrache wrote: Confirmed. Thanks, Mickael On 18 במרץ 2015, at 18:06, Daniel-Constantin Mierla mico...@gmail.com mailto:mico...@gmail.com wrote: Hello, can't check the code right now, but to confirm, if you use t_on_failure() before suspending the transaction, isn't executed? Cheers, Daniel On 18/03/15 15:56, Mickael Marrache wrote: Hi, When receiving an INVITE, I arm a failure route and set the fr_timer to 30 seconds. After the fr_timer expires, I need to do some operations however I see the failure route is not executed. I guess it is related to the fact the INVITE has not been forwarded? If yes, how can I execute code when a transaction times out after calling t_suspend? Thanks, Mickael ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org mailto:sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
[SR-Users] missing BYE when 2 redundant kamailio servers share the same database
Hi, all I'm trying to set up 2 kamailio servers for active-active redundancy. The two kamailio severs share the the same database with db_mode=3, and no registration replication. Use pjsua2 as SIP client for testing. The test setup is as follows: kamailio server 1(k1): 10.0.1.30:5061 http://10.0.1.30:5061/ kamailio server 2(k2): 10.0.1.32:5061 http://10.0.1.32:5061/ sip client c1: sip:16317@10.0.1.30 mailto:sip%3A16317@10.0.1.30, client ip: 10.0.1.254 sip client c2: sip:72316@10.0.1.30 mailto:sip%3A72316@10.0.1.30, client ip: 10.0.1.254 c1 is registered with k1. c2 is registered with k2. When c1 calls c2, the call flow is as follows: INVITE: c1--k1--k2--c2 200 OK: c1--k1--k2--c2 So far, the INVITE works. c1 and c2 can establish a call. However, when c2 hangs up and sends BYE, the BYE is forwarded all the way to k1, and then k1 gives a 500 server error. The log on k1 seems to indicate k1 was attempting to create a TLS connection to itself instead of using the existing TLS connection to c1 to forward the BYE. BYE: c1 X k1--k2--c2 | |---Connection refused/500 Here is the kamailio log on k1: Mar 16 10:34:21 kamailio.sip.com http://kamailio.sip.com/ /usr/sbin/kamailio[13396]: ERROR: core [tcp_main.c:2740]: tcpconn_1st_send(): connect 10.0.1.30:55999 http://10.0.1.30:55999/ failed (RST) Connection refused Mar 16 10:34:21 kamailio.sip.com http://kamailio.sip.com/ /usr/sbin/kamailio[13396]: ERROR: core [tcp_main.c:2750]: tcpconn_1st_send(): 10.0.1.30:55999 http://10.0.1.30:55999/: connect send for 0x7fc96a68a1a0 failed: Connection refused (111) This is the routing logic for BYE in kamailio.cfg: if (loose_route()) { route(DLGURI); if (is_method(BYE)) { xlog(L_DBG, =BYE $ru from $fu $si:$sp to $du=\n); dlg_manage(); setflag(FLT_ACC); # do accounting ... setflag(FLT_ACCFAILED); # ... even if the transaction fails } else if ( is_method(ACK) ) { # ACK is forwarded statelessy route(NATMANAGE); } else if ( is_method(NOTIFY) ) { # Add Record-Route for in-dialog NOTIFY as per RFC 6665. record_route(); } route(RELAY); exit; } else {.. If I add location based routing for BYE from peer kamailio, then the BYE seems to be forwarded correctly: if (loose_route()) { route(DLGURI); if (is_method(BYE)) { xlog(L_DBG, =BYE $ru from $fu $si:$sp to $du=\n); dlg_manage(); setflag(FLT_ACC); # do accounting ... setflag(FLT_ACCFAILED); # ... even if the transaction fails # If BYE coming from Kamailio peer, route BYE by location $var(peerlist)=$sel(cfg_get.trusted.peers); $var(i) = 0; while($var(i)$(var(peerlist){param.count})) { xlog(L_DBG, =$(var(peerlist){param.count})=$(var(peerlist){param.valueat,$var(i)})=\n); if(src_ip==$(var(peerlist){param.valueat,$var(i)})) { lookup(location); xlog(L_DBG, =BYE from $fu $si:$sp to $du=\n); break; } $var(i) = $var(i) + 1; } } else if ( is_method(ACK) ) { # ACK is forwarded statelessy route(NATMANAGE); } else if ( is_method(NOTIFY) ) { # Add Record-Route for in-dialog NOTIFY as per RFC 6665. record_route(); } route(RELAY); exit; } else {.. My first question is why k1 loose_route sends the BYE to itself instead of the client. Is this a bug? My next question is whether the above location routing for BYE from peer kamailio a good/safe approach. The SIP traces will be sent later to avoid exceeding email size limit. Thanks
[SR-Users] missing BYE when 2 redundant kamailio servers share the same database
This is the SIP log when using location routing for BYE from peer server. pjsua2_good.log Description: Binary data ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Re: [SR-Users] Timeout after t_suspend and failure route
Thanks Daniel! Your patch seems to have fixed it… Mickael From: Daniel-Constantin Mierla [mailto:mico...@gmail.com] Sent: Wednesday, March 18, 2015 8:54 PM To: Mickael Marrache; Kamailio (SER) - Users Mailing List Subject: Re: [SR-Users] Timeout after t_suspend and failure route Can you try with the patch from the next commit? - https://github.com/kamailio/kamailio/commit/6484b199fb48acc2c55f318812f2c968b845ca80 Cheers, Daniel On 18/03/15 17:09, Mickael Marrache wrote: Confirmed. Thanks, Mickael On 18 áîøõ 2015, at 18:06, Daniel-Constantin Mierla mico...@gmail.com wrote: Hello, can't check the code right now, but to confirm, if you use t_on_failure() before suspending the transaction, isn't executed? Cheers, Daniel On 18/03/15 15:56, Mickael Marrache wrote: Hi, When receiving an INVITE, I arm a failure route and set the fr_timer to 30 seconds. After the fr_timer expires, I need to do some operations however I see the failure route is not executed. I guess it is related to the fact the INVITE has not been forwarded? If yes, how can I execute code when a transaction times out after calling t_suspend? Thanks, Mickael ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://twitter.com/#!/miconda http://twitter.com/#%21/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio World Conference, May 27-29, 2015 Berlin, Germany - http://www.kamailioworld.com ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users