[SR-Users] help with kamailio rpm made from source

Dmitry mbike2000ru at yahoo.com
Thu Sep 15 12:39:50 CEST 2016


Hello
I took this spec from suse.
It generates no errors.
When I installed from the RPM I had made - the phone register, but
The phone sends a REGISTER and the KAmailio sends 200ok back to the phone (so no NONCE authorization) and no logs during it.
In default.cfg I set L_DBG but no logs are generated during registering a phone.
And I see no AMQP messages (I set to 1 Kazoo_enable in the SPEC file).
Why there are no logs during register (I saw register in tcpdump)?
 

    On Wednesday, September 14, 2016 7:42 PM, Daniel-Constantin Mierla <miconda at gmail.com> wrote:
 

  Then you just need add those files in various packages inside the spec file, so they are not detected to be orphaned. Maybe you can inspire from:   -https://build.opensuse.org/package/view_file/home:kamailio:v4.3.x-rpms/kamailio43/kamailio.spec?expand=1
  Cheers,
 Daniel
 
 On 14/09/16 16:35, Dmitry wrote:
  
  4.3.4 version is for Kazoo It is on production server currently. 
  I need to rebuild the current RPM so as to apply patches. 
  But first I want to get a working Kamailio and only after it I will apply the patches. 
  I think I may take a list of modules from the production Kazoo-kamailio and rearchive the tar.gz because now the Fedora 18 rpmbuild gives a lot of files: 
  RPM build errors:     Installed (but unpackaged) file(s) found:    /usr/lib64/kamailio/modules/auth_xkeys.so    /usr/lib64/kamailio/modules/dmq_usrloc.so    /usr/lib64/kamailio/modules/ims_charging.so    /usr/lib64/kamailio/modules/jsonrpc-s.so    /usr/lib64/kamailio/modules/mohqueue.so    /usr/lib64/kamailio/modules/nosip.so    /usr/lib64/kamailio/modules/rtjson.so    /usr/lib64/kamailio/modules/rtpengine.so    /usr/lib64/kamailio/modules/statsd.so    /usr/lib64/kamailio/modules/tcpops.so    /usr/lib64/kamailio/modules/tsilo.so    /usr/share/doc/kamailio/modules/README.auth_xkeys    /usr/share/doc/kamailio/modules/README.dmq_usrloc    /usr/share/doc/kamailio/modules/README.ims_charging    /usr/share/doc/kamailio/modules/README.ims_registrar_scscf    /usr/share/doc/kamailio/modules/README.jsonrpc-s    /usr/share/doc/kamailio/modules/README.mohqueue    /usr/share/doc/kamailio/modules/README.nosip    /usr/share/doc/kamailio/modules/README.rtjson    /usr/share/doc/kamailio/modules/README.rtpengine    /usr/share/doc/kamailio/modules/README.statsd    /usr/share/doc/kamailio/modules/README.tcpops    /usr/share/doc/kamailio/modules/README.tsilo    /usr/share/snmp/mibs/KAMAILIO-MIB    /usr/share/snmp/mibs/KAMAILIO-REG-MIB    /usr/share/snmp/mibs/KAMAILIO-SIP-COMMON-MIB    /usr/share/snmp/mibs/KAMAILIO-SIP-SERVER-MIB    /usr/share/snmp/mibs/KAMAILIO-TC 
  
  
  
 
      On Wednesday, September 14, 2016 5:05 PM, Daniel-Constantin Mierla <miconda at gmail.com> wrote:
  
 
    Hello, any reason not to use series 4.4.x? Iirc, the latest spec that got update on 4.4 are those for oracle enterprise linux, perhaps is something that you can reuse a lot for upgrading to the centos flavour. On the other hand, you can use opensuse build service if you want to build yourself, the spec from the kamailio project there is up to date and the ones for 4.3 should still be there. Anyhow, as I said, I would recommend to go with 4.4.x version. Cheers,
 Daniel
  
  On 13/09/16 16:51, Dmitry wrote:
  
  
  Hello 
  I used: 
  kamailio-4.3.4_src.tar.gz
  
  /kamailio-4.3.4/pkg/kamailio/centos/6/
  
  I found several spec files: [root at kazootest2 kamailio-4.3.4]# find . -name *.spec ./pkg/ser/suse/ser.spec ./pkg/ser/opensuse/ser.spec ./pkg/kamailio/centos/6/kamailio.spec ./pkg/kamailio/fedora/17/kamailio.spec ./pkg/kamailio/fedora/18/kamailio.spec 
  Which one is maintained? 
 
      On Tuesday, September 13, 2016 5:56 PM, Daniel-Constantin Mierla <miconda at gmail.com> wrote:
  
 
    Hello, which rpm spec did you use? There are several of them in the source tree, some not really  maintained. Cheers,
 Daniel
  
  On 13/09/16 14:33, Dmitry wrote:
  
  Hello, All 
  When I take a SPEC file from kamailio....tar.gz -  during rpmbuild I encounter: 
  Checking for unpackaged file(s): /usr/lib/rpm/check-files  /root/rpmbuild/BUILDROOT/kamailio-4.3.4-0.0.el6.x86_64 error: Installed (but unpackaged) file(s) found:   /usr/lib64/kamailio/modules/auth_xkeys.so   /usr/lib64/kamailio/modules/dmq_usrloc.so   /usr/lib64/kamailio/modules/rtjson.so   /usr/lib64/kamailio/modules/statsd.so   /usr/lib64/kamailio/modules/tcpops.so   /usr/share/doc/kamailio/modules/README.auth_xkeys   /usr/share/doc/kamailio/modules/README.dmq_usrloc   /usr/share/doc/kamailio/modules/README.ims_registrar_scscf   /usr/share/doc/kamailio/modules/README.rtjson   /usr/share/doc/kamailio/modules/README.statsd   /usr/share/doc/kamailio/modules/README.tcpops 
  
  RPM build errors:     Installed (but unpackaged) file(s) found:   /usr/lib64/kamailio/modules/auth_xkeys.so   /usr/lib64/kamailio/modules/dmq_usrloc.so   /usr/lib64/kamailio/modules/rtjson.so   /usr/lib64/kamailio/modules/statsd.so   /usr/lib64/kamailio/modules/tcpops.so   /usr/share/doc/kamailio/modules/README.auth_xkeys   /usr/share/doc/kamailio/modules/README.dmq_usrloc   /usr/share/doc/kamailio/modules/README.ims_registrar_scscf   /usr/share/doc/kamailio/modules/README.rtjson   /usr/share/doc/kamailio/modules/README.statsd   /usr/share/doc/kamailio/modules/README.tcpops [root at kazootest2 rpmbuild]# mcedit SPECS/kamailio.spec 
  
  
  Before I simply added all these modules to the %files  sectiion - but kamailio does not start with it. 
  How can I exclude these modules from bulding? I  mean in SPEC file. 
  When I compile by hand i use exclude_modules in  modules.list. 
  
  
  
  
 
      On Friday, September 9, 2016 4:48 PM,  Dmitry <mbike2000ru at yahoo.com> wrote:
  
 
         I see : 
  
  ERROR: <core> [tcp_main.c:2790]: tcp_init():  bind(9, 0x7fd50bd8ee34, 16) on  127.0.0.1:5060 : Address  already in use 
  But I commented out all TCP  (listen TCP) so why is this error happen? 
 
          On Friday, September 9,  2016 10:52 AM, ycaner <yasin.caner at netgsm.com.tr> wrote:
  
 
  Hello; 
 it is clear that kamailio  crashs. Could you start with "kamailio -E  -ddd"
 and then see logs. it gives  hit. Probably libraries has some  conflicts.
 
 
 
 
 --
 View this message in  context: http://sip-router.1086192.n5.nabble.com/help-with-kamailio-rpm-made-from-source-tp151601p151626.html
 Sent from the Users mailing  list archive at Nabble.com.
 
_______________________________________________
 SIP Express Router (SER)  and Kamailio (OpenSER) - sr-users  mailing list
 sr-users at 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 at lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
 
  
 -- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda   
 
      
  
 -- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda   
 
      
 
 -- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda 

   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160915/9fcb7b08/attachment.html>


More information about the sr-users mailing list