From miconda at gmail.com Wed Aug 1 09:57:36 2012 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Wed, 01 Aug 2012 09:57:36 +0200 Subject: [SR-Users] Core fm_realloc function In-Reply-To: References: <50059EC2.6060409@gmail.com> <5007089F.708@digitro.com.br> <50163CE8.2050903@gmail.com> <5016AA13.9030806@gmail.com> <5016C320.5040402@gmail.com> <50177A05.5020104@gmail.com> Message-ID: <5018E170.9040405@gmail.com> Hello, On 7/31/12 3:39 PM, Bruno Bresciani wrote: > Hello, > > I didn't know that log messages related to memory operations can be > controlled by global parameter, but I like to know if is recommendable > I recompile kamailio using q_malloc (default) and not f_malloc... > memory operations using q_malloc is more reliable and avoid problems > or crashes or it is only more suitable for debugging? What do you > suggest Daniel? q_malloc is more suitable for debugging. > > The 'get_statistics all' command is avaliable by a specific module? I > run 'kamctl fifo get_statistics all' and return '500 command > 'get_statistics' not available' Do you have kex module loaded? What is the output of 'kamctl fifo which'? > > For while is impossible to start a new installation, first because I > don't know how much time I will spend to port and second because I am > involved with other developments and I have no time to make this. I > know that 3.1 is no longer a official branch but now start a new > installation it's very very difficult, my in intention is discover > what caused the crash and if exists a way to fix or prevent it. Discovering may require additional patches, like more debug messages in the C code, that's why is better to start with the latest stable. Cheers, Daniel > > Best Regards > > 2012/7/31 Daniel-Constantin Mierla > > > Hello, > > > On 7/30/12 9:01 PM, Bruno Bresciani wrote: >> Hi, >> >> I compiled kamailio with MEMDBG = 0 because I didn't want the >> memory debug in kamailio log, but I didn't know these turns on >> f_malloc and disabling q_malloc... > the log messages related to memory operations can be controlled by > global parameters memdbg and memlog. > > >> >> Probably the size of shared memory that I start kamailio is 32MB >> because I didn't gave a different -m parameter value, exist a >> command to verify this information? > > kamctl fifo get_statistics all > > and see the shared memory total value. It will be interesting to > see available shared memory as well. > > >> >> At moment that crash happened, there were few registered users >> agents and were being made tests with register and calls with TLS >> protocol. I got only the two situations that I showed at first email. > > If you plan to start a new installation, I strongly recommend 3.3 > branch, the code is more actual and easier to debug. 3.1 is no > longer an official maintained branch, those being now 3.3 and 3.2. > I'm looking at this issue to be sure it is no longer in latest stable. > > Cheers, > Daniel > > -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw -------------- next part -------------- An HTML attachment was scrubbed... URL: From miconda at gmail.com Wed Aug 1 09:59:21 2012 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Wed, 01 Aug 2012 09:59:21 +0200 Subject: [SR-Users] cannot allocate memory & increase shared memory In-Reply-To: References: Message-ID: <5018E1D9.2000509@gmail.com> Hello, what version are you running? On 7/31/12 3:06 PM, Alex Solt wrote: > Hi, > > We are getting "cannot allocate memory" error in the log file. I was > wondering which one is the right way to increase the shared memory: > > 1) adding the following to /etc/openser/openserctl > > STARTOPTIONS="-m 128" this is used when you start via ctl tool. > > > 2) modify the following in /etc/default/openser > > MEMORY=1024 this is used when you start via init.d script. Cheers, Daniel -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw -------------- next part -------------- An HTML attachment was scrubbed... URL: From danb.lists at gmail.com Wed Aug 1 12:05:32 2012 From: danb.lists at gmail.com (DanB) Date: Wed, 01 Aug 2012 12:05:32 +0200 Subject: [SR-Users] Segfault running 3.3.0 with registrar/p_usrloc/path In-Reply-To: References: Message-ID: <5018FF6C.9060901@gmail.com> Hey Guys, Just a quick follow up to see if anything happened with p_usrloc fixup. Any chance to expect it running on new 3.3.1 release? Ta, DanB From marius.zbihlei at 1and1.ro Wed Aug 1 12:21:58 2012 From: marius.zbihlei at 1and1.ro (Marius Zbihlei) Date: Wed, 1 Aug 2012 13:21:58 +0300 Subject: [SR-Users] Segfault running 3.3.0 with registrar/p_usrloc/path In-Reply-To: <5018FF6C.9060901@gmail.com> References: <5018FF6C.9060901@gmail.com> Message-ID: <50190346.9060604@1and1.ro> On 08/01/2012 01:05 PM, DanB wrote: > Hey Guys, > > Just a quick follow up to see if anything happened with p_usrloc fixup. > Any chance to expect it running on new 3.3.1 release? Hello Dan, At the moment the GRUU/outbound patch is integrated into the master branch([1]). I don't know exactly if this is a bug (so it will be cherry-picked to 3.3.x) or a feature, that will be present in upcoming 3.4. IMHO, I will treat this as a bug, so I will cherry-pick the patch and apply it to 3.3.x as well. If somebody objects please let's comment on the reasons. Cheers, Marius [1] http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1f6bfa0b3ba15201c2ca3e2387a9f9e81e989643 > Ta, > DanB > > _______________________________________________ > 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 > > -- Zbihlei Marius Head of Linux Development Services Romania 1&1 Internet Development srl Tel KA: 754-9152 Str Mircea Eliade 18 Tel RO: +40-31-223-9152 Sect 1, Bucuresti mailto: marius.zbihlei at 1and1.ro 71295, Romania From miconda at gmail.com Wed Aug 1 13:43:49 2012 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Wed, 01 Aug 2012 13:43:49 +0200 Subject: [SR-Users] Segfault running 3.3.0 with registrar/p_usrloc/path In-Reply-To: <50190346.9060604@1and1.ro> References: <5018FF6C.9060901@gmail.com> <50190346.9060604@1and1.ro> Message-ID: <50191675.1070905@gmail.com> Hello, it's a bug, because it does not work otherwise. Go ahead and backport. Cheers, Daniel On 8/1/12 12:21 PM, Marius Zbihlei wrote: > On 08/01/2012 01:05 PM, DanB wrote: >> Hey Guys, >> >> Just a quick follow up to see if anything happened with p_usrloc fixup. >> Any chance to expect it running on new 3.3.1 release? > Hello Dan, > > At the moment the GRUU/outbound patch is integrated into the master > branch([1]). I don't know exactly if this is a bug (so it will be > cherry-picked to 3.3.x) or a feature, that will be present in upcoming > 3.4. IMHO, I will treat this as a bug, so I will cherry-pick the patch > and apply it to 3.3.x as well. If somebody objects please let's > comment on the reasons. > > Cheers, > Marius > > [1] > http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1f6bfa0b3ba15201c2ca3e2387a9f9e81e989643 > >> Ta, >> DanB >> >> _______________________________________________ >> 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://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw From gnugk at telegroup.com.ua Wed Aug 1 17:33:27 2012 From: gnugk at telegroup.com.ua (Andrew O. Zhukov) Date: Wed, 01 Aug 2012 18:33:27 +0300 Subject: [SR-Users] postgres in kamailio 3.3.0-9.1 Message-ID: <50194C47.1030602@telegroup.com.ua> The same trouble with: completely updated Centos 5 the last Kamailio RPM from http://download.opensuse.org/repositories/home:/kamailio:/telephony/RedHat_RHEL-5/ and postgresql-libs.x86_64.8.1.23-5.el5_8 several month ago I try postgresql84-libs.x86_64 with the same result. It's not possible to use Kamailio RPM with postgres backend. Need to assemble it manually. Bruno Bresciani wrote: > Hi, > > I configure the Kamailio 3.1.2 with postgres but I cann't start. In the > log file is generated the following error: > > // > > ERROR: load_module: could not open module > postgres.so>: /home2/local/kamailio/lib/kamailio/modules/db_postgres.so: > undefined symbol: PQdescribePrepared Have you built Kamailio yourself? Looks like db_postgres.so can not find the postgresql libraries, or it was built with a different library version. Maybe ldd can give you some details: ldd /home2/local/kamailio/lib/kamailio/modules/db_postgres.so regards Klaus From miconda at gmail.com Wed Aug 1 22:00:14 2012 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Wed, 01 Aug 2012 22:00:14 +0200 Subject: [SR-Users] postgres in kamailio 3.3.0-9.1 In-Reply-To: <50194C47.1030602@telegroup.com.ua> References: <50194C47.1030602@telegroup.com.ua> Message-ID: <50198ACE.7030909@gmail.com> Hello, can you paste here the output of following command executed in the db_postgres module directory: make Q=0 First run 'make proper' in the same directory. I want to see the compile flags and linked libs used for your system. Cheers, Daniel On 8/1/12 5:33 PM, Andrew O. Zhukov wrote: > The same trouble with: > completely updated Centos 5 > the last Kamailio RPM from > http://download.opensuse.org/repositories/home:/kamailio:/telephony/RedHat_RHEL-5/ > > and > postgresql-libs.x86_64.8.1.23-5.el5_8 > > several month ago I try > postgresql84-libs.x86_64 > with the same result. > > It's not possible to use Kamailio RPM with postgres backend. Need to > assemble it manually. > > > Bruno Bresciani wrote: > > Hi, > > > > I configure the Kamailio 3.1.2 with postgres but I cann't start. In the > > log file is generated the following error: > > > > // > > > > ERROR: load_module: could not open module > > > postgres.so>: > /home2/local/kamailio/lib/kamailio/modules/db_postgres.so: > > undefined symbol: PQdescribePrepared > > Have you built Kamailio yourself? Looks like db_postgres.so can not find > the postgresql libraries, or it was built with a different library > version. > > Maybe ldd can give you some details: > > ldd /home2/local/kamailio/lib/kamailio/modules/db_postgres.so > > regards > Klaus > > > _______________________________________________ > 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://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw From infoananthk at gmail.com Thu Aug 2 01:54:03 2012 From: infoananthk at gmail.com (Ananth Kollipara) Date: Thu, 2 Aug 2012 05:24:03 +0530 Subject: [SR-Users] Regarding - Add your own module Message-ID: Hi Alex, Thanks for the response. Yes, i meant developing of a custom module and integrating with ser/kamailio. I am looking for the following. 1) On receiving 302 response, proxy shall use the contact header and re-send the msg to the correct destination. 2) Integration of kamailio with Times Ten database (query Times ten DB) Please advice. Regards, Ananth On Tue, Jul 31, 2012 at 3:30 PM, wrote: > Send sr-users mailing list submissions to > sr-users at lists.sip-router.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > or, via email, send a message with subject or body 'help' to > sr-users-request at lists.sip-router.org > > You can reach the person managing the list at > sr-users-owner at lists.sip-router.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of sr-users digest..." > > > Today's Topics: > > 1. Add Own Plug-in (Ananth Kollipara) > 2. Re: Add Own Plug-in (Alex Balashov) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 31 Jul 2012 14:33:52 +0530 > From: Ananth Kollipara > Subject: [SR-Users] Add Own Plug-in > To: sr-users at lists.sip-router.org > Message-ID: > ZQ at mail.gmail.com> > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > Can you please provide the steps to add a plug-in? > > Regards, > Ananth > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > http://lists.sip-router.org/pipermail/sr-users/attachments/20120731/7311abed/attachment.html > > > > ------------------------------ > > Message: 2 > Date: Tue, 31 Jul 2012 05:10:36 -0400 > From: Alex Balashov > Subject: Re: [SR-Users] Add Own Plug-in > To: sr-users at lists.sip-router.org > Message-ID: <5017A10C.2020107 at evaristesys.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 07/31/2012 05:03 AM, Ananth Kollipara wrote: > > > Can you please provide the steps to add a plug-in? > > You mean develop a custom module for Kamailio? > > You'd want to start here: > > http://www.asipto.com/pub/kamailio-devel-guide/ > > However, perhaps a custom module is not the fastest or most optimal way > to achieve what you want. There may already be facilities to > accommodate your requirements. So, a useful start to the conversation > might be: what do you want to accomplish? > > -- Alex > > -- > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Fax: +1-404-961-1892 > Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ > > > > ------------------------------ > > _______________________________________________ > sr-users mailing list > sr-users at lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > > End of sr-users Digest, Vol 86, Issue 85 > **************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From abalashov at evaristesys.com Thu Aug 2 01:59:42 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Wed, 01 Aug 2012 19:59:42 -0400 Subject: [SR-Users] Regarding - Add your own module Message-ID: Does TimesTen have a UnixODBC connector? If so, you can use existing Kamailio modules.? -- Alex -- Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Web: http://www.evaristesys.com/Ananth Kollipara wrote:Hi Alex, Thanks for the response. Yes, i meant developing of a custom module and integrating with ser/kamailio. I am looking for the following. 1) On receiving 302 response, proxy shall use the contact header and re-send the msg to the correct destination. 2) Integration of kamailio with Times Ten database (query Times ten DB) Please advice. Regards, Ananth On Tue, Jul 31, 2012 at 3:30 PM, wrote: Send sr-users mailing list submissions to ? ? ? ? sr-users at lists.sip-router.org To subscribe or unsubscribe via the World Wide Web, visit ? ? ? ? http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users or, via email, send a message with subject or body 'help' to ? ? ? ? sr-users-request at lists.sip-router.org You can reach the person managing the list at ? ? ? ? sr-users-owner at lists.sip-router.org When replying, please edit your Subject line so it is more specific than "Re: Contents of sr-users digest..." Today's Topics: ? ?1. Add Own Plug-in (Ananth Kollipara) ? ?2. Re: Add Own Plug-in (Alex Balashov) ---------------------------------------------------------------------- Message: 1 Date: Tue, 31 Jul 2012 14:33:52 +0530 From: Ananth Kollipara Subject: [SR-Users] Add Own Plug-in To: sr-users at lists.sip-router.org Message-ID: ? ? ? ? Content-Type: text/plain; charset="iso-8859-1" Hi, Can you please provide the steps to add a plug-in? Regards, Ananth -------------- next part -------------- An HTML attachment was scrubbed... URL: ------------------------------ Message: 2 Date: Tue, 31 Jul 2012 05:10:36 -0400 From: Alex Balashov Subject: Re: [SR-Users] Add Own Plug-in To: sr-users at lists.sip-router.org Message-ID: <5017A10C.2020107 at evaristesys.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 07/31/2012 05:03 AM, Ananth Kollipara wrote: > Can you please provide the steps to add a plug-in? You mean develop a custom module for Kamailio? You'd want to start here: http://www.asipto.com/pub/kamailio-devel-guide/ However, perhaps a custom module is not the fastest or most optimal way to achieve what you want. ?There may already be facilities to accommodate your requirements. ?So, a useful start to the conversation might be: what do you want to accomplish? -- Alex -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ ------------------------------ _______________________________________________ sr-users mailing list sr-users at lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users End of sr-users Digest, Vol 86, Issue 85 **************************************** -------------- next part -------------- An HTML attachment was scrubbed... URL: From infoananthk at gmail.com Thu Aug 2 02:09:17 2012 From: infoananthk at gmail.com (Ananth Kollipara) Date: Thu, 2 Aug 2012 05:39:17 +0530 Subject: [SR-Users] Regarding - Add your own module In-Reply-To: References: Message-ID: Yes, it does. What about dynamic routing? Regards, Ananth On Thu, Aug 2, 2012 at 5:29 AM, Alex Balashov wrote: > > Does TimesTen have a UnixODBC connector? If so, you can use existing > Kamailio modules. > > > > -- Alex > > -- > Sent from my Samsung mobile, and thus lacking in the refinement one might > expect from a proper keyboard. > > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Web: http://www.evaristesys.com/ > > Ananth Kollipara wrote: > Hi Alex, > > Thanks for the response. Yes, i meant developing of a custom module and > integrating with ser/kamailio. I am looking for the following. > > 1) On receiving 302 response, proxy shall use the contact header and > re-send the msg to the correct destination. > 2) Integration of kamailio with Times Ten database (query Times ten DB) > > Please advice. > > Regards, > Ananth > > > On Tue, Jul 31, 2012 at 3:30 PM, wrote: > >> Send sr-users mailing list submissions to >> sr-users at lists.sip-router.org >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> or, via email, send a message with subject or body 'help' to >> sr-users-request at lists.sip-router.org >> >> You can reach the person managing the list at >> sr-users-owner at lists.sip-router.org >> >> When replying, please edit your Subject line so it is more specific >> than "Re: Contents of sr-users digest..." >> >> >> Today's Topics: >> >> 1. Add Own Plug-in (Ananth Kollipara) >> 2. Re: Add Own Plug-in (Alex Balashov) >> >> >> ---------------------------------------------------------------------- >> >> Message: 1 >> Date: Tue, 31 Jul 2012 14:33:52 +0530 >> From: Ananth Kollipara >> Subject: [SR-Users] Add Own Plug-in >> To: sr-users at lists.sip-router.org >> Message-ID: >> > ZQ at mail.gmail.com> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Hi, >> >> Can you please provide the steps to add a plug-in? >> >> Regards, >> Ananth >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: < >> http://lists.sip-router.org/pipermail/sr-users/attachments/20120731/7311abed/attachment.html >> > >> >> ------------------------------ >> >> Message: 2 >> Date: Tue, 31 Jul 2012 05:10:36 -0400 >> From: Alex Balashov >> Subject: Re: [SR-Users] Add Own Plug-in >> To: sr-users at lists.sip-router.org >> Message-ID: <5017A10C.2020107 at evaristesys.com> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> On 07/31/2012 05:03 AM, Ananth Kollipara wrote: >> >> > Can you please provide the steps to add a plug-in? >> >> You mean develop a custom module for Kamailio? >> >> You'd want to start here: >> >> http://www.asipto.com/pub/kamailio-devel-guide/ >> >> However, perhaps a custom module is not the fastest or most optimal way >> to achieve what you want. There may already be facilities to >> accommodate your requirements. So, a useful start to the conversation >> might be: what do you want to accomplish? >> >> -- Alex >> >> -- >> Alex Balashov - Principal >> Evariste Systems LLC >> 235 E Ponce de Leon Ave >> Suite 106 >> Decatur, GA 30030 >> Tel: +1-678-954-0670 >> Fax: +1-404-961-1892 >> Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ >> >> >> >> ------------------------------ >> >> _______________________________________________ >> sr-users mailing list >> sr-users at lists.sip-router.org >> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> >> >> End of sr-users Digest, Vol 86, Issue 85 >> **************************************** >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From abalashov at evaristesys.com Thu Aug 2 02:11:06 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Wed, 01 Aug 2012 20:11:06 -0400 Subject: [SR-Users] Regarding - Add your own module In-Reply-To: References: Message-ID: <5019C59A.7000301@evaristesys.com> What about it? On 08/01/2012 08:09 PM, Ananth Kollipara wrote: > Yes, it does. What about dynamic routing? > > Regards, > Ananth > > On Thu, Aug 2, 2012 at 5:29 AM, Alex Balashov > wrote: > > > Does TimesTen have a UnixODBC connector? If so, you can use existing > Kamailio modules. > > > > -- Alex > > -- > Sent from my Samsung mobile, and thus lacking in the refinement one > might expect from a proper keyboard. > > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Web: http://www.evaristesys.com/ > > Ananth Kollipara > wrote: > Hi Alex, > > Thanks for the response. Yes, i meant developing of a custom module > and integrating with ser/kamailio. I am looking for the following. > > 1) On receiving 302 response, proxy shall use the contact header and > re-send the msg to the correct destination. > 2) Integration of kamailio with Times Ten database (query Times ten DB) > > Please advice. > > Regards, > Ananth > > > On Tue, Jul 31, 2012 at 3:30 PM, > > wrote: > > Send sr-users mailing list submissions to > sr-users at lists.sip-router.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > or, via email, send a message with subject or body 'help' to > sr-users-request at lists.sip-router.org > > > You can reach the person managing the list at > sr-users-owner at lists.sip-router.org > > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of sr-users digest..." > > > Today's Topics: > > 1. Add Own Plug-in (Ananth Kollipara) > 2. Re: Add Own Plug-in (Alex Balashov) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 31 Jul 2012 14:33:52 +0530 > From: Ananth Kollipara > > Subject: [SR-Users] Add Own Plug-in > To: sr-users at lists.sip-router.org > > Message-ID: > > > > Content-Type: text/plain; charset="iso-8859-1" > > Hi, > > Can you please provide the steps to add a plug-in? > > Regards, > Ananth > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > > ------------------------------ > > Message: 2 > Date: Tue, 31 Jul 2012 05:10:36 -0400 > From: Alex Balashov > > Subject: Re: [SR-Users] Add Own Plug-in > To: sr-users at lists.sip-router.org > > Message-ID: <5017A10C.2020107 at evaristesys.com > > > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > On 07/31/2012 05:03 AM, Ananth Kollipara wrote: > > > Can you please provide the steps to add a plug-in? > > You mean develop a custom module for Kamailio? > > You'd want to start here: > > http://www.asipto.com/pub/kamailio-devel-guide/ > > However, perhaps a custom module is not the fastest or most > optimal way > to achieve what you want. There may already be facilities to > accommodate your requirements. So, a useful start to the > conversation > might be: what do you want to accomplish? > > -- Alex > > -- > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Fax: +1-404-961-1892 > Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ > > > > ------------------------------ > > _______________________________________________ > sr-users mailing list > sr-users at lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > > End of sr-users Digest, Vol 86, Issue 85 > **************************************** > > > -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ From infoananthk at gmail.com Thu Aug 2 02:12:32 2012 From: infoananthk at gmail.com (Ananth Kollipara) Date: Thu, 2 Aug 2012 05:42:32 +0530 Subject: [SR-Users] Regarding - Add your own module In-Reply-To: <5019C59A.7000301@evaristesys.com> References: <5019C59A.7000301@evaristesys.com> Message-ID: Which module does dynamic routing? On Thu, Aug 2, 2012 at 5:41 AM, Alex Balashov wrote: > > What about it? > > > On 08/01/2012 08:09 PM, Ananth Kollipara wrote: > > Yes, it does. What about dynamic routing? >> >> Regards, >> Ananth >> >> On Thu, Aug 2, 2012 at 5:29 AM, Alex Balashov > >> wrote: >> >> >> Does TimesTen have a UnixODBC connector? If so, you can use existing >> Kamailio modules. >> >> >> >> -- Alex >> >> -- >> Sent from my Samsung mobile, and thus lacking in the refinement one >> might expect from a proper keyboard. >> >> Alex Balashov - Principal >> Evariste Systems LLC >> 235 E Ponce de Leon Ave >> Suite 106 >> Decatur, GA 30030 >> Tel: +1-678-954-0670 >> Web: http://www.evaristesys.com/ >> >> Ananth Kollipara > **> wrote: >> Hi Alex, >> >> Thanks for the response. Yes, i meant developing of a custom module >> and integrating with ser/kamailio. I am looking for the following. >> >> 1) On receiving 302 response, proxy shall use the contact header and >> re-send the msg to the correct destination. >> 2) Integration of kamailio with Times Ten database (query Times ten >> DB) >> >> Please advice. >> >> Regards, >> Ananth >> >> >> On Tue, Jul 31, 2012 at 3:30 PM, >> >> >> >> wrote: >> >> Send sr-users mailing list submissions to >> sr-users at lists.sip-router.org > router.org > >> >> >> To subscribe or unsubscribe via the World Wide Web, visit >> http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users >> or, via email, send a message with subject or body 'help' to >> sr-users-request at lists.sip-**router.org >> >> > >> >> >> You can reach the person managing the list at >> sr-users-owner at lists.sip-**router.org >> >> > >> >> >> When replying, please edit your Subject line so it is more >> specific >> than "Re: Contents of sr-users digest..." >> >> >> Today's Topics: >> >> 1. Add Own Plug-in (Ananth Kollipara) >> 2. Re: Add Own Plug-in (Alex Balashov) >> >> >> ------------------------------**------------------------------** >> ---------- >> >> Message: 1 >> Date: Tue, 31 Jul 2012 14:33:52 +0530 >> From: Ananth Kollipara > **> >> >> Subject: [SR-Users] Add Own Plug-in >> To: sr-users at lists.sip-router.org >> >> > >> Message-ID: >> >> > mail.gmail.com >> > >> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Hi, >> >> Can you please provide the steps to add a plug-in? >> >> Regards, >> Ananth >> -------------- next part -------------- >> An HTML attachment was scrubbed... >> URL: >> > attachments/20120731/7311abed/**attachment.html >> > >> >> ------------------------------ >> >> Message: 2 >> Date: Tue, 31 Jul 2012 05:10:36 -0400 >> From: Alex Balashov > >> >> >> Subject: Re: [SR-Users] Add Own Plug-in >> To: sr-users at lists.sip-router.org >> >> > >> Message-ID: <5017A10C.2020107 at evaristesys.**com<5017A10C.2020107 at evaristesys.com> >> >> >> >> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> On 07/31/2012 05:03 AM, Ananth Kollipara wrote: >> >> > Can you please provide the steps to add a plug-in? >> >> You mean develop a custom module for Kamailio? >> >> You'd want to start here: >> >> http://www.asipto.com/pub/**kamailio-devel-guide/ >> >> However, perhaps a custom module is not the fastest or most >> optimal way >> to achieve what you want. There may already be facilities to >> accommodate your requirements. So, a useful start to the >> conversation >> might be: what do you want to accomplish? >> >> -- Alex >> >> -- >> Alex Balashov - Principal >> Evariste Systems LLC >> 235 E Ponce de Leon Ave >> Suite 106 >> Decatur, GA 30030 >> Tel: +1-678-954-0670 >> Fax: +1-404-961-1892 >> Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ >> >> >> >> ------------------------------ >> >> ______________________________**_________________ >> sr-users mailing list >> sr-users at lists.sip-router.org > router.org > >> >> http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users >> >> >> End of sr-users Digest, Vol 86, Issue 85 >> ****************************************** >> >> >> >> > > -- > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Fax: +1-404-961-1892 > Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From abalashov at evaristesys.com Thu Aug 2 02:15:50 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Wed, 01 Aug 2012 20:15:50 -0400 Subject: [SR-Users] Regarding - Add your own module In-Reply-To: References: <5019C59A.7000301@evaristesys.com> Message-ID: <5019C6B6.7080906@evaristesys.com> On 08/01/2012 08:12 PM, Ananth Kollipara wrote: > Which module does dynamic routing? Lots of modules do various kinds of dynamic routing: drouting, lcr, dialplan, etc. But, they're rather formulaic. If you're after something custom, just do it yourself using your TimesTen DB, db_unixodbc, and the sqlops module, which allows custom SQL queries and interactions: http://www.kamailio.org/docs/modules/3.3.x/modules_k/sqlops.html And, sending 302 redirects with the desired Contact header is very easy: append_to_reply("Contact: \r\n"); sl_send_reply("302", "Moved Temporarily"); -- Alex -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ From infoananthk at gmail.com Thu Aug 2 02:30:10 2012 From: infoananthk at gmail.com (Ananth Kollipara) Date: Thu, 2 Aug 2012 06:00:10 +0530 Subject: [SR-Users] Regarding - Add your own module In-Reply-To: <5019C6B6.7080906@evaristesys.com> References: <5019C59A.7000301@evaristesys.com> <5019C6B6.7080906@evaristesys.com> Message-ID: I want the proxy to re-route the request, without informing the client. Lets say - proxy receives message, forwards to back-end servers. If back-end server responds with 302 response, proxy shall use the contact header and then forwards the message to the correct backend server. Do we have support for this? On Thu, Aug 2, 2012 at 5:45 AM, Alex Balashov wrote: > On 08/01/2012 08:12 PM, Ananth Kollipara wrote: > > Which module does dynamic routing? >> > > Lots of modules do various kinds of dynamic routing: drouting, lcr, > dialplan, etc. > > But, they're rather formulaic. If you're after something custom, just do > it yourself using your TimesTen DB, db_unixodbc, and the sqlops module, > which allows custom SQL queries and interactions: > > http://www.kamailio.org/docs/**modules/3.3.x/modules_k/**sqlops.html > > And, sending 302 redirects with the desired Contact header is very easy: > > append_to_reply("Contact: \r\n"); > sl_send_reply("302", "Moved Temporarily"); > > > -- Alex > > -- > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Fax: +1-404-961-1892 > Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From abalashov at evaristesys.com Thu Aug 2 02:31:19 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Wed, 01 Aug 2012 20:31:19 -0400 Subject: [SR-Users] Regarding - Add your own module In-Reply-To: References: <5019C59A.7000301@evaristesys.com> <5019C6B6.7080906@evaristesys.com> Message-ID: <5019CA57.20804@evaristesys.com> Oh, I see. Yes, the 'uac_redirect' module can consume 302s. On 08/01/2012 08:30 PM, Ananth Kollipara wrote: > I want the proxy to re-route the request, without informing the client. > Lets say - proxy receives message, forwards to back-end servers. If > back-end server responds with 302 response, proxy shall use the contact > header and then forwards the message to the correct backend server. Do > we have support for this? > > On Thu, Aug 2, 2012 at 5:45 AM, Alex Balashov > wrote: > > On 08/01/2012 08:12 PM, Ananth Kollipara wrote: > > Which module does dynamic routing? > > > Lots of modules do various kinds of dynamic routing: drouting, lcr, > dialplan, etc. > > But, they're rather formulaic. If you're after something custom, > just do it yourself using your TimesTen DB, db_unixodbc, and the > sqlops module, which allows custom SQL queries and interactions: > > http://www.kamailio.org/docs/__modules/3.3.x/modules_k/__sqlops.html > > > And, sending 302 redirects with the desired Contact header is very easy: > > append_to_reply("Contact: \r\n"); > sl_send_reply("302", "Moved Temporarily"); > > > -- Alex > > -- > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Fax: +1-404-961-1892 > Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ > > -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ From forums at akan.net Thu Aug 2 02:33:35 2012 From: forums at akan.net (Akan) Date: Wed, 01 Aug 2012 19:33:35 -0500 Subject: [SR-Users] postgres in kamailio 3.3.0-9.1 In-Reply-To: <50198ACE.7030909@gmail.com> References: <50194C47.1030602@telegroup.com.ua> <50198ACE.7030909@gmail.com> Message-ID: <5019CADF.4070703@akan.net> I had to upgrade to the lastest version of Postgres to get past this error but then ran into the problem of "undefined symbol TLSv1_method" Thanks Nathaniel On 8/1/2012 3:00 PM, Daniel-Constantin Mierla wrote: > Hello, > > can you paste here the output of following command executed in the > db_postgres module directory: > > make Q=0 > > First run 'make proper' in the same directory. I want to see the > compile flags and linked libs used for your system. > > Cheers, > Daniel > > On 8/1/12 5:33 PM, Andrew O. Zhukov wrote: >> The same trouble with: >> completely updated Centos 5 >> the last Kamailio RPM from >> http://download.opensuse.org/repositories/home:/kamailio:/telephony/RedHat_RHEL-5/ >> >> and >> postgresql-libs.x86_64.8.1.23-5.el5_8 >> >> several month ago I try >> postgresql84-libs.x86_64 >> with the same result. >> >> It's not possible to use Kamailio RPM with postgres backend. Need to >> assemble it manually. >> >> >> Bruno Bresciani wrote: >> > Hi, >> > >> > I configure the Kamailio 3.1.2 with postgres but I cann't start. In >> the >> > log file is generated the following error: >> > >> > // >> > >> > ERROR: load_module: could not open module >> > > > postgres.so>: >> /home2/local/kamailio/lib/kamailio/modules/db_postgres.so: >> > undefined symbol: PQdescribePrepared >> >> Have you built Kamailio yourself? Looks like db_postgres.so can not find >> the postgresql libraries, or it was built with a different library >> version. >> >> Maybe ldd can give you some details: >> >> ldd /home2/local/kamailio/lib/kamailio/modules/db_postgres.so >> >> regards >> Klaus >> >> >> _______________________________________________ >> 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 > From miconda at gmail.com Thu Aug 2 09:07:28 2012 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Thu, 02 Aug 2012 09:07:28 +0200 Subject: [SR-Users] planning release of v3.3.1 In-Reply-To: <50177DC2.8080505@gmail.com> References: <50177DC2.8080505@gmail.com> Message-ID: <501A2730.40606@gmail.com> Hello, short note to remind about the release of v3.3.1 later today. Apply your commits to branch 3.3 before 12:00 GMT. Cheers, Daniel On 7/31/12 8:40 AM, Daniel-Constantin Mierla wrote: > Hello, > > I am planning to package v3.3.1 out of the latest branch 3.3 this > Thursday, August 2. If you are aware of issues that are not listed on > the tracker (http://sip-router.org/tracker/), add them there to see > what can be sorted out before. > > Cheers, > Daniel > -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw From miconda at gmail.com Thu Aug 2 09:10:15 2012 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Thu, 02 Aug 2012 09:10:15 +0200 Subject: [SR-Users] postgres in kamailio 3.3.0-9.1 In-Reply-To: <5019CADF.4070703@akan.net> References: <50194C47.1030602@telegroup.com.ua> <50198ACE.7030909@gmail.com> <5019CADF.4070703@akan.net> Message-ID: <501A27D7.90107@gmail.com> TLSV1_method is not used inside db_postgres, so it is a dependency of pg library. Do you have the tool pg_config installed in your system? Cheers, Daniel On 8/2/12 2:33 AM, Akan wrote: > I had to upgrade to the lastest version of Postgres to get past this > error but then ran into the problem of "undefined symbol TLSv1_method" > > Thanks > > Nathaniel > On 8/1/2012 3:00 PM, Daniel-Constantin Mierla wrote: >> Hello, >> >> can you paste here the output of following command executed in the >> db_postgres module directory: >> >> make Q=0 >> >> First run 'make proper' in the same directory. I want to see the >> compile flags and linked libs used for your system. >> >> Cheers, >> Daniel >> >> On 8/1/12 5:33 PM, Andrew O. Zhukov wrote: >>> The same trouble with: >>> completely updated Centos 5 >>> the last Kamailio RPM from >>> http://download.opensuse.org/repositories/home:/kamailio:/telephony/RedHat_RHEL-5/ >>> >>> and >>> postgresql-libs.x86_64.8.1.23-5.el5_8 >>> >>> several month ago I try >>> postgresql84-libs.x86_64 >>> with the same result. >>> >>> It's not possible to use Kamailio RPM with postgres backend. Need to >>> assemble it manually. >>> >>> >>> Bruno Bresciani wrote: >>> > Hi, >>> > >>> > I configure the Kamailio 3.1.2 with postgres but I cann't start. >>> In the >>> > log file is generated the following error: >>> > >>> > // >>> > >>> > ERROR: load_module: could not open module >>> > >> > postgres.so>: >>> /home2/local/kamailio/lib/kamailio/modules/db_postgres.so: >>> > undefined symbol: PQdescribePrepared >>> >>> Have you built Kamailio yourself? Looks like db_postgres.so can not >>> find >>> the postgresql libraries, or it was built with a different library >>> version. >>> >>> Maybe ldd can give you some details: >>> >>> ldd /home2/local/kamailio/lib/kamailio/modules/db_postgres.so >>> >>> regards >>> Klaus >>> >>> >>> _______________________________________________ >>> 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://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw From infoananthk at gmail.com Thu Aug 2 10:55:29 2012 From: infoananthk at gmail.com (Ananth Kollipara) Date: Thu, 2 Aug 2012 14:25:29 +0530 Subject: [SR-Users] Regarding - Add your own module In-Reply-To: <5019CA57.20804@evaristesys.com> References: <5019C59A.7000301@evaristesys.com> <5019C6B6.7080906@evaristesys.com> <5019CA57.20804@evaristesys.com> Message-ID: Alex, uac_redirect doesn't work for me. Please see the below link http://blog.gmane.org/gmane.comp.voip.ser/month=20050201/page=10 In the above link, check the email from "Jan Janak" on Feb 3rd, with the "call flow". I exactly require the same. Do we have some handling for this? Regards, Ananth On Thu, Aug 2, 2012 at 6:01 AM, Alex Balashov wrote: > Oh, I see. Yes, the 'uac_redirect' module can consume 302s. > > > On 08/01/2012 08:30 PM, Ananth Kollipara wrote: > > I want the proxy to re-route the request, without informing the client. >> Lets say - proxy receives message, forwards to back-end servers. If >> back-end server responds with 302 response, proxy shall use the contact >> header and then forwards the message to the correct backend server. Do >> we have support for this? >> >> On Thu, Aug 2, 2012 at 5:45 AM, Alex Balashov > >> wrote: >> >> On 08/01/2012 08:12 PM, Ananth Kollipara wrote: >> >> Which module does dynamic routing? >> >> >> Lots of modules do various kinds of dynamic routing: drouting, lcr, >> dialplan, etc. >> >> But, they're rather formulaic. If you're after something custom, >> just do it yourself using your TimesTen DB, db_unixodbc, and the >> sqlops module, which allows custom SQL queries and interactions: >> >> http://www.kamailio.org/docs/_**_modules/3.3.x/modules_k/__** >> sqlops.html >> >> >> > >> >> And, sending 302 redirects with the desired Contact header is very >> easy: >> >> append_to_reply("Contact: \r\n"); >> sl_send_reply("302", "Moved Temporarily"); >> >> >> -- Alex >> >> -- >> Alex Balashov - Principal >> Evariste Systems LLC >> 235 E Ponce de Leon Ave >> Suite 106 >> Decatur, GA 30030 >> Tel: +1-678-954-0670 >> Fax: +1-404-961-1892 >> Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ >> >> >> > > -- > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Fax: +1-404-961-1892 > Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From abalashov at evaristesys.com Thu Aug 2 11:09:28 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Thu, 02 Aug 2012 05:09:28 -0400 Subject: [SR-Users] Regarding - Add your own module In-Reply-To: References: <5019C59A.7000301@evaristesys.com> <5019C6B6.7080906@evaristesys.com> <5019CA57.20804@evaristesys.com> Message-ID: <501A43C8.1000207@evaristesys.com> You'll have to be more specific about why it "doesn't work". Also, keep in mind that 'uac_redirect' is just a convenience. If it's not doing what you want, just build a failure_route[], capture the 302 yourself, extract the Contact header yourself, parse the data yourself, and manually fork through the contacts as you please. On 08/02/2012 04:55 AM, Ananth Kollipara wrote: > Alex, > > uac_redirect doesn't work for me. Please see the below link > http://blog.gmane.org/gmane.comp.voip.ser/month=20050201/page=10 > > In the above link, check the email from "Jan Janak" on Feb 3rd, with the > "call flow". I exactly require the same. Do we have some handling for this? > > Regards, > Ananth > > > > > > On Thu, Aug 2, 2012 at 6:01 AM, Alex Balashov > wrote: > > Oh, I see. Yes, the 'uac_redirect' module can consume 302s. > > > On 08/01/2012 08:30 PM, Ananth Kollipara wrote: > > I want the proxy to re-route the request, without informing the > client. > Lets say - proxy receives message, forwards to back-end servers. If > back-end server responds with 302 response, proxy shall use the > contact > header and then forwards the message to the correct backend > server. Do > we have support for this? > > On Thu, Aug 2, 2012 at 5:45 AM, Alex Balashov > > >> wrote: > > On 08/01/2012 08:12 PM, Ananth Kollipara wrote: > > Which module does dynamic routing? > > > Lots of modules do various kinds of dynamic routing: > drouting, lcr, > dialplan, etc. > > But, they're rather formulaic. If you're after something > custom, > just do it yourself using your TimesTen DB, db_unixodbc, > and the > sqlops module, which allows custom SQL queries and > interactions: > > http://www.kamailio.org/docs/____modules/3.3.x/modules_k/____sqlops.html > > > > > > > And, sending 302 redirects with the desired Contact header > is very easy: > > append_to_reply("Contact: \r\n"); > sl_send_reply("302", "Moved Temporarily"); > > > -- Alex > > -- > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Fax: +1-404-961-1892 > Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ > > > > > -- > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Fax: +1-404-961-1892 > Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ > > -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ From gnugk at telegroup.com.ua Thu Aug 2 11:10:27 2012 From: gnugk at telegroup.com.ua (Andrew O. Zhukov) Date: Thu, 02 Aug 2012 12:10:27 +0300 Subject: [SR-Users] postgres in kamailio 3.3.0-9.1 In-Reply-To: <50198ACE.7030909@gmail.com> References: <50194C47.1030602@telegroup.com.ua> <50198ACE.7030909@gmail.com> Message-ID: <501A4403.7060800@telegroup.com.ua> [root at new db_postgres]# make Q=0 config.mak included config.mak included gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"kamailio"' -DVERSION='"3.3.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=3003000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -I/usr/include -DSER_MOD_INTERFACE -DMOD_NAME='"db_postgres"' -c km_dbase.c -o km_dbase.o -MMD -MP gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"kamailio"' -DVERSION='"3.3.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=3003000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -I/usr/include -DSER_MOD_INTERFACE -DMOD_NAME='"db_postgres"' -c km_db_postgres.c -o km_db_postgres.o -MMD -MP gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"kamailio"' -DVERSION='"3.3.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=3003000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -I/usr/include -DSER_MOD_INTERFACE -DMOD_NAME='"db_postgres"' -c km_pg_con.c -o km_pg_con.o -MMD -MP gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"kamailio"' -DVERSION='"3.3.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=3003000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -I/usr/include -DSER_MOD_INTERFACE -DMOD_NAME='"db_postgres"' -c km_res.c -o km_res.o -MMD -MP gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"kamailio"' -DVERSION='"3.3.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=3003000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -I/usr/include -DSER_MOD_INTERFACE -DMOD_NAME='"db_postgres"' -c km_val.c -o km_val.o -MMD -MP gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"kamailio"' -DVERSION='"3.3.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=3003000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -I/usr/include -DSER_MOD_INTERFACE -DMOD_NAME='"db_postgres"' -c pg_cmd.c -o pg_cmd.o -MMD -MP pg_cmd.c: In function ?get_types?: pg_cmd.c:206: warning: implicit declaration of function ?PQdescribePrepared? pg_cmd.c:206: warning: assignment makes pointer from integer without a cast pg_cmd.c: In function ?pg_cmd_exec?: pg_cmd.c:449: warning: assignment makes pointer from integer without a cast gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"kamailio"' -DVERSION='"3.3.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=3003000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -I/usr/include -DSER_MOD_INTERFACE -DMOD_NAME='"db_postgres"' -c pg_con.c -o pg_con.o -MMD -MP gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"kamailio"' -DVERSION='"3.3.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=3003000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -I/usr/include -DSER_MOD_INTERFACE -DMOD_NAME='"db_postgres"' -c pg_fld.c -o pg_fld.o -MMD -MP pg_fld.c: In function ?pg_resolve_param_oids?: pg_fld.c:466: warning: implicit declaration of function ?PQnparams? pg_fld.c:473: warning: implicit declaration of function ?PQparamtype? gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"kamailio"' -DVERSION='"3.3.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=3003000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -I/usr/include -DSER_MOD_INTERFACE -DMOD_NAME='"db_postgres"' -c pg_mod.c -o pg_mod.o -MMD -MP gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"kamailio"' -DVERSION='"3.3.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=3003000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -I/usr/include -DSER_MOD_INTERFACE -DMOD_NAME='"db_postgres"' -c pg_oid.c -o pg_oid.o -MMD -MP gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"kamailio"' -DVERSION='"3.3.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=3003000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -I/usr/include -DSER_MOD_INTERFACE -DMOD_NAME='"db_postgres"' -c pg_res.c -o pg_res.o -MMD -MP gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"kamailio"' -DVERSION='"3.3.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=3003000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -I/usr/include -DSER_MOD_INTERFACE -DMOD_NAME='"db_postgres"' -c pg_sql.c -o pg_sql.o -MMD -MP gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops -ftree-vectorize -mtune=opteron -Wall -DNAME='"kamailio"' -DVERSION='"3.3.0"' -DARCH='"x86_64"' -DOS='linux_' -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.1.2"' -D__CPU_x86_64 -D__OS_linux -DSER_VER=3003000 -DCFG_DIR='"/usr/local/etc/kamailio/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_IPV6 -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DF_MALLOC -DMEM_JOIN_FREE -DUSE_TLS -DTLS_HOOKS -DUSE_CORE_STATS -DSTATISTICS -DMALLOC_STATS -DWITH_AS_SUPPORT -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024 -DCC_GCC_LIKE_ASM -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -DHAVE_ALLOCA_H -DHAVE_TIMEGM -DHAVE_SCHED_SETSCHEDULER -DUSE_RAW_SOCKS -DHAVE_EPOLL -DHAVE_SIGIO_RT -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SELECT -I/usr/include -DSER_MOD_INTERFACE -DMOD_NAME='"db_postgres"' -c pg_uri.c -o pg_uri.o -MMD -MP Makefile.defs defs skipped make[1]: Entering directory `/root/kamailio-3.3.0/lib/srdb2' make[1]: `libsrdb2.so.1.0' is up to date. make[1]: Leaving directory `/root/kamailio-3.3.0/lib/srdb2' Makefile.defs defs skipped make[1]: Entering directory `/root/kamailio-3.3.0/lib/srdb1' make[1]: `libsrdb1.so.1.0' is up to date. make[1]: Leaving directory `/root/kamailio-3.3.0/lib/srdb1' gcc -shared -m64 -Wl,-O2 -Wl,-E km_dbase.o km_db_postgres.o km_pg_con.o km_res.o km_val.o pg_cmd.o pg_con.o pg_fld.o pg_mod.o pg_oid.o pg_res.o pg_sql.o pg_uri.o -L/usr/lib64 -lpq -L../../lib/srdb2/ -lsrdb2 -L../../lib/srdb1/ -lsrdb1 -Wl,-rpath,/root/kamailio-3.3.0/lib/srdb2 -Wl,-rpath,/root/kamailio-3.3.0/lib/srdb1 -o db_postgres.so 01.08.2012 23:00, Daniel-Constantin Mierla ?????: > Hello, > > can you paste here the output of following command executed in the > db_postgres module directory: > > make Q=0 > > First run 'make proper' in the same directory. I want to see the compile > flags and linked libs used for your system. > > Cheers, > Daniel > > On 8/1/12 5:33 PM, Andrew O. Zhukov wrote: >> The same trouble with: >> completely updated Centos 5 >> the last Kamailio RPM from >> http://download.opensuse.org/repositories/home:/kamailio:/telephony/RedHat_RHEL-5/ >> >> and >> postgresql-libs.x86_64.8.1.23-5.el5_8 >> >> several month ago I try >> postgresql84-libs.x86_64 >> with the same result. >> >> It's not possible to use Kamailio RPM with postgres backend. Need to >> assemble it manually. >> >> >> Bruno Bresciani wrote: >> > Hi, >> > >> > I configure the Kamailio 3.1.2 with postgres but I cann't start. In the >> > log file is generated the following error: >> > >> > // >> > >> > ERROR: load_module: could not open module >> > > > postgres.so>: >> /home2/local/kamailio/lib/kamailio/modules/db_postgres.so: >> > undefined symbol: PQdescribePrepared >> >> Have you built Kamailio yourself? Looks like db_postgres.so can not find >> the postgresql libraries, or it was built with a different library >> version. >> >> Maybe ldd can give you some details: >> >> ldd /home2/local/kamailio/lib/kamailio/modules/db_postgres.so >> >> regards >> Klaus >> >> >> _______________________________________________ >> 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 > From gnugk at telegroup.com.ua Thu Aug 2 11:40:27 2012 From: gnugk at telegroup.com.ua (Andrew O. Zhukov) Date: Thu, 02 Aug 2012 12:40:27 +0300 Subject: [SR-Users] postgres in kamailio 3.3.0-9.1 In-Reply-To: <50198ACE.7030909@gmail.com> References: <50194C47.1030602@telegroup.com.ua> <50198ACE.7030909@gmail.com> Message-ID: <501A4B0B.2020805@telegroup.com.ua> Daniel, I remove RPM-s postgresql postgresql-devel postgresql-libs kamailio-postgres install postgresql84 postgresql84-devel postgresql84-libs and assemble db_postgres using make Q=0 in db_postgres directory. then put db_postgres.so to /usr/lib64/kamailio/modules directory. Currently I's only one way to fix it. Yum rpm installation whant postgresql-libs depedency rpmbuild from src rpm whant postgresql-devel depedency Thanks. 01.08.2012 23:00, Daniel-Constantin Mierla ?????: > Hello, > > can you paste here the output of following command executed in the > db_postgres module directory: > > make Q=0 > > First run 'make proper' in the same directory. I want to see the compile > flags and linked libs used for your system. > > Cheers, > Daniel > > On 8/1/12 5:33 PM, Andrew O. Zhukov wrote: >> The same trouble with: >> completely updated Centos 5 >> the last Kamailio RPM from >> http://download.opensuse.org/repositories/home:/kamailio:/telephony/RedHat_RHEL-5/ >> >> and >> postgresql-libs.x86_64.8.1.23-5.el5_8 >> >> several month ago I try >> postgresql84-libs.x86_64 >> with the same result. >> >> It's not possible to use Kamailio RPM with postgres backend. Need to >> assemble it manually. >> >> >> Bruno Bresciani wrote: >> > Hi, >> > >> > I configure the Kamailio 3.1.2 with postgres but I cann't start. In the >> > log file is generated the following error: >> > >> > // >> > >> > ERROR: load_module: could not open module >> > > > postgres.so>: >> /home2/local/kamailio/lib/kamailio/modules/db_postgres.so: >> > undefined symbol: PQdescribePrepared >> >> Have you built Kamailio yourself? Looks like db_postgres.so can not find >> the postgresql libraries, or it was built with a different library >> version. >> >> Maybe ldd can give you some details: >> >> ldd /home2/local/kamailio/lib/kamailio/modules/db_postgres.so >> >> regards >> Klaus >> >> >> _______________________________________________ >> 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 > From infoananthk at gmail.com Thu Aug 2 13:16:59 2012 From: infoananthk at gmail.com (Ananth Kollipara) Date: Thu, 2 Aug 2012 16:46:59 +0530 Subject: [SR-Users] Regarding - Add your own module In-Reply-To: <501A43C8.1000207@evaristesys.com> References: <5019C59A.7000301@evaristesys.com> <5019C6B6.7080906@evaristesys.com> <5019CA57.20804@evaristesys.com> <501A43C8.1000207@evaristesys.com> Message-ID: Thanks Alex. Failure_route should suffice. On Thu, Aug 2, 2012 at 2:39 PM, Alex Balashov wrote: > You'll have to be more specific about why it "doesn't work". > > Also, keep in mind that 'uac_redirect' is just a convenience. If it's not > doing what you want, just build a failure_route[], capture the 302 > yourself, extract the Contact header yourself, parse the data yourself, and > manually fork through the contacts as you please. > > > On 08/02/2012 04:55 AM, Ananth Kollipara wrote: > > Alex, >> >> uac_redirect doesn't work for me. Please see the below link >> http://blog.gmane.org/gmane.**comp.voip.ser/month=20050201/**page=10 >> >> In the above link, check the email from "Jan Janak" on Feb 3rd, with the >> "call flow". I exactly require the same. Do we have some handling for >> this? >> >> Regards, >> Ananth >> >> >> >> >> >> On Thu, Aug 2, 2012 at 6:01 AM, Alex Balashov > >> wrote: >> >> Oh, I see. Yes, the 'uac_redirect' module can consume 302s. >> >> >> On 08/01/2012 08:30 PM, Ananth Kollipara wrote: >> >> I want the proxy to re-route the request, without informing the >> client. >> Lets say - proxy receives message, forwards to back-end servers. >> If >> back-end server responds with 302 response, proxy shall use the >> contact >> header and then forwards the message to the correct backend >> server. Do >> we have support for this? >> >> On Thu, Aug 2, 2012 at 5:45 AM, Alex Balashov >> >> > >> > >> >>> >> wrote: >> >> On 08/01/2012 08:12 PM, Ananth Kollipara wrote: >> >> Which module does dynamic routing? >> >> >> Lots of modules do various kinds of dynamic routing: >> drouting, lcr, >> dialplan, etc. >> >> But, they're rather formulaic. If you're after something >> custom, >> just do it yourself using your TimesTen DB, db_unixodbc, >> and the >> sqlops module, which allows custom SQL queries and >> interactions: >> >> http://www.kamailio.org/docs/_**___modules/3.3.x/modules_k/___** >> _sqlops.html >> > sqlops.html >> > >> >> >> >> > sqlops.html >> > sqlops.html >> >> >> >> And, sending 302 redirects with the desired Contact header >> is very easy: >> >> append_to_reply("Contact: \r\n"); >> sl_send_reply("302", "Moved Temporarily"); >> >> >> -- Alex >> >> -- >> Alex Balashov - Principal >> Evariste Systems LLC >> 235 E Ponce de Leon Ave >> Suite 106 >> Decatur, GA 30030 >> Tel: +1-678-954-0670 >> Fax: +1-404-961-1892 >> Web: http://www.evaristesys.com/, >> http://www.alexbalashov.com/ >> >> >> >> >> -- >> Alex Balashov - Principal >> Evariste Systems LLC >> 235 E Ponce de Leon Ave >> Suite 106 >> Decatur, GA 30030 >> Tel: +1-678-954-0670 >> Fax: +1-404-961-1892 >> Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ >> >> >> > > -- > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Fax: +1-404-961-1892 > Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.dunkley at crocodile-rcs.com Thu Aug 2 16:15:38 2012 From: peter.dunkley at crocodile-rcs.com (Peter Dunkley) Date: Thu, 02 Aug 2012 15:15:38 +0100 Subject: [SR-Users] [sr-dev] Outbound and Registrar. No binding update In-Reply-To: References: <50127C9D.7070908@gmail.com> <50165CC2.7050400@gmail.com> <50167004.7060301@gmail.com> <5016BE2F.6010300@gmail.com> <50177E6F.4030003@gmail.com> Message-ID: <1343916938.7084.7.camel@pd-notebook-linux.croc.internal> Hello, What I am trying to work out is whether Kamailio now supports enough of Outbound and GRUU that the contact aliasing I am using with WebSockets is no longer necessary? Also, is the current support complete enough that there are no issues around WebSocket connections being broken and the client re-registering (effectively replacing the existing contact binding)? I believe for WebSockets the situation is exactly the same as you would have for a client connecting over TCP from behind a NAT. Regards, Peter On Tue, 2012-07-31 at 13:59 +0200, Jos? Luis Mill?n wrote: > Hi, > > > > Outbound provides the UAC a way to update a binding even if it > reboots. For that, a unique and permanent value of instance-id is > used, which in conjunction with the AoR and reg-id determines the > binding to the UAC. > > > Having said this, I guess that the CSeq comparison between the one in > the Register request and the one in the binding does not apply in this > scenario since it is not guaranteed that a UAC saves the CSeq value of > the registration among reboots. > > > Regards. > > > 2012/7/31 Daniel-Constantin Mierla > > Hello, > > > > On 7/30/12 7:23 PM, I?aki Baz Castillo wrote: > > 2012/7/30 Daniel-Constantin Mierla > : > > quick question to double check if what I > understood when I read the specs > was ok -- in gruu/ob, it does not matter > anymore the callid/cseq > combination, or there should still be some > checks related to it? > > In fact that depends on Outbound instead of GRUU, and > not, when using > Outbound the registrar does NOT check the Call-ID and > CSeq of the > REGISTER (and using GRUU means that Outbound is also > used, so the > Contact has a +sip.instance and reg-id params which > are inspected by > the registrar to create/update/delete a binding). > > but what about same callid with lower cseq, combined with same > sip instance and reg-id? > > > Cheers, > Daniel > > > _______________________________________________ > sr-dev mailing list > sr-dev at lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev > > > -- Peter Dunkley Technical Director Crocodile RCS Ltd -------------- next part -------------- An HTML attachment was scrubbed... URL: From ibc at aliax.net Thu Aug 2 16:21:31 2012 From: ibc at aliax.net (=?UTF-8?Q?I=C3=B1aki_Baz_Castillo?=) Date: Thu, 2 Aug 2012 16:21:31 +0200 Subject: [SR-Users] [sr-dev] Outbound and Registrar. No binding update In-Reply-To: <5016C1D3.6090105@gmail.com> References: <50127C9D.7070908@gmail.com> <50165CC2.7050400@gmail.com> <50167004.7060301@gmail.com> <1343664023.16452.4.camel@pd-notebook-linux.croc.internal> <422044d2e497bc7a919fc880df7d1b57.squirrel@crocodile-rcs.com> <5016C1D3.6090105@gmail.com> Message-ID: 2012/7/30 Daniel-Constantin Mierla : > There is one situation that will not work even with gruu/ob -- in sip a > phone can call without registering. A gruu contact is obtained via > registration and then used for next requests by UA itself. By calling > without registering, there is no gruu contact for it, so adding the src ip > and port as alias parameter is still needed. I don't remember I have seen > any rfc making registration mandatory before calling. Hi Daniel, RFC 5626 (Outbound) assumes that the UA registers after connecting to the (Outbound Edge) Proxy. > In other words, just to summarize the gruu versus contact aliasing. I don't think this iw "gruu versus contact aliasing" but "outbound versus contact aliasing". Outbound means that the proxy inserts a flow token in the Record-Route username and then, when a request with Route header arrives to the proxy, its Route username is inspected and the associated connection retrieved for routing the request without inspecting the RURI (unless it's a GRUU RURI). Regards. -- I?aki Baz Castillo From ibc at aliax.net Thu Aug 2 16:23:19 2012 From: ibc at aliax.net (=?UTF-8?Q?I=C3=B1aki_Baz_Castillo?=) Date: Thu, 2 Aug 2012 16:23:19 +0200 Subject: [SR-Users] Outbound and Registrar. No binding update In-Reply-To: References: <50127C9D.7070908@gmail.com> <50165CC2.7050400@gmail.com> <50167004.7060301@gmail.com> <5016BE2F.6010300@gmail.com> <50177E6F.4030003@gmail.com> Message-ID: 2012/7/31 Jos? Luis Mill?n : > Outbound provides the UAC a way to update a binding even if it reboots. For > that, a unique and permanent value of instance-id is used, which in > conjunction with the AoR and reg-id determines the binding to the UAC. > > Having said this, I guess that the CSeq comparison between the one in the > Register request and the one in the binding does not apply in this scenario > since it is not guaranteed that a UAC saves the CSeq value of the > registration among reboots. This is correct. According to RFC 5626, when the REGISTER includes a Contact with +sip.instance and reg-id params the registrar MUST NOT check the call-id and cseq of the request, but just the +sip.instance and reg-id params (and the registering AoR in the To header of course). -- I?aki Baz Castillo From ibc at aliax.net Thu Aug 2 16:23:53 2012 From: ibc at aliax.net (=?UTF-8?Q?I=C3=B1aki_Baz_Castillo?=) Date: Thu, 2 Aug 2012 16:23:53 +0200 Subject: [SR-Users] [sr-dev] Outbound and Registrar. No binding update In-Reply-To: <1343916938.7084.7.camel@pd-notebook-linux.croc.internal> References: <50127C9D.7070908@gmail.com> <50165CC2.7050400@gmail.com> <50167004.7060301@gmail.com> <5016BE2F.6010300@gmail.com> <50177E6F.4030003@gmail.com> <1343916938.7084.7.camel@pd-notebook-linux.croc.internal> Message-ID: 2012/8/2 Peter Dunkley > I believe for WebSockets the situation is exactly the same as you would > have for a client connecting over TCP from behind a NAT. It should be exactly the same situation. -- I?aki Baz Castillo -------------- next part -------------- An HTML attachment was scrubbed... URL: From miconda at gmail.com Thu Aug 2 16:32:45 2012 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Thu, 02 Aug 2012 16:32:45 +0200 Subject: [SR-Users] Kamailio v3.3.1 Released Message-ID: <501A8F8D.5080905@gmail.com> Hello, Kamailio SIP Server v3.3.1 stable release is out. This is a maintenance release of the latest stable branch, 3.3, that includes fixes since release of v3.3.0. There is no change to database schema or configuration language structure that you have to do on installations of v3.3.0. Deployments running previous v3.x.x versions are strongly recommended to be upgraded to v3.3.1. For more details about version 3.3.1 (including links and hints to download the tarball or from GIT repository), visit: * http://www.kamailio.org/w/2012/08/kamailio-v3-3-1-released/ RPM, Debian/Ubuntu packages will be available soon as well. Cheers, Daniel -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw From universe at truemetal.org Thu Aug 2 18:40:58 2012 From: universe at truemetal.org (Markus) Date: Thu, 02 Aug 2012 18:40:58 +0200 Subject: [SR-Users] Getting started with Kamailio Message-ID: <501AAD9A.3030406@truemetal.org> Hello! I'm new to this list and Kamailio. First, thanks to all the programmers that developed this software. I'd like to ask several questions on how to get started with Kamailio and the basic understanding of it. I'm trying to figure out Kamailio only since yesterday. Right now I have a single Asterisk server that handles signaling and media. For accounting and user administration I'm using a2billing with MySQL on it. For redundancy and scalability I would like to create the following setup: France: BGP anycast 195.5.5.0/24 2 nodes with Kamailio (IP 195.5.5.5) active + standby 2 nodes with Asterisk + a2billing + DRBD for active-active MySQL cluster. Spain: BGP anycast 195.5.5.0/24 2 nodes with Kamailio (IP 195.5.5.5) active + standby 2 nodes with Asterisk + a2billing + DRBD for active-active MySQL cluster. (a2billing MySQL DB will be always synchronous over all nodes in Spain and France) This will give me: - Network redundancy (data center burns down in France, I stay online in Spain). This will be handled by BGP anycast. - Signaling redundancy (Kamailio active + standby). This will be handled by Linux-HA or something like that. - Media redundancy (2x Asterisk per country). This will be handled by Kamailio dispatcher. - Application/database redundancy (2x a2billing per country + synchronous MySQL DB everyhwere). This will be handled by DRBD and MySQL. = High redundancy, I can sleep and it can scale. What I would like to achieve besides the above: - Give only a single IP address to all customers and termination providers (the same IP address), 195.5.5.5. I'm a SIP noob, so I have to ask: - How do I do the Kamailio part? ;-) ... I have seen this how-to for Kamailio/Asterisk realtime: http://kb.asipto.com/asterisk:realtime:kamailio-3.1.x-asterisk-1.6.2-astdb But it feels like "overkill". If I would not have any users that actually REGISTER (e.g. in a pure wholesale termination environment), I would not need Kamailio/Asterisk realtime integration. Correct? - Is there no way around changing the Asterisk side (activating realtime, new MySQL DB) when I have users that do need to REGISTER? If I would not be using a2billing I could probably handle all the registrations in Kamailio only? - Since Kamailio and Asterisk will not be on the same box, what is the recommended way for Kamailio securely communicating with the MySQL database on the Asterisk server? Does Kamailio support SSL with MySQL? - If I use RTPproxy on the Kamailio server, every customer and termination provider would connect to 1 single IP address, because both media and signaling comes from that IP. Correct? - If I don't use RTPproxy, and have canreinvite=yes on my Asterisk servers, customers would get the media, when placing PSTN calls, directly from my termination providers (I would like to avoid that). Correct? - If I don't use RTPproxy, and have canreinvite=no on my Asterisk servers, customers will get the media directly from my Asterisk servers, but termination providers that filter based on IP addresses they would have to allow all Asterisk IP addresses in their filters (same for customers, actually). Correct? Right now I didn't have to worry about such things because media and signaling were handled by a single Asterisk box with canreinvite=no everywhere. - Last question for now: why does it seem like important developers of SIP software such as Kamailio and yate are originating from Romania and are female? Just a coincidence? :-) Regards Markus From abalashov at evaristesys.com Fri Aug 3 00:11:06 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Thu, 02 Aug 2012 18:11:06 -0400 Subject: [SR-Users] Getting started with Kamailio In-Reply-To: <501AAD9A.3030406@truemetal.org> References: <501AAD9A.3030406@truemetal.org> Message-ID: <501AFAFA.70405@evaristesys.com> Hi Markus! On 08/02/2012 12:40 PM, Markus wrote: > Hello! I'm new to this list and Kamailio. Welcome! > - Give only a single IP address to all customers and termination > providers (the same IP address), 195.5.5.5. That would be difficult, unless you really have your anycast ducks in a row. A more common way to approach this problem is SRV records, though not all SIP endpoints out there implement SRV correctly or make use of it in the manner contemplated by a redundancy-oriented use of them. > I'm a SIP noob, so I have to ask: > > - How do I do the Kamailio part? ;-) ... I have seen this how-to for > Kamailio/Asterisk realtime: > http://kb.asipto.com/asterisk:realtime:kamailio-3.1.x-asterisk-1.6.2-astdb > But it feels like "overkill". If I would not have any users that > actually REGISTER (e.g. in a pure wholesale termination environment), I > would not need Kamailio/Asterisk realtime integration. Correct? Correct. The reason this tutorial exists it to try to create an approachable use-case and gentle introduction for those coming off of an Asterisk background, as you are. The problem, of course, is that it's just a procedure, not a methodological or best-practical recommendation as to the propriety of such a setup for what you are doing. You really don't want to use Asterisk's built-in registrar if you want to get the performance/density/scalability benefits of Kamailio. If you're only doing IP-trust relationships, as is commonly the case in wholesale termination, then it's even simpler. > - Is there no way around changing the Asterisk side (activating > realtime, new MySQL DB) when I have users that do need to REGISTER? If I > would not be using a2billing I could probably handle all the > registrations in Kamailio only? You can proxy registrations and relay them to Kamailio, but the proper way to do that is with the Path extension, which Asterisk does not, at the present time, support. You can get around that by encoding client-side contact info in the Contact header, though it's not a SIP-pretty approach. Generally speaking, though, you really want to go with a centralised registrar, if you're going to have to have registrations. I don't know much about a2billing, but one problem you're going to face if you're going to put a dispatcher-based load balancer in front of it is how to get it to identify the provenance of a SIP request with an internal client/peer/entity. It can't be done by source IP, since the source IP will always be the proxy. It might be possible from the From URI or the like. Or, you might have to add a custom header (append_hf() in Kamailio) hinting to the dial plan who the customer is, and fish it out in the dial plan (${SIP_HEADER(...)}) and pass it to a2billing. That would be the more common approach. > - Since Kamailio and Asterisk will not be on the same box, what is the > recommended way for Kamailio securely communicating with the MySQL > database on the Asterisk server? Does Kamailio support SSL with MySQL? Isn't that transparently implemented in libmysqlclient? > - If I use RTPproxy on the Kamailio server, every customer and > termination provider would connect to 1 single IP address, because both > media and signaling comes from that IP. Correct? They would "connect" to your signaling IP, regardless, from a configuration perspective. The location of the rtpproxy just governs the media endpoints. > - If I don't use RTPproxy, and have canreinvite=yes on my Asterisk > servers, customers would get the media, when placing PSTN calls, > directly from my termination providers (I would like to avoid that). > Correct? In theory, yes. In practice, firewall restrictions on the customer or provider side, or other network/transport-layer reachability issues, could preclude that. > - If I don't use RTPproxy, and have canreinvite=no on my Asterisk > servers, customers will get the media directly from my Asterisk servers, > but termination providers that filter based on IP addresses they would > have to allow all Asterisk IP addresses in their filters (same for > customers, actually). Correct? Correct. > - Last question for now: why does it seem like important developers > of SIP software such as Kamailio and yate are originating from > Romania and are female? Just a coincidence? :-) In the case of Kamailio, I would say most of the developers are male, but it does have a non-trivial contingent of significant female contributors, definitely in higher proportion compared to the median open-source project. In the case of Yate, that's just coincidence. Romania is relatively famous for having a higher proportion of female programmers. It has excellent foundational technical education and it is an established career path for a lot of women there. -- Alex -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ From varsha.venkataramani at gmail.com Fri Aug 3 00:53:21 2012 From: varsha.venkataramani at gmail.com (Varsha Venkatraramani) Date: Thu, 2 Aug 2012 15:53:21 -0700 Subject: [SR-Users] Question on ACK behavior In-Reply-To: <3C3FF486AAEE0344B1943999088DE5AA0AC63212A2@EXCHANGE.liveops.com> References: <3C3FF486AAEE0344B1943999088DE5AA0AC63212A2@EXCHANGE.liveops.com> Message-ID: ** ** * * ** ** Hi, ** ** I have a question regarding the below ACK response Kamilaio receives from a carrier. Can someone please help me understand why the ?*Route: sip:callmanager at 192.168.160.43:5060> *sent from Kamailio is missing a ? 192.168.160.47:5060**** *ACK sip:callmanager at 192.168.160.43:5060 SIP/2.0.* Via: SIP/2.0/UDP 4.55.18.227:5060;branch=z9hG4bK04B0eef33040e9b8e70.**** From: sip:+14088442721 at 4.55.18.227:5060;tag=gK043001e3.**** To: sip:+19728931740 at 192.168.160.47:5060;tag=b307370c678f3b44.**** Call-ID: 295226_50030734 at 4.55.18.227.**** CSeq: 18079 ACK.**** Max-Forwards: 70.**** Route: .**** *Route: .* Content-Length: 0.**** .**** *ACK FORWARDED TO SIP PROXY* ** ** U 2012/08/01 18:32:52.220612 192.168.160.47:5060 -> 192.168.160.44:5060**** *ACK sip:2c6c6d1ab58c623912f6b8a6ee526982 at 192.168.160.44:5060 SIP/2.0.* Via: SIP/2.0/UDP 192.168.160.47;branch=z9hG4bKcydzigwkX.**** Via: SIP/2.0/UDP 4.55.18.227:5060;branch=z9hG4bK04B0eef33040e9b8e70.**** From: sip:+14088442721 at 4.55.18.227:5060;tag=gK043001e3.**** To: sip:+19728931740 at 192.168.160.47:5060;tag=b307370c678f3b44.**** Call-ID: 295226_50030734 at 4.55.18.227.**** CSeq: 18079 ACK.**** Max-Forwards: 69.**** Content-Length: 0.**** *Route: sip:callmanager at 192.168.160.43:5060>.* I have attached the config file for you reference. Kamailio version is 3.2.3 **** ** ** Thank You**** Varsha**** -------------- next part -------------- An HTML attachment was scrubbed... URL: From varsha.venkataramani at gmail.com Fri Aug 3 01:43:16 2012 From: varsha.venkataramani at gmail.com (Varsha Venkatraramani) Date: Thu, 2 Aug 2012 16:43:16 -0700 Subject: [SR-Users] Question on ACK behavior In-Reply-To: References: <3C3FF486AAEE0344B1943999088DE5AA0AC63212A2@EXCHANGE.liveops.com> Message-ID: > ** ** > > * > * > > ** ** > > Hi, > > ** ** > > I have a question regarding the below ACK response Kamilaio receives from > a carrier. Can someone please help me understand why the ?*Route: > sip:callmanager at 192.168.160.43:5060> *sent from Kamailio is missing a ? as shown in the captures below? Our Internal proxy is treating that as a > malformed header and dropping the packet. > > ** ** > > ** ** > > *ACK from CARRIER* > > * * > > U 2012/08/01 18:32:52.219852 4.55.18.227:5060 -> 192.168.160.47:5060**** > > *ACK sip:callmanager at 192.168.160.43:5060 SIP/2.0.* > > Via: SIP/2.0/UDP 4.55.18.227:5060;branch=z9hG4bK04B0eef33040e9b8e70.**** > > From: sip:+14088442721 at 4.55.18.227:5060;tag=gK043001e3.**** > > To: sip:+19728931740 at 192.168.160.47:5060;tag=b307370c678f3b44.**** > > Call-ID: 295226_50030734 at 4.55.18.227.**** > > CSeq: 18079 ACK.**** > > Max-Forwards: 70.**** > > Route: .**** > > *Route: .* > > Content-Length: 0.**** > > .**** > > *ACK FORWARDED TO SIP PROXY* > > ** ** > > U 2012/08/01 18:32:52.220612 192.168.160.47:5060 -> 192.168.160.44:5060*** > * > > *ACK sip:2c6c6d1ab58c623912f6b8a6ee526982 at 192.168.160.44:5060 SIP/2.0.* > > Via: SIP/2.0/UDP 192.168.160.47;branch=z9hG4bKcydzigwkX.**** > > Via: SIP/2.0/UDP 4.55.18.227:5060;branch=z9hG4bK04B0eef33040e9b8e70.**** > > From: sip:+14088442721 at 4.55.18.227:5060;tag=gK043001e3.**** > > To: sip:+19728931740 at 192.168.160.47:5060;tag=b307370c678f3b44.**** > > Call-ID: 295226_50030734 at 4.55.18.227.**** > > CSeq: 18079 ACK.**** > > Max-Forwards: 69.**** > > Content-Length: 0.**** > > *Route: sip:callmanager at 192.168.160.43:5060>.* > > I have attached the config file for you reference. Kamailio version is > 3.2.3**** > > ** ** > > Thank You for your help/input in advance > > Varsha**** > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From keeling at akan-tech.com Fri Aug 3 05:42:57 2012 From: keeling at akan-tech.com (Nathaniel L Keeling) Date: Thu, 02 Aug 2012 22:42:57 -0500 Subject: [SR-Users] postgres in kamailio 3.3.0-9.1 In-Reply-To: <501A27D7.90107@gmail.com> References: <50194C47.1030602@telegroup.com.ua> <50198ACE.7030909@gmail.com> <5019CADF.4070703@akan.net> <501A27D7.90107@gmail.com> Message-ID: <501B48C1.5020005@akan-tech.com> Yes but it was for an older version that was uninstalled. I changed the path to pull in the current version and still received the same error. I checked the version for openssl and the same thing was happening. I changed the path again and recompiled kamailio and still no change. I noticed when compiling kamailio, the tls.so module was complaining that the version of openssl was less then 1.0. The version that I installed is 1.0.1c. Thanks Nathaniel On 8/2/2012 2:10 AM, Daniel-Constantin Mierla wrote: > TLSV1_method is not used inside db_postgres, so it is a dependency of > pg library. Do you have the tool pg_config installed in your system? > > Cheers, > Daniel > > On 8/2/12 2:33 AM, Akan wrote: >> I had to upgrade to the lastest version of Postgres to get past this >> error but then ran into the problem of "undefined symbol TLSv1_method" >> >> Thanks >> >> Nathaniel >> On 8/1/2012 3:00 PM, Daniel-Constantin Mierla wrote: >>> Hello, >>> >>> can you paste here the output of following command executed in the >>> db_postgres module directory: >>> >>> make Q=0 >>> >>> First run 'make proper' in the same directory. I want to see the >>> compile flags and linked libs used for your system. >>> >>> Cheers, >>> Daniel >>> >>> On 8/1/12 5:33 PM, Andrew O. Zhukov wrote: >>>> The same trouble with: >>>> completely updated Centos 5 >>>> the last Kamailio RPM from >>>> http://download.opensuse.org/repositories/home:/kamailio:/telephony/RedHat_RHEL-5/ >>>> >>>> and >>>> postgresql-libs.x86_64.8.1.23-5.el5_8 >>>> >>>> several month ago I try >>>> postgresql84-libs.x86_64 >>>> with the same result. >>>> >>>> It's not possible to use Kamailio RPM with postgres backend. Need >>>> to assemble it manually. >>>> >>>> >>>> Bruno Bresciani wrote: >>>> > Hi, >>>> > >>>> > I configure the Kamailio 3.1.2 with postgres but I cann't start. >>>> In the >>>> > log file is generated the following error: >>>> > >>>> > // >>>> > >>>> > ERROR: load_module: could not open module >>>> > >>> > postgres.so>: >>>> /home2/local/kamailio/lib/kamailio/modules/db_postgres.so: >>>> > undefined symbol: PQdescribePrepared >>>> >>>> Have you built Kamailio yourself? Looks like db_postgres.so can not >>>> find >>>> the postgresql libraries, or it was built with a different library >>>> version. >>>> >>>> Maybe ldd can give you some details: >>>> >>>> ldd /home2/local/kamailio/lib/kamailio/modules/db_postgres.so >>>> >>>> regards >>>> Klaus >>>> >>>> >>>> _______________________________________________ >>>> 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 > From andre at rodnoe.tv Thu Aug 2 18:24:54 2012 From: andre at rodnoe.tv (andre) Date: Thu, 02 Aug 2012 19:24:54 +0300 Subject: [SR-Users] centos (fedora) service startup file Message-ID: <501AA9D6.4040500@rodnoe.tv> Somwhere losted since openser 1.0 :) Please fix in: start() { echo -n $"Starting $prog: " ..... [ $RETVAL = 0 ] && touch something to [ $RETVAL = 0 ] && touch someting && success I mean call function success in the end of the expression. Thanks in advance From andre at rodnoe.tv Thu Aug 2 20:05:16 2012 From: andre at rodnoe.tv (andre) Date: Thu, 02 Aug 2012 21:05:16 +0300 Subject: [SR-Users] centos (fedora) service startup file Message-ID: <501AC15C.8030801@rodnoe.tv> Somwhere losted since openser 1.0 file kamailio.init Please fix in function start: start() { echo -n $"Starting $prog: " ..... [ $RETVAL = 0 ] && touch something to [ $RETVAL = 0 ] && touch someting && success I mean call function success in the end of the expression. Thanks in advance. From miconda at gmail.com Fri Aug 3 09:33:03 2012 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Fri, 03 Aug 2012 09:33:03 +0200 Subject: [SR-Users] Question on ACK behavior In-Reply-To: References: <3C3FF486AAEE0344B1943999088DE5AA0AC63212A2@EXCHANGE.liveops.com> Message-ID: <501B7EAF.2010405@gmail.com> Hello, On 8/3/12 1:43 AM, Varsha Venkatraramani wrote: > > I have a question regarding the below ACK response Kamilaio > receives from a carrier.Can someone please help me understand why > the "*Route: sip:callmanager at 192.168.160.43:5060> *sent from > Kamailio is missing a "<" as shown in the captures below? Our > Internal proxy is treating that as a malformed header and dropping > the packet. > > *ACK from CARRIER* > > U 2012/08/01 18:32:52.219852 4.55.18.227:5060 > -> 192.168.160.47:5060 > > > *ACK sip:callmanager at 192.168.160.43:5060 SIP/2.0.* > > Via: SIP/2.0/UDP 4.55.18.227:5060;branch=z9hG4bK04B0eef33040e9b8e70. > > From: sip:+14088442721 at 4.55.18.227:5060;tag=gK043001e3. > > To: sip:+19728931740 at 192.168.160.47:5060;tag=b307370c678f3b44. > > Call-ID: 295226_50030734 at 4.55.18.227 > . > > CSeq: 18079 ACK. > > Max-Forwards: 70. > > Route: . > > *Route: .* > > Content-Length: 0. > > . > > *ACK FORWARDED TO SIP PROXY* > > U 2012/08/01 18:32:52.220612 192.168.160.47:5060 > -> 192.168.160.44:5060 > > > *ACK sip:2c6c6d1ab58c623912f6b8a6ee526982 at 192.168.160.44:5060 > SIP/2.0.* > > Via: SIP/2.0/UDP 192.168.160.47;branch=z9hG4bKcydzigwkX. > > Via: SIP/2.0/UDP 4.55.18.227:5060;branch=z9hG4bK04B0eef33040e9b8e70. > > From: sip:+14088442721 at 4.55.18.227:5060;tag=gK043001e3. > > To: sip:+19728931740 at 192.168.160.47:5060;tag=b307370c678f3b44. > > Call-ID: 295226_50030734 at 4.55.18.227 > . > > CSeq: 18079 ACK. > > Max-Forwards: 69. > > Content-Length: 0. > > *Route: sip:callmanager at 192.168.160.43:5060>.* > > I have attached the config file for you reference. Kamailio > version is 3.2.3 > the next proxy does strict routing, because the Route header has not 'lr' parameter. Based on SIP specs, Kamailio has to take that route and set it as r-uri and the r-uri has to be added as last route, so next proxy will be able to do forwarding based on strict routing rules. Maybe there is an option in that device at 192.168.160.44 to do loose routing, which is the recommended one in RFC3261 (strict routing is from the old rfc of SIP). Regarding the missing '<' in the Route header sent out from Kamailio, there was an issue in the code handling this specific situation, should be fixed now by commit: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=cbb62f8619b513605498d00abc5d4c8b2f5654d7 You have to apply that patch or use the latest git branch 3.2. Let us know if works fine. Cheers, Daniel -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw -------------- next part -------------- An HTML attachment was scrubbed... URL: From vijay.thakur at loopmethods.com Fri Aug 3 10:38:09 2012 From: vijay.thakur at loopmethods.com (Vijay Thakur) Date: Fri, 03 Aug 2012 14:08:09 +0530 Subject: [SR-Users] kernel: nf_ct_sip: dropping packetIN= OUT=eth0 Error Message-ID: <501B8DF1.7030002@loopmethods.com> Hello all, I have configure Kamailio 3.1.5 Server. All things are working fine. When i make a call from Soft phone (X-Lite) to iphone, all is working fine. But in other case call from iphone to Softphone is not working, even not ringing. During checking the logs i am getting the error: Aug 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) This is server is hosted on Linnode. Kindly guide me to solve the problem -- Best Regards, Vijay Thakur (Assistant Manager - Networks) Mobile : +91 8744018065 Mail : vijay.thakur at loopmethods.com Loop IT Methods Private Limited 1st Floor, B-10, Sector-7, Noida, (U.P) India Ph: +91 120 305 3481,82 (INDIA), +1 347 468 8631 (USA), +61 390 011 178 (AUS) Fax: +91 971 728 330 Web: www.loopmethods.com LOOP Disclaimer ------------------------------------------------------------------------------------------------- This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ----------------------------------------------------------------------------------------------------------------- From miconda at gmail.com Fri Aug 3 10:51:17 2012 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Fri, 03 Aug 2012 10:51:17 +0200 Subject: [SR-Users] postgres in kamailio 3.3.0-9.1 In-Reply-To: <501B48C1.5020005@akan-tech.com> References: <50194C47.1030602@telegroup.com.ua> <50198ACE.7030909@gmail.com> <5019CADF.4070703@akan.net> <501A27D7.90107@gmail.com> <501B48C1.5020005@akan-tech.com> Message-ID: <501B9105.3050508@gmail.com> Hello, On 8/3/12 5:42 AM, Nathaniel L Keeling wrote: > Yes but it was for an older version that was uninstalled. I changed > the path to pull in the current version and still received the same > error. I checked the version for openssl and the same thing was > happening. I changed the path again and recompiled kamailio and still > no change. I noticed when compiling kamailio, the tls.so module was > complaining that the version of openssl was less then 1.0. The version > that I installed is 1.0.1c. openssl libs can be installed with many versions at the same time, as the package names differ -- so 0.9x and 1.x can exist installed at the same time. Double check you don't have both installed, as some applications out there require 0.9, others 1.0, they could get installed due to dependencies. It may happen that opensuse build service used a specific openssl version when building the rpms -- the rpm spec requires generic packages openssl and openssl-devel for building. What is the version of your OS? Cheers, Daniel -- Daniel-Constantin Mierla - http://www.asipto.com http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw From mino.haluz at gmail.com Fri Aug 3 15:53:34 2012 From: mino.haluz at gmail.com (Mino Haluz) Date: Fri, 3 Aug 2012 15:53:34 +0200 Subject: [SR-Users] 302 redirect with 2 numbers registered Message-ID: Hi, one number is registered on 2 phones. Phone1 has Always redirect set to another number. When incoming call is initiated, Phone2 is ringing and Phone1 sends 302 to the proxy. However the proxy does not send 302 to the caller (for ex. GW), but it waits for timeout of the Phone2. Then the proxy sends 302 to the caller. Can I do in kamailio, that it will ring on the Phone1 and also on the number where it is redirected? I know kamailio is a proxy and cannot initiate a call, but is there any solution? Thanks. Mino From apogrebennyk at sipwise.com Fri Aug 3 16:07:50 2012 From: apogrebennyk at sipwise.com (Andrew Pogrebennyk) Date: Fri, 03 Aug 2012 16:07:50 +0200 Subject: [SR-Users] 302 redirect with 2 numbers registered In-Reply-To: References: Message-ID: <501BDB36.7050503@sipwise.com> Mino, I am not sure, but you could try the following: set failure_reply_mode 3 (http://kamailio.org/docs/modules/stable/modules/tm.html#failure_reply_mode), then handle 302 redirect in the proxy and use the contact as a new branch like this: if(status == "302") { $var(contact) = $ct; $var(contact) = $(var(contact){nameaddr.uri}); $du = $var(contact); append_branch(); t_relay(); } Would it ring it while branch to Phone1 is still active? Maybe not, but you will need to try.. On 08/03/2012 03:53 PM, Mino Haluz wrote: > Hi, > > one number is registered on 2 phones. Phone1 has Always redirect set > to another number. When incoming call is initiated, Phone2 is ringing > and Phone1 sends 302 to the proxy. However the proxy does not send 302 > to the caller (for ex. GW), but it waits for timeout of the Phone2. > Then the proxy sends 302 to the caller. > > Can I do in kamailio, that it will ring on the Phone1 and also on the > number where it is redirected? I know kamailio is a proxy and cannot > initiate a call, but is there any solution? Thanks. > > Mino > > _______________________________________________ > 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 > From evilzluk at gmail.com Fri Aug 3 16:38:23 2012 From: evilzluk at gmail.com (Konstantin M.) Date: Fri, 3 Aug 2012 17:38:23 +0300 Subject: [SR-Users] kernel: nf_ct_sip: dropping packetIN= OUT=eth0 Error In-Reply-To: <501B8DF1.7030002@loopmethods.com> References: <501B8DF1.7030002@loopmethods.com> Message-ID: Looks like your firewall is passing a state RELATED,ESTABLISHED and don't have a permit rule for a state NEW. Check your iptables or simply do a command: iptables-save > /tmp/iptables.txt and paste this file (/tmp/iptables.txt) to pastebin 2012/8/3 Vijay Thakur > Hello all, > > I have configure Kamailio 3.1.5 Server. All things are working fine. When > i make a call from Soft phone (X-Lite) to iphone, all is working fine. But > in other case call from iphone to Softphone is not working, even not > ringing. During checking the logs i am getting the error: > > Aug 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= > MAC=f2:3c:91:ae:92:36:c8:4c:**75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 > DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF PROTO=TCP > SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 RES=0x00 ACK > URGP=0 OPT (0101080A000E20610932B25A) > > This is server is hosted on Linnode. > > Kindly guide me to solve the problem > > -- > Best Regards, > > Vijay Thakur > (Assistant Manager - Networks) > Mobile : +91 8744018065 > Mail : vijay.thakur at loopmethods.com > > Loop IT Methods Private Limited > 1st Floor, B-10, Sector-7, Noida, (U.P) India > Ph: +91 120 305 3481,82 (INDIA), +1 347 468 8631 (USA), +61 390 011 178(AUS) > Fax: +91 971 728 330 > Web: www.loopmethods.com > > LOOP Disclaimer ------------------------------** > ------------------------------**------------------------------**------- > This message (including any attachments) contains confidential information > intended for a specific individual and purpose, and is protected by law. If > you are not the intended recipient, you should delete this message and are > hereby notified that any disclosure, copying, or distribution of this > message, or the taking of any action based on it, is strictly prohibited. > ------------------------------**------------------------------** > ------------------------------**----------------------- > > > ______________________________**_________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From henning at loca.net Sat Aug 4 00:30:28 2012 From: henning at loca.net (Henning Holtschneider) Date: Sat, 4 Aug 2012 00:30:28 +0200 Subject: [SR-Users] REGISTER replication to multiple hosts Message-ID: Hello, I'm trying to migrate an existing configuration from OpenSIPS 1.4.x to Kamailio 3.2.x. The old configuration replicates REGISTER requests to multiple servers using this code in the REGISTER routing block: add_sock_hdr("Local-Sock"); add_rcv_param(); append_branch("sip:1.1.1.1:5060"); t_replicate("sip:2.2.2.2:5060"); exit; From what I read in the documentation, the behaviour of append_branch() is different in Kamailio, so I modified my code like this: add_sock_hdr("Local-Sock"); add_rcv_param(); append_branch(); seturi(sip:1.1.1.1:5060"); t_replicate("sip:2.2.2.2:5060"); exit; Unfortunately, I do not see any REGISTER requests arriving on 1.1.1.1 so I assume that I made a mistake when forking the request. Can anyone point me in the right direction? Thanks, Henning Holtschneider -- LocaNet oHG - http://www.loca.net Lindemannstrasse 81, D-44137 Dortmund tel +49 231 91596-25, fax +49 231 91596-55 sip 25 at voip.loca.net Registergericht Amtsgericht Dortmund HRA 14208 Gesch?ftsf?hrer Sven Haufe, Henning Holtschneider -------------- next part -------------- A non-text attachment was scrubbed... Name: PGP.sig Type: application/pgp-signature Size: 194 bytes Desc: Signierter Teil der Nachricht URL: From edesibe at googlemail.com Fri Aug 3 09:31:44 2012 From: edesibe at googlemail.com (Ivan Milivojevic) Date: Fri, 3 Aug 2012 09:31:44 +0200 Subject: [SR-Users] Question about Proxy-Authorization header in ACK Message-ID: <010001cd714a$092f3620$1b8da260$@com> Hi all, I have a one question regarding ACK and Proxy-Authorization header. I am testing Kamailio 3.3 as SIP proxy,default config. I made one call with 2 phones where one has Public IP while other is behind NAT. SIP clients are Panasonic KX-UT133 and other is 1-NET (ex Sweden Mobile&CDMA provider ,over 50M users) Everything is working just fine, both RTP and SIP. On the other hand one of the clients,1-NET one, send Proxy-Authorization in ACK when he receives 200 OK from Kamailio. PUBLIC_IP_USER1 - user 1000 PUBLIC_IP_USER2 - user 1001 KAMAILIO ==> 1-NET SIP/2.0 200 OKr\n Record-Route: KAMAILIO_PUBLIC_IP;lr=on;nat=yes> Via: SIP/2.0/UDP PUBLIC_IP_USER1:5064;rport=5064;branch=z9hG4bK934894606 Call-ID: 221374358 From: blabla KAMAILIO_PUBLIC_IP>;tag=507511069 To: KAMAILIO_PUBLIC_IP:5060>;tag=2148378512 CSeq: 21 INVITE Allow: INVITE,ACK,CANCEL,BYE,INFO,UPDATE,OPTIONS,NOTIFY,REFER Contact: PUBLIC_IP_USER2:1027> Require: replaces Content-Type: application/sdp Server: Panasonic_KX-UT133NE/01.081 (0080f0cedd83) Content-Length: 182 v=0 o=- 1343736535 1343736535 IN IP4 KAMAILIO_PUBLIC_IP s=- c=IN IP4 KAMAILIO_PUBLIC_IP t=0 0 m=audio 20412 RTP/AVP 18 a=rtpmap:18 G729/8000 a=sendrecv a=ptime:20 a=nortpproxy:yes 1-NET ==> KAMAILIO ACK sip:1001@ PUBLIC_IP_USER2:1027 SIP/2.0 Via: SIP/2.0/UDP PUBLIC_IP_USER1:5064;rport;branch=z9hG4bK642028490 Route: KAMAILIO_PUBLIC_IP;lr=on;nat=yes> From: blabla KAMAILIO_PUBLIC_IP>;tag=507511069 To: KAMAILIO_PUBLIC_IP:5060>;tag=2148378512 Call-ID: 221374358 CSeq: 21 ACK Contact: PUBLIC_IP_USER1:5064> [truncated] Proxy-Authorization: Digest username="1000", realm="KAMAILIO_PUBLIC_IP", nonce="UBfL8lAXysb5tJCs80ZnthyPl9IzmRZk", uri="sip:1001 at KAMAILIO_PUBLIC_IP:5060", response="7824519cdad9f1c2c79027a2d7522344", algorithm=MD5, cnonce="0a4f113b", q Max-Forwards: 70 User-Agent: Serbia_2.00 Content-Length: 0 I attach txt file with call flow, I can send pcap also. I think that the issue is related with bad client but I need another opinion. Does anyone has an idea about this issue? Best Regards, Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sip_trace.log Type: application/octet-stream Size: 12773 bytes Desc: not available URL: From techsup0073 at gmail.com Sat Aug 4 13:28:46 2012 From: techsup0073 at gmail.com (Techie Sup) Date: Sat, 4 Aug 2012 16:58:46 +0530 Subject: [SR-Users] RTP over TCP Message-ID: Hi All, Is there any possibility of sending RTP over TCP, because we are building a softphone based on PJSIP, but seems that some ISP are blocking RTP packets over UDP. Any solutions for this. Regards Gloria -------------- next part -------------- An HTML attachment was scrubbed... URL: From techsup0073 at gmail.com Sun Aug 5 11:06:07 2012 From: techsup0073 at gmail.com (Techie Sup) Date: Sun, 5 Aug 2012 14:36:07 +0530 Subject: [SR-Users] RTP over TCP In-Reply-To: References: Message-ID: ---------- Forwarded message ---------- From: Techie Sup Date: Sat, 4 Aug 2012 16:58:46 +0530 Subject: RTP over TCP To: sr-users at lists.sip-router.org Hi All, Is there any possibility of sending RTP over TCP, because we are building a softphone based on PJSIP, but seems that some ISP are blocking RTP packets over UDP. Any solutions for this. Regards Gloria From abalashov at evaristesys.com Sun Aug 5 11:13:48 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Sun, 05 Aug 2012 05:13:48 -0400 Subject: [SR-Users] RTP over TCP In-Reply-To: References: Message-ID: <501E394C.6090306@evaristesys.com> Yes, if you just keep forwarding your message to the list every ~22 hours, that will surely elicit a response. On 08/05/2012 05:06 AM, Techie Sup wrote: > ---------- Forwarded message ---------- > From: Techie Sup > Date: Sat, 4 Aug 2012 16:58:46 +0530 > Subject: RTP over TCP > To: sr-users at lists.sip-router.org > > Hi All, > > Is there any possibility of sending RTP over TCP, because we are building a > softphone based on PJSIP, but seems that some ISP are blocking RTP packets > over UDP. Any solutions for this. > > Regards > Gloria > > _______________________________________________ > 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 > -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ From abalashov at evaristesys.com Sun Aug 5 11:19:44 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Sun, 05 Aug 2012 05:19:44 -0400 Subject: [SR-Users] RTP over TCP In-Reply-To: References: Message-ID: <501E3AB0.5030402@evaristesys.com> There is that possibility, yes, insofar as the RFC 3550 does contemplate non-UDP transports. The real question is: why are you asking this list? Kamailio/sip-router is not involved in RTP transport. Why would you look for solutions here? On 08/04/2012 07:28 AM, Techie Sup wrote: > Hi All, > > Is there any possibility of sending RTP over TCP, because we are > building a softphone based on PJSIP, but seems that some ISP are > blocking RTP packets over UDP. Any solutions for this. > > Regards > Gloria > > > _______________________________________________ > 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 > -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ From universe at truemetal.org Sun Aug 5 12:47:23 2012 From: universe at truemetal.org (Markus) Date: Sun, 05 Aug 2012 12:47:23 +0200 Subject: [SR-Users] Getting started with Kamailio In-Reply-To: <501AFAFA.70405@evaristesys.com> References: <501AAD9A.3030406@truemetal.org> <501AFAFA.70405@evaristesys.com> Message-ID: <501E4F3B.30602@truemetal.org> Hi Alex, Am 03.08.2012 00:11, schrieb Alex Balashov: >> - Give only a single IP address to all customers and termination >> providers (the same IP address), 195.5.5.5. > > That would be difficult, unless you really have your anycast ducks in a > row. A more common way to approach this problem is SRV records, though > not all SIP endpoints out there implement SRV correctly or make use of > it in the manner contemplated by a redundancy-oriented use of them. I think I'll be fine if I prepend my ASN several times at one location (Spain or France). I will probably still get some tiny traffic from the direct upstream and maybe its customers, if they have configured it this way, but the traffic that is originating from my IPs at this location will also get routed via the direct upstream, so everything should be in order. Therefore that location will act as backup only (except the constant tiny traffic that it will probably receive). I'll cut the rest of your answers as I have nothing to add. Just wanted to say a big thank you for the detailed answers! That helped. Regards Markus From noreply+2542793023 at badoo.com Sun Aug 5 17:37:07 2012 From: noreply+2542793023 at badoo.com (Badoo) Date: Sun, 5 Aug 2012 15:37:07 +0000 Subject: [SR-Users] Gorka left a message for you Message-ID: <20120805153708.7B6F1370540@mail.iptel.org> Gorka left a message for you Only you can see the sender and content of your message, and you can delete it anytime. You can instantly reply using our message exchange system: http://eu1.badoo.com/0106730996/in/UJF4Z.6PYhQ/?lang_id=3&m=63&mid=501e9322000000000003000006c28ba2000100970652 Some other people in the area who are on Badoo Ali (Jeddah, Saudi Arabia) Fnoo meni jnoo (Jeddah, Saudi Arabia) ????????? (Jeddah, Saudi Arabia) http://eu1.badoo.com/0106730996/in/UJF4Z.6PYhQ/?lang_id=3&m=63&mid=501e9322000000000003000006c28ba2000100970652 If the link in this message does not work, try copying and pasting it into your browser. This email is part of our delivery procedure for the message sent by Gorka. If you have received this email by mistake, please ignore it. The message will be deleted soon. Have fun! The Badoo Team You have received this email from Badoo Trading Limited (postal address below). http://eu1.badoo.com/impersonation.phtml?lang_id=3&email=serusers%40iptel.org&block_code=8f4b94&m=63&mid=501e9322000000000003000006c28ba2000100970652 Badoo Trading Limited is a limited company registered in England and Wales under CRN 7540255 with its registered office at 12 Red Lion Square, London, WC1R 4QD. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vijay.thakur at loopmethods.com Mon Aug 6 06:53:23 2012 From: vijay.thakur at loopmethods.com (Vijay Thakur) Date: Mon, 06 Aug 2012 10:23:23 +0530 Subject: [SR-Users] sr-users Digest, Vol 87, Issue 9 In-Reply-To: References: Message-ID: <501F4DC3.8020106@loopmethods.com> Hi Konstantin, Thanks for your kind reply. You can check the iptables output at : http://pastebin.com/i3zUfVeb. I hope that this will give you enough clue in right direction. With Regards, Vijay Thakur ====================================================================================================================== Message: 3 Date: Fri, 3 Aug 2012 17:38:23 +0300 From: "Konstantin M." Subject: Re: [SR-Users] kernel: nf_ct_sip: dropping packetIN= OUT=eth0 Error To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List" Message-ID: Content-Type: text/plain; charset="iso-8859-1" Looks like your firewall is passing a state RELATED,ESTABLISHED and don't have a permit rule for a state NEW. Check your iptables or simply do a command: iptables-save > /tmp/iptables.txt and paste this file (/tmp/iptables.txt) to pastebin 2012/8/3 Vijay Thakur > Hello all, > > I have configure Kamailio 3.1.5 Server. All things are working fine. When > i make a call from Soft phone (X-Lite) to iphone, all is working fine. But > in other case call from iphone to Softphone is not working, even not > ringing. During checking the logs i am getting the error: > > Aug 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= > MAC=f2:3c:91:ae:92:36:c8:4c:**75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 > DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF PROTO=TCP > SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 RES=0x00 ACK > URGP=0 OPT (0101080A000E20610932B25A) > > This is server is hosted on Linnode. > > Kindly guide me to solve the problem > > -- > Best Regards, > > Vijay Thakur > (Assistant Manager - Networks) > Mobile : +91 8744018065 > Mail :vijay.thakur at loopmethods.com From miconda at gmail.com Mon Aug 6 08:45:31 2012 From: miconda at gmail.com (Daniel-Constantin Mierla) Date: Mon, 06 Aug 2012 08:45:31 +0200 Subject: [SR-Users] REGISTER replication to multiple hosts In-Reply-To: References: Message-ID: <501F680B.8050009@gmail.com> Hello, seturi() just sets the request uri, then the t_replicate function you call is sending to 2.2.2.2. You can use km_append_branch(...) which is the function to append branches inherited from openser times. It is in the kex module: http://kamailio.org/docs/modules/stable/modules_k/kex.html#id2551404 Just fyi, there is an alternative of distributing the location records using the presence mechanism, based on an IETF RFC, a recommendation for IMS networks -- see pua_reginfo and presence_reginfo http://kamailio.org/docs/modules/stable/modules_k/pua_reginfo.html http://kamailio.org/docs/modules/stable/modules_k/presence_reginfo.html Still the t_replicate() should be the simpler approach and should work just fine with latest version. Cheers, Daniel On 8/4/12 12:30 AM, Henning Holtschneider wrote: > Hello, > > I'm trying to migrate an existing configuration from OpenSIPS 1.4.x to Kamailio 3.2.x. The old configuration replicates REGISTER requests to multiple servers using this code in the REGISTER routing block: > > add_sock_hdr("Local-Sock"); > add_rcv_param(); > append_branch("sip:1.1.1.1:5060"); > t_replicate("sip:2.2.2.2:5060"); > exit; > > From what I read in the documentation, the behaviour of append_branch() is different in Kamailio, so I modified my code like this: > > add_sock_hdr("Local-Sock"); > add_rcv_param(); > append_branch(); > seturi(sip:1.1.1.1:5060"); > t_replicate("sip:2.2.2.2:5060"); > exit; > > Unfortunately, I do not see any REGISTER requests arriving on 1.1.1.1 so I assume that I made a mistake when forking the request. Can anyone point me in the right direction? > > Thanks, > Henning Holtschneider > -- > LocaNet oHG - http://www.loca.net > Lindemannstrasse 81, D-44137 Dortmund > tel +49 231 91596-25, fax +49 231 91596-55 > sip 25 at voip.loca.net > > Registergericht Amtsgericht Dortmund HRA 14208 > Gesch?ftsf?hrer Sven Haufe, Henning Holtschneider > > > > _______________________________________________ > 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://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Kamailio Advanced Training, Seattle, USA, Sep 23-26, 2012 - http://asipto.com/u/katu Kamailio Practical Workshop, Netherlands, Sep 10-12, 2012 - http://asipto.com/u/kpw -------------- next part -------------- An HTML attachment was scrubbed... URL: From klaus.mailinglists at pernau.at Mon Aug 6 09:50:02 2012 From: klaus.mailinglists at pernau.at (Klaus Darilion) Date: Mon, 06 Aug 2012 09:50:02 +0200 Subject: [SR-Users] Question about Proxy-Authorization header in ACK In-Reply-To: <010001cd714a$092f3620$1b8da260$@com> References: <010001cd714a$092f3620$1b8da260$@com> Message-ID: <501F772A.5090901@pernau.at> Authenticating ACK is troublesome as ACK may not be challenged. Thus, some clients (IIRC also eyebam does it) send ACK with Proxy-Authentication using previous nonce to avoid troubles in case the proxy authenticates the ACK too. regards Klaus On 03.08.2012 09:31, Ivan Milivojevic wrote: > Hi all, > > I have a one question regarding ACK and Proxy-Authorization header. > > I am testing Kamailio 3.3 as SIP proxy,default config. I made one call > with 2 phones where one has Public IP while other is behind NAT. SIP > clients are Panasonic KX-UT133 and other is 1-NET (ex Sweden Mobile&CDMA > provider ,over 50M users) Everything is working just fine, both RTP and > SIP. On the other hand one of the clients,1-NET one, send > Proxy-Authorization in ACK when he receives 200 OK from Kamailio. > > *PUBLIC_IP_USER1 ? user 1000* > > *PUBLIC_IP_USER2 ? user 1001* > > KAMAILIO ? 1-NET > > SIP/2.0 200 OKr\n > > Record-Route: > > > Via: SIP/2.0/UDP *PUBLIC_IP_USER1*:5064;rport=5064;branch=z9hG4bK934894606 > > Call-ID: 221374358 > > From: blabla >;tag=507511069 > > To: >;tag=2148378512 > > CSeq: 21 INVITE > > Allow: INVITE,ACK,CANCEL,BYE,INFO,UPDATE,OPTIONS,NOTIFY,REFER > > Contact: > > > Require: replaces > > Content-Type: application/sdp > > Server: Panasonic_KX-UT133NE/01.081 (0080f0cedd83) > > Content-Length: 182 > > v=0 > > o=- 1343736535 1343736535 IN IP4 KAMAILIO_PUBLIC_IP > > s=- > > c=IN IP4 KAMAILIO_PUBLIC_IP > > t=0 0 > > m=audio 20412 RTP/AVP 18 > > a=rtpmap:18 G729/8000 > > a=sendrecv > > a=ptime:20 > > a=nortpproxy:yes > > 1-NET ? KAMAILIO > > ACK sip:1001@*PUBLIC_IP_USER2*:1027 SIP/2.0 > > Via: SIP/2.0/UDP *PUBLIC_IP_USER1*:5064;rport;branch=z9hG4bK642028490 > > Route: > > > From: blabla >;tag=507511069 > > To: >;tag=2148378512 > > Call-ID: 221374358 > > CSeq: 21 ACK > > Contact: > > > *[truncated] Proxy-Authorization: Digest username="1000", > realm="KAMAILIO_PUBLIC_IP", nonce="UBfL8lAXysb5tJCs80ZnthyPl9IzmRZk", > uri="sip:1001 at KAMAILIO_PUBLIC_IP:5060", > response="7824519cdad9f1c2c79027a2d7522344", algorithm=MD5, > cnonce="0a4f113b", q* > > Max-Forwards: 70 > > User-Agent: Serbia_2.00 > > Content-Length: 0 > > I attach txt file with call flow, I can send pcap also. > > I think that the issue is related with bad client but I need another > opinion. > > Does anyone has an idea about this issue? > > Best Regards, > > Ivan > > > > _______________________________________________ > 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 > From phillman25 at gmail.com Mon Aug 6 10:24:03 2012 From: phillman25 at gmail.com (phillman25) Date: Mon, 6 Aug 2012 11:24:03 +0300 Subject: [SR-Users] B2BUA issues Message-ID: Dear List I am trying to accomplish the following: Asterisk PABX (192.168.10.189) ==> Kamailio(xxx.xxx.xxx.xxx) ==> Cisco PGW 2200 (PSTN gateway) (yyy.yyy.yyy.yyy) ==> Kamailio(xxx.xxx.xxx.xxx) ==> Asterisk PABX (192.168.10.189) When trying the above scenario, the call is silent and drops after a few seconds. In syslog i observe the following error: *ERROR: [parser/parse_rr.c:84]: parse_rr(): Error while parsing name-addr (sip:22030305 at 192.168.10.189:5060>)* Looking at the sip trace i see that his might be caused by the ACK message received from the ASTERISK PABX? : ACK sip:22030305 at 192.168.10.189:5060 SIP/2.0 Via: SIP/2.0/UDP 192.168.10.189:5060;branch=z9hG4bK3c80f516;rport Route: ,, Max-Forwards: 70 From: "22498045" ;tag=as166b1eea To: ;tag=as6d578713 Contact: Call-ID: 5e2d61160bd1bec9214e2d7d04e5a778 at 192.168.10.189:5060 CSeq: 102 ACK User-Agent: FPBX-2.8.1(1.8.12.0) Content-Length: 0 After contacting Cisco they informed us that issue is cause by B2BUA from our current version of Cisco PGW 2200 that doesn't support this feature. Is there a module, solution that i can implement on Kamailio that could temporarily resolve this issue? Thanking you in advance. Phillip -------------- next part -------------- An HTML attachment was scrubbed... URL: From abalashov at evaristesys.com Mon Aug 6 10:26:28 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Mon, 06 Aug 2012 04:26:28 -0400 Subject: [SR-Users] B2BUA issues In-Reply-To: References: Message-ID: <501F7FB4.8040700@evaristesys.com> What is the larger objective? Are you using the PGW purely as a B2BUA? If so, that's a colossally overblown waste of resources; just use something like SEMS or Asterisk. On 08/06/2012 04:24 AM, phillman25 wrote: > Dear List > > I am trying to accomplish the following: > > > Asterisk PABX (192.168.10.189) ==> Kamailio(xxx.xxx.xxx.xxx) ==> Cisco > PGW 2200 (PSTN gateway) (yyy.yyy.yyy.yyy) ==> > Kamailio(xxx.xxx.xxx.xxx) ==> Asterisk PABX (192.168.10.189) > > When trying the above scenario, the call is silent and drops after a few > seconds. In syslog i observe the following error: > > *ERROR: [parser/parse_rr.c:84]: parse_rr(): Error while parsing > name-addr (sip:22030305 at 192.168.10.189:5060 > >)* > > Looking at the sip trace i see that his might be caused by the ACK > message received from the ASTERISK PABX? : > > ACK sip:22030305 at 192.168.10.189:5060 > SIP/2.0 > Via: SIP/2.0/UDP 192.168.10.189:5060;branch=z9hG4bK3c80f516;rport > Route: > , yyy.yyy.yyy.yyy;pgw-call=call-55bc4>, > Max-Forwards: 70 > From: "22498045" >;tag=as166b1eea > To: ;tag=as6d578713 > Contact: > > Call-ID: 5e2d61160bd1bec9214e2d7d04e5a778 at 192.168.10.189:5060 > > CSeq: 102 ACK > User-Agent: FPBX-2.8.1(1.8.12.0) > Content-Length: 0 > > > After contacting Cisco they informed us that issue is cause by B2BUA > from our current version of Cisco PGW 2200 that doesn't support this > feature. Is there a module, solution that i can implement on Kamailio > that could temporarily resolve this issue? > > Thanking you in advance. > > Phillip > > > _______________________________________________ > 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 > -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ From vijay.thakur at loopmethods.com Mon Aug 6 12:08:30 2012 From: vijay.thakur at loopmethods.com (Vijay Thakur) Date: Mon, 06 Aug 2012 15:38:30 +0530 Subject: [SR-Users] Kernel Droping SIP packet Message-ID: <501F979E.30607@loopmethods.com> Hi all, I have configure Kamailio 3.1.5 Server. All things are working fine. When i make a call from Soft phone (X-Lite) to iphone, all is working fine. But in other case call from iphone to Softphone is not working, even not ringing. During checking the logs i am getting the error: Aug 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) I have not implemented any firewall. You can check the out put of my iptables : http://pastebin.com/i3zUfVeb The SIP server is hosted at linnode. With thanks in advance. Sorry dual posting. Vijay TH From phillman25 at gmail.com Mon Aug 6 12:17:23 2012 From: phillman25 at gmail.com (phillman25) Date: Mon, 6 Aug 2012 13:17:23 +0300 Subject: [SR-Users] B2BUA issues Message-ID: Hi Alex Thanks for your prompt reply. The PGW 2200 solution is used as our core PSTN gateway where its currently handling many SS7, H.323 and SIP interconnections. However, there are a few scenarios like the example described below, that the call is originating from Kamailio being sent to the PGW and then back to Kamailio for termination and this scenario doesn't seem to work. Do you think that by implementing SEMS or Asterisk in between the PGW and Kamailio could resolve this issue for these specific scenarios? From abalashov at evaristesys.com Mon Aug 6 12:33:07 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Mon, 06 Aug 2012 06:33:07 -0400 Subject: [SR-Users] B2BUA issues Message-ID: The short answer to your latter question is: yes. Cisco media and PSTN gateways have never hairpinned SIP-to-SIP calls well, even when officially supported.? Asterisk has a lower learning curve due to the abundance of information and tutorials, but SEMS would make more sense, since all you need is a signaling B2BUA. -- Alex -- Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Web: http://www.evaristesys.com/phillman25 wrote:Hi Alex Thanks for your prompt reply. The PGW 2200 solution is used as our core PSTN gateway where its currently handling many SS7, H.323 and SIP interconnections. However, there are a few scenarios like the example described below, that the call is originating from Kamailio being sent to the PGW and then back to Kamailio for termination and this scenario doesn't seem to work. Do you think that by implementing SEMS or Asterisk in between the PGW and Kamailio could resolve this issue for these specific scenarios? From your experience what do you think would be a better solution? Thanks again! Phillip ======================== Message: 2 Date: Mon, 06 Aug 2012 04:26:28 -0400 From: Alex Balashov Subject: Re: [SR-Users] B2BUA issues To:?sr-users at lists.sip-router.org Message-ID: <501F7FB4.8040700 at evaristesys.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed What is the larger objective? ?Are you using the PGW purely as a B2BUA? ? If so, that's a colossally overblown waste of resources; ?just use something like SEMS or Asterisk. On 08/06/2012 04:24 AM, phillman25 wrote: > Dear List > > I am trying to accomplish the following: > > > Asterisk PABX (192.168.10.189) ==> Kamailio(xxx.xxx.xxx.xxx) ?==> Cisco > PGW 2200 (PSTN gateway) (yyy.yyy.yyy.yyy) ==> > Kamailio(xxx.xxx.xxx.xxx) ==> Asterisk PABX (192.168.10.189) > > When trying the above scenario, the call is silent and drops after a few > seconds. In syslog i observe the following error: > > *ERROR: [parser/parse_rr.c:84]: parse_rr(): Error while parsing > name-addr (sip:22030305 at 192.168.10.189:5060 > >)* > > Looking at the sip trace i see that his might be caused by the ACK > message received from the ASTERISK PABX? : > > ACK?sip:22030305 at 192.168.10.189:5060 > SIP/2.0 > Via: SIP/2.0/UDP 192.168.10.189:5060;branch=z9hG4bK3c80f516;rport > Route: > , yyy.yyy.yyy.yyy;pgw-call=call-55bc4>, > Max-Forwards: 70 > From: "22498045" >;tag=as166b1eea > To: ;tag=as6d578713 > Contact: > > Call-ID:?5e2d61160bd1bec9214e2d7d04e5a778 at 192.168.10.189:5060 > > CSeq: 102 ACK > User-Agent: FPBX-2.8.1(1.8.12.0) > Content-Length: 0 > > > After contacting Cisco they informed us that issue is cause by B2BUA > from our current version of Cisco PGW 2200 that doesn't support this > feature. Is there a module, solution that i can implement on Kamailio > that could temporarily resolve this issue? > > Thanking you in advance. > > Phillip -------------- next part -------------- An HTML attachment was scrubbed... URL: From abalashov at evaristesys.com Mon Aug 6 12:35:04 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Mon, 06 Aug 2012 06:35:04 -0400 Subject: [SR-Users] Kernel Droping SIP packet Message-ID: <17t1fd0fbly84yy2vuy8qlcp.1344249304618@email.android.com> You might consider pasting the actual output of: iptables -L -n This lists the actual rules straight from netfilter at runtime. I wouldn't worry too much about what some distro-specific config file or script says. Real truth comes from iptables itself.? -- Alex -- Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Web: http://www.evaristesys.com/Vijay Thakur wrote:Hi all, I have configure Kamailio 3.1.5 Server. All things are working fine. When i make a call from Soft phone (X-Lite) to iphone, all is working fine. But in other case call from iphone to Softphone is not working, even not ringing. During checking the logs i am getting the error: Aug? 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) I have not implemented any firewall. You can check the out put of my iptables : http://pastebin.com/i3zUfVeb The SIP server is hosted at linnode. With thanks in advance. Sorry dual posting. Vijay TH _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From phillman25 at gmail.com Mon Aug 6 13:57:51 2012 From: phillman25 at gmail.com (phillman25) Date: Mon, 6 Aug 2012 14:57:51 +0300 Subject: [SR-Users] B2BUA issues In-Reply-To: References: Message-ID: Hello Alex Will try with SEMS first, found something called sip:provider CE v2.4 from http://www.sipwise.com/news/announcements/spce-v2_4-release/ if i'm not mistaken, this seems to combine Kamailio with SEMS? Do you think that this might be an easier installation rather than installing SEMS on its own as it seems to provide more documentation? Thanks again! On Mon, Aug 6, 2012 at 1:33 PM, Alex Balashov wrote: > The short answer to your latter question is: yes. Cisco media and PSTN > gateways have never hairpinned SIP-to-SIP calls well, even when officially > supported. > > Asterisk has a lower learning curve due to the abundance of information > and tutorials, but SEMS would make more sense, since all you need is a > signaling B2BUA. > > > > > -- Alex > > -- > Sent from my Samsung mobile, and thus lacking in the refinement one might > expect from a proper keyboard. > > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Web: http://www.evaristesys.com/ > > phillman25 wrote: > Hi Alex > > Thanks for your prompt reply. > > The PGW 2200 solution is used as our core PSTN gateway where its currently > handling many SS7, H.323 and SIP interconnections. However, there are a few > scenarios like the example described below, that the call is originating > from Kamailio being sent to the PGW and then back to Kamailio for > termination and this scenario doesn't seem to work. > > Do you think that by implementing SEMS or Asterisk in between the PGW and > Kamailio could resolve this issue for these specific scenarios? > From your experience what do you think would be a better solution? > > Thanks again! > Phillip > > ======================== > Message: 2 > Date: Mon, 06 Aug 2012 04:26:28 -0400 > From: Alex Balashov > Subject: Re: [SR-Users] B2BUA issues > To: sr-users at lists.sip-router.org > Message-ID: <501F7FB4.8040700 at evaristesys.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > What is the larger objective? Are you using the PGW purely as a B2BUA? > If so, that's a colossally overblown waste of resources; just use > something like SEMS or Asterisk. > > On 08/06/2012 04:24 AM, phillman25 wrote: > > > Dear List > > > > I am trying to accomplish the following: > > > > > > Asterisk PABX (192.168.10.189) ==> Kamailio(xxx.xxx.xxx.xxx) ==> Cisco > > PGW 2200 (PSTN gateway) (yyy.yyy.yyy.yyy) ==> > > Kamailio(xxx.xxx.xxx.xxx) ==> Asterisk PABX (192.168.10.189) > > > > When trying the above scenario, the call is silent and drops after a few > > seconds. In syslog i observe the following error: > > > > *ERROR: [parser/parse_rr.c:84]: parse_rr(): Error while parsing > > name-addr (sip:22030305 at 192.168.10.189:5060 > > >)* > > > > Looking at the sip trace i see that his might be caused by the ACK > > message received from the ASTERISK PABX? : > > > > ACK sip:22030305 at 192.168.10.189:5060 > > SIP/2.0 > > Via: SIP/2.0/UDP 192.168.10.189:5060;branch=z9hG4bK3c80f516;rport > > Route: > > 66623da5>, > yyy.yyy.yyy.yyy;pgw-call=call-55bc4>, lr=on;ftag=as166b1eea> > > Max-Forwards: 70 > > From: "22498045" > >;tag=as166b1eea > > To: ;tag=as6d578713 > > Contact: > > > > Call-ID: 5e2d61160bd1bec9214e2d7d04e5a778 at 192.168.10.189:5060 > > > > CSeq: 102 ACK > > User-Agent: FPBX-2.8.1(1.8.12.0) > > Content-Length: 0 > > > > > > After contacting Cisco they informed us that issue is cause by B2BUA > > from our current version of Cisco PGW 2200 that doesn't support this > > feature. Is there a module, solution that i can implement on Kamailio > > that could temporarily resolve this issue? > > > > Thanking you in advance. > > > > Phillip > -------------- next part -------------- An HTML attachment was scrubbed... URL: From abalashov at evaristesys.com Mon Aug 6 14:05:12 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Mon, 06 Aug 2012 08:05:12 -0400 Subject: [SR-Users] B2BUA issues Message-ID: <5a1cblsgm692cf4h7q8b8mmv.1344254712317@email.android.com> For your relatively narrow, specific applications in your topology, no. You'd be better off installing SEMS per se.? -- Alex -- Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Web: http://www.evaristesys.com/phillman25 wrote:Hello Alex Will try with SEMS first, found something called?sip:provider CE v2.4 from?http://www.sipwise.com/news/announcements/spce-v2_4-release/?if i'm not mistaken, this seems to combine Kamailio with SEMS? Do you think that this might be an easier installation rather than installing SEMS on its own as it seems to provide more documentation? Thanks again! On Mon, Aug 6, 2012 at 1:33 PM, Alex Balashov wrote: The short answer to your latter question is: yes. Cisco media and PSTN gateways have never hairpinned SIP-to-SIP calls well, even when officially supported.? Asterisk has a lower learning curve due to the abundance of information and tutorials, but SEMS would make more sense, since all you need is a signaling B2BUA. -- Alex -- Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Web: http://www.evaristesys.com/ phillman25 wrote: Hi Alex Thanks for your prompt reply. The PGW 2200 solution is used as our core PSTN gateway where its currently handling many SS7, H.323 and SIP interconnections. However, there are a few scenarios like the example described below, that the call is originating from Kamailio being sent to the PGW and then back to Kamailio for termination and this scenario doesn't seem to work. Do you think that by implementing SEMS or Asterisk in between the PGW and Kamailio could resolve this issue for these specific scenarios? From your experience what do you think would be a better solution? Thanks again! Phillip ======================== Message: 2 Date: Mon, 06 Aug 2012 04:26:28 -0400 From: Alex Balashov Subject: Re: [SR-Users] B2BUA issues To:?sr-users at lists.sip-router.org Message-ID: <501F7FB4.8040700 at evaristesys.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed What is the larger objective? ?Are you using the PGW purely as a B2BUA? ? If so, that's a colossally overblown waste of resources; ?just use something like SEMS or Asterisk. On 08/06/2012 04:24 AM, phillman25 wrote: > Dear List > > I am trying to accomplish the following: > > > Asterisk PABX (192.168.10.189) ==> Kamailio(xxx.xxx.xxx.xxx) ?==> Cisco > PGW 2200 (PSTN gateway) (yyy.yyy.yyy.yyy) ==> > Kamailio(xxx.xxx.xxx.xxx) ==> Asterisk PABX (192.168.10.189) > > When trying the above scenario, the call is silent and drops after a few > seconds. In syslog i observe the following error: > > *ERROR: [parser/parse_rr.c:84]: parse_rr(): Error while parsing > name-addr (sip:22030305 at 192.168.10.189:5060 > >)* > > Looking at the sip trace i see that his might be caused by the ACK > message received from the ASTERISK PABX? : > > ACK?sip:22030305 at 192.168.10.189:5060 > SIP/2.0 > Via: SIP/2.0/UDP 192.168.10.189:5060;branch=z9hG4bK3c80f516;rport > Route: > , yyy.yyy.yyy.yyy;pgw-call=call-55bc4>, > Max-Forwards: 70 > From: "22498045" >;tag=as166b1eea > To: ;tag=as6d578713 > Contact: > > Call-ID:?5e2d61160bd1bec9214e2d7d04e5a778 at 192.168.10.189:5060 > > CSeq: 102 ACK > User-Agent: FPBX-2.8.1(1.8.12.0) > Content-Length: 0 > > > After contacting Cisco they informed us that issue is cause by B2BUA > from our current version of Cisco PGW 2200 that doesn't support this > feature. Is there a module, solution that i can implement on Kamailio > that could temporarily resolve this issue? > > Thanking you in advance. > > Phillip -------------- next part -------------- An HTML attachment was scrubbed... URL: From vijay.thakur at loopmethods.com Mon Aug 6 14:37:28 2012 From: vijay.thakur at loopmethods.com (Vijay Thakur) Date: Mon, 06 Aug 2012 18:07:28 +0530 Subject: [SR-Users] Kernel Droping SIP packet Message-ID: <501FBA88.9030303@loopmethods.com> Thanks for prompt reply. Here is the out put if command iptables -L -n: *Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination Thanks for prompt reply. This is a Ubuntu 10.04 Kamailio 3.1 Server. Vijay TH -============================================================================== * Date: Mon, 06 Aug 2012 06:35:04 -0400 From: Alex Balashov Subject: Re: [SR-Users] Kernel Droping SIP packet To:sr-users at lists.sip-router.org Message-ID:<17t1fd0fbly84yy2vuy8qlcp.1344249304618 at email.android.com> Content-Type: text/plain; charset="utf-8" You might consider pasting the actual output of: iptables -L -n This lists the actual rules straight from netfilter at runtime. I wouldn't worry too much about what some distro-specific config file or script says. Real truth comes from iptables itself.? -- Alex -- Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Web:http://www.evaristesys.com/Vijay Thakur wrote:Hi all, I have configure Kamailio 3.1.5 Server. All things are working fine. When i make a call from Soft phone (X-Lite) to iphone, all is working fine. But in other case call from iphone to Softphone is not working, even not ringing. During checking the logs i am getting the error: Aug? 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) I have not implemented any firewall. You can check the out put of my iptables :http://pastebin.com/i3zUfVeb The SIP server is hosted at linnode. With thanks in advance. Sorry dual posting. Vijay TH * * -------------- next part -------------- An HTML attachment was scrubbed... URL: From phillman25 at gmail.com Mon Aug 6 14:59:57 2012 From: phillman25 at gmail.com (phillman25) Date: Mon, 6 Aug 2012 15:59:57 +0300 Subject: [SR-Users] B2BUA issues In-Reply-To: <5a1cblsgm692cf4h7q8b8mmv.1344254712317@email.android.com> References: <5a1cblsgm692cf4h7q8b8mmv.1344254712317@email.android.com> Message-ID: Ok Alex thanks for the info! On Mon, Aug 6, 2012 at 3:05 PM, Alex Balashov wrote: > For your relatively narrow, specific applications in your topology, no. > You'd be better off installing SEMS per se. > > > > > -- Alex > > -- > Sent from my Samsung mobile, and thus lacking in the refinement one might > expect from a proper keyboard. > > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Web: http://www.evaristesys.com/ > > phillman25 wrote: > Hello Alex > > Will try with SEMS first, found something called sip:provider CE v2.4 > from http://www.sipwise.com/news/announcements/spce-v2_4-release/ if i'm > not mistaken, this seems to combine Kamailio with SEMS? Do you think that > this might be an easier installation rather than installing SEMS on its own > as it seems to provide more documentation? > > Thanks again! > > > > On Mon, Aug 6, 2012 at 1:33 PM, Alex Balashov wrote: > >> The short answer to your latter question is: yes. Cisco media and PSTN >> gateways have never hairpinned SIP-to-SIP calls well, even when officially >> supported. >> >> Asterisk has a lower learning curve due to the abundance of information >> and tutorials, but SEMS would make more sense, since all you need is a >> signaling B2BUA. >> >> >> >> >> -- Alex >> >> -- >> Sent from my Samsung mobile, and thus lacking in the refinement one might >> expect from a proper keyboard. >> >> Alex Balashov - Principal >> Evariste Systems LLC >> 235 E Ponce de Leon Ave >> Suite 106 >> Decatur, GA 30030 >> Tel: +1-678-954-0670 >> Web: http://www.evaristesys.com/ >> >> phillman25 wrote: >> Hi Alex >> >> Thanks for your prompt reply. >> >> The PGW 2200 solution is used as our core PSTN gateway where its >> currently handling many SS7, H.323 and SIP interconnections. However, there >> are a few scenarios like the example described below, that the call is >> originating from Kamailio being sent to the PGW and then back to Kamailio >> for termination and this scenario doesn't seem to work. >> >> Do you think that by implementing SEMS or Asterisk in between the PGW and >> Kamailio could resolve this issue for these specific scenarios? >> From your experience what do you think would be a better solution? >> >> Thanks again! >> Phillip >> >> ======================== >> Message: 2 >> Date: Mon, 06 Aug 2012 04:26:28 -0400 >> From: Alex Balashov >> Subject: Re: [SR-Users] B2BUA issues >> To: sr-users at lists.sip-router.org >> Message-ID: <501F7FB4.8040700 at evaristesys.com> >> Content-Type: text/plain; charset=ISO-8859-1; format=flowed >> >> What is the larger objective? Are you using the PGW purely as a B2BUA? >> If so, that's a colossally overblown waste of resources; just use >> something like SEMS or Asterisk. >> >> On 08/06/2012 04:24 AM, phillman25 wrote: >> >> > Dear List >> > >> > I am trying to accomplish the following: >> > >> > >> > Asterisk PABX (192.168.10.189) ==> Kamailio(xxx.xxx.xxx.xxx) ==> Cisco >> > PGW 2200 (PSTN gateway) (yyy.yyy.yyy.yyy) ==> >> > Kamailio(xxx.xxx.xxx.xxx) ==> Asterisk PABX (192.168.10.189) >> > >> > When trying the above scenario, the call is silent and drops after a few >> > seconds. In syslog i observe the following error: >> > >> > *ERROR: [parser/parse_rr.c:84]: parse_rr(): Error while parsing >> > name-addr (sip:22030305 at 192.168.10.189:5060 >> > >)* >> > >> > Looking at the sip trace i see that his might be caused by the ACK >> > message received from the ASTERISK PABX? : >> > >> > ACK sip:22030305 at 192.168.10.189:5060 >> > SIP/2.0 >> > Via: SIP/2.0/UDP 192.168.10.189:5060;branch=z9hG4bK3c80f516;rport >> > Route: >> > > 66623da5>,> > yyy.yyy.yyy.yyy;pgw-call=call-55bc4>,> lr=on;ftag=as166b1eea> >> > Max-Forwards: 70 >> > From: "22498045" > > >;tag=as166b1eea >> > To: ;tag=as6d578713 >> > Contact: > > > >> > Call-ID: 5e2d61160bd1bec9214e2d7d04e5a778 at 192.168.10.189:5060 >> > >> > CSeq: 102 ACK >> > User-Agent: FPBX-2.8.1(1.8.12.0) >> > Content-Length: 0 >> > >> > >> > After contacting Cisco they informed us that issue is cause by B2BUA >> > from our current version of Cisco PGW 2200 that doesn't support this >> > feature. Is there a module, solution that i can implement on Kamailio >> > that could temporarily resolve this issue? >> > >> > Thanking you in advance. >> > >> > Phillip >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rfuchs at sipwise.com Mon Aug 6 15:01:03 2012 From: rfuchs at sipwise.com (Richard Fuchs) Date: Mon, 06 Aug 2012 09:01:03 -0400 Subject: [SR-Users] Kernel Droping SIP packet In-Reply-To: <501F979E.30607@loopmethods.com> References: <501F979E.30607@loopmethods.com> Message-ID: <501FC00F.6000604@sipwise.com> On 08/06/12 06:08, Vijay Thakur wrote: > Hi all, > > I have configure Kamailio 3.1.5 Server. All things are working fine. > When i make a call from Soft phone (X-Lite) to iphone, all is working > fine. But in other case call from iphone to Softphone is not working, > even not ringing. During checking the logs i am getting the error: > > Aug 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= > MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 > DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF > PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 > RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) This is coming from nf_conntrack_sip, which is a netfilter connection tracking kernel module for SIP. I've never used it, but judging from what Google brings up, it seems to be very buggy. You should be able to just unload it by issuing "rmmod nf_conntrack_sip". If that doesn't work and/or if you want to keep it from auto-loading, you can blacklist it in /etc/modprobe.d/ and then reboot. HTH -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 900 bytes Desc: OpenPGP digital signature URL: From abalashov at evaristesys.com Mon Aug 6 14:42:57 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Mon, 06 Aug 2012 08:42:57 -0400 Subject: [SR-Users] Kernel Droping SIP packet Message-ID: Can you paste this output too?? lsmod | grep -i sip -- Alex -- Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Web: http://www.evaristesys.com/Vijay Thakur wrote:Thanks for prompt reply.? Here is the out put if command iptables -L -n: Chain INPUT (policy ACCEPT) target???? prot opt source?????????????? destination???????? Chain FORWARD (policy ACCEPT) target???? prot opt source?????????????? destination???????? Chain OUTPUT (policy ACCEPT) target???? prot opt source?????????????? destination?? Thanks for prompt reply. This is a Ubuntu 10.04 Kamailio 3.1 Server. Vijay TH -============================================================================== Date: Mon, 06 Aug 2012 06:35:04 -0400 From: Alex Balashov Subject: Re: [SR-Users] Kernel Droping SIP packet To: sr-users at lists.sip-router.org Message-ID: <17t1fd0fbly84yy2vuy8qlcp.1344249304618 at email.android.com> Content-Type: text/plain; charset="utf-8" You might consider pasting the actual output of: iptables -L -n This lists the actual rules straight from netfilter at runtime. I wouldn't worry too much about what some distro-specific config file or script says. Real truth comes from iptables itself.? -- Alex -- Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Web: http://www.evaristesys.com/Vijay Thakur wrote:Hi all, I have configure Kamailio 3.1.5 Server. All things are working fine. When i make a call from Soft phone (X-Lite) to iphone, all is working fine. But in other case call from iphone to Softphone is not working, even not ringing. During checking the logs i am getting the error: Aug? 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) I have not implemented any firewall. You can check the out put of my iptables : http://pastebin.com/i3zUfVeb The SIP server is hosted at linnode. With thanks in advance. Sorry dual posting. Vijay TH -------------- next part -------------- An HTML attachment was scrubbed... URL: From evilzluk at gmail.com Mon Aug 6 15:53:36 2012 From: evilzluk at gmail.com (Konstantin M.) Date: Mon, 6 Aug 2012 16:53:36 +0300 Subject: [SR-Users] Kernel Droping SIP packet In-Reply-To: References: Message-ID: rmmod nf_conntrack_sip 2012/8/6 Alex Balashov > Can you paste this output too? > > lsmod | grep -i sip > > > > > -- Alex > > -- > Sent from my Samsung mobile, and thus lacking in the refinement one might > expect from a proper keyboard. > > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Web: http://www.evaristesys.com/ > > Vijay Thakur wrote: > Thanks for prompt reply. Here is the out put if command iptables -L -n: > > *Chain INPUT (policy ACCEPT) > target prot opt source destination > > Chain FORWARD (policy ACCEPT) > target prot opt source destination > > Chain OUTPUT (policy ACCEPT) > target prot opt source destination > > Thanks for prompt reply. This is a Ubuntu 10.04 Kamailio 3.1 Server. > > > Vijay TH > > > -============================================================================== > > * > > Date: Mon, 06 Aug 2012 06:35:04 -0400 > From: Alex Balashov > Subject: Re: [SR-Users] Kernel Droping SIP packet > To: sr-users at lists.sip-router.org > Message-ID: <17t1fd0fbly84yy2vuy8qlcp.1344249304618 at email.android.com> <17t1fd0fbly84yy2vuy8qlcp.1344249304618 at email.android.com> > Content-Type: text/plain; charset="utf-8" > > You might consider pasting the actual output of: iptables -L -n > > This lists the actual rules straight from netfilter at runtime. I wouldn't worry too much about what some distro-specific config file or script says. Real truth comes from iptables itself.? > > > > > -- Alex > > -- > Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. > > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > > Web: http://www.evaristesys.com/Vijay Thakur wrote:Hi all, > > I have configure Kamailio 3.1.5 Server. All things are working fine. > When i make a call from Soft phone (X-Lite) to iphone, all is working > fine. But in other case call from iphone to Softphone is not working, > even not ringing. During checking the logs i am getting the error: > > Aug? 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= > MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 > DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF > PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 > RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) > > I have not implemented any firewall. You can check the out put of my > iptables : http://pastebin.com/i3zUfVeb > > The SIP server is hosted at linnode. > > With thanks in advance. Sorry dual posting. > > Vijay TH > > > * > * > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From abalashov at evaristesys.com Mon Aug 6 15:04:04 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Mon, 06 Aug 2012 09:04:04 -0400 Subject: [SR-Users] Kernel Droping SIP packet Message-ID: Ah, you short-circuited where I was going with this. Couldn't remember the name of the module.? Yep, Vijay. What Richard said.? -- Alex -- Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Web: http://www.evaristesys.com/Richard Fuchs wrote:On 08/06/12 06:08, Vijay Thakur wrote: > Hi all, > > I have configure Kamailio 3.1.5 Server. All things are working fine. > When i make a call from Soft phone (X-Lite) to iphone, all is working > fine. But in other case call from iphone to Softphone is not working, > even not ringing. During checking the logs i am getting the error: > > Aug? 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= > MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 > DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF > PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 > RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) This is coming from nf_conntrack_sip, which is a netfilter connection tracking kernel module for SIP. I've never used it, but judging from what Google brings up, it seems to be very buggy. You should be able to just unload it by issuing "rmmod nf_conntrack_sip". If that doesn't work and/or if you want to keep it from auto-loading, you can blacklist it in /etc/modprobe.d/ and then reboot. HTH _______________________________________________ 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From graham at g-rock.net Sun Aug 5 17:33:22 2012 From: graham at g-rock.net (Graham Wooden (personal)) Date: Sun, 05 Aug 2012 10:33:22 -0500 Subject: [SR-Users] LCR - inconsistent return results for gateway selection. Message-ID: Hello, I am noticing that some of the time (not always consistent) that load_gw() / next_gw() will not always return the gateway with the lowest priority number. For example, when I look up a route for 205595, I have three grp_ids (gateways) that services the destination; with them being separated with 1, 2, and 3 priorities: id prefix from_uri grp_id priority 7468 205595 NULL 1 1 7469 205595 NULL 2 2 7470 205595 NULL 7 3 About 1/2 of the time, it will chose the priority 1 gateway, as it should. But randomly, it will choose the other gateways on the first try. In this particular case, all three gateways are going to the same destination IP (just using different hostnames in the "gw" mySQL table) - so I know the gateways are up. Also, I am not noticing any failures and going to the next gateway, like it choosing #1, it failing and then going to #2. What kind of debugging can I do on this gateway selection process? I am running 1.5.5 notls, and have approximately 425K routes. Kamailio is started with "-m 512" for the additional memory. Thanks, -graham From jh at tutpro.com Mon Aug 6 19:12:59 2012 From: jh at tutpro.com (Juha Heinanen) Date: Mon, 6 Aug 2012 20:12:59 +0300 Subject: [SR-Users] LCR - inconsistent return results for gateway selection. In-Reply-To: References: Message-ID: <20511.64283.741998.427448@siika.tutpro.com> Graham Wooden (personal) writes: > What kind of debugging can I do on this gateway selection process? I am > running 1.5.5 notls, and have approximately 425K routes. Kamailio is > started with "-m 512" for the additional memory. graham, 1.5.5 is quite old and lcr implementation has changed a lot since then. i would suggest upgrading. -- juha From graham at g-rock.net Mon Aug 6 20:14:46 2012 From: graham at g-rock.net (Graham Wooden (personal)) Date: Mon, 06 Aug 2012 13:14:46 -0500 Subject: [SR-Users] LCR - inconsistent return results for gateway selection. In-Reply-To: <20511.64283.741998.427448@siika.tutpro.com> Message-ID: Thanks for the reply Juha. I have a 3.3.0 system that I have been trying to get my routing logic converted over. I will keep working on that. Thanks again, -graham On 8/6/12 12:12 PM, "Juha Heinanen" wrote: >Graham Wooden (personal) writes: > >> What kind of debugging can I do on this gateway selection process? I am >> running 1.5.5 notls, and have approximately 425K routes. Kamailio is >> started with "-m 512" for the additional memory. > >graham, > >1.5.5 is quite old and lcr implementation has changed a lot since then. >i would suggest upgrading. > >-- juha > >_______________________________________________ >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 From jh at tutpro.com Mon Aug 6 20:36:53 2012 From: jh at tutpro.com (Juha Heinanen) Date: Mon, 6 Aug 2012 21:36:53 +0300 Subject: [SR-Users] LCR - inconsistent return results for gateway selection. In-Reply-To: References: <20511.64283.741998.427448@siika.tutpro.com> Message-ID: <20512.3781.811124.225056@siika.tutpro.com> Graham Wooden (personal) writes: > Thanks for the reply Juha. I have a 3.3.0 system that I have been trying > to get my routing logic converted over. I will keep working on that. ok, let the list know if you experience any lcr problems with 3.3 and we'll try to fix them. -- juha From brandon at cryy.com Tue Aug 7 00:27:11 2012 From: brandon at cryy.com (Brandon Armstead) Date: Mon, 6 Aug 2012 15:27:11 -0700 Subject: [SR-Users] AVPOPS / TM behavior Message-ID: Hello, I am curious if there is any documentation on how AVP's processing works in the following scenario below. UAC 1 -> KAMAILIO -> KAMAILIO -> DEST It seems that AVP's I set between UAC 1 -> KAMAILIO are lost once I relay back to the same KAMAILIO proxy (self)? Is there any documentation on why or when this would occur? Is there a better way to handle such a scenario? i.e. more dynamic internal routing, vs relaying to self. Thanks as always in advance! Sincerely, Brandon Armstead -------------- next part -------------- An HTML attachment was scrubbed... URL: From vijay.thakur at loopmethods.com Tue Aug 7 06:54:41 2012 From: vijay.thakur at loopmethods.com (Vijay Thakur) Date: Tue, 07 Aug 2012 10:24:41 +0530 Subject: [SR-Users] sr-users Digest, Vol 87, Issue 18 In-Reply-To: References: Message-ID: <50209F91.70200@loopmethods.com> Thanks all of your for reply. Here is the output of command: root at li496-23:~# lsmod | grep -i sip root at li496-23:~# This command is giving blank output. This is linnode server. So the zcat /proc/config.gz command reveals the kernel loaded modules. You can see complete output at pastebin: http://pastebin.com/a0iqpc4D. Thanks in advance Vijay Th. On Monday 06 August 2012 08:26 PM, sr-users-request at lists.sip-router.org wrote: > Send sr-users mailing list submissions to > sr-users at lists.sip-router.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > or, via email, send a message with subject or body 'help' to > sr-users-request at lists.sip-router.org > > You can reach the person managing the list at > sr-users-owner at lists.sip-router.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of sr-users digest..." > > > Today's Topics: > > 1. Re: Kernel Droping SIP packet (Richard Fuchs) > 2. Re: Kernel Droping SIP packet (Alex Balashov) > 3. Re: Kernel Droping SIP packet (Konstantin M.) > 4. Re: Kernel Droping SIP packet (Alex Balashov) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 06 Aug 2012 09:01:03 -0400 > From: Richard Fuchs > Subject: Re: [SR-Users] Kernel Droping SIP packet > To: sr-users at lists.sip-router.org > Message-ID: <501FC00F.6000604 at sipwise.com> > Content-Type: text/plain; charset="iso-8859-1" > > On 08/06/12 06:08, Vijay Thakur wrote: >> Hi all, >> >> I have configure Kamailio 3.1.5 Server. All things are working fine. >> When i make a call from Soft phone (X-Lite) to iphone, all is working >> fine. But in other case call from iphone to Softphone is not working, >> even not ringing. During checking the logs i am getting the error: >> >> Aug 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= >> MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 >> DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF >> PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 >> RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) > This is coming from nf_conntrack_sip, which is a netfilter connection > tracking kernel module for SIP. I've never used it, but judging from > what Google brings up, it seems to be very buggy. You should be able to > just unload it by issuing "rmmod nf_conntrack_sip". If that doesn't work > and/or if you want to keep it from auto-loading, you can blacklist it in > /etc/modprobe.d/ and then reboot. > > HTH > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: signature.asc > Type: application/pgp-signature > Size: 900 bytes > Desc: OpenPGP digital signature > URL: > > ------------------------------ > > Message: 2 > Date: Mon, 06 Aug 2012 08:42:57 -0400 > From: Alex Balashov > Subject: Re: [SR-Users] Kernel Droping SIP packet > To: sr-users at lists.sip-router.org > Message-ID: > Content-Type: text/plain; charset="utf-8" > > Can you paste this output too?? > > lsmod | grep -i sip > > > > > -- Alex > > -- > Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. > > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Web: http://www.evaristesys.com/Vijay Thakur wrote:Thanks for prompt reply.? Here is the out put if command iptables -L -n: > > Chain INPUT (policy ACCEPT) > target???? prot opt source?????????????? destination???????? > > Chain FORWARD (policy ACCEPT) > target???? prot opt source?????????????? destination???????? > > Chain OUTPUT (policy ACCEPT) > target???? prot opt source?????????????? destination?? > > Thanks for prompt reply. This is a Ubuntu 10.04 Kamailio 3.1 Server. > > > Vijay TH > > -============================================================================== > > Date: Mon, 06 Aug 2012 06:35:04 -0400 > From: Alex Balashov > Subject: Re: [SR-Users] Kernel Droping SIP packet > To: sr-users at lists.sip-router.org > Message-ID: <17t1fd0fbly84yy2vuy8qlcp.1344249304618 at email.android.com> > Content-Type: text/plain; charset="utf-8" > > You might consider pasting the actual output of: iptables -L -n > > This lists the actual rules straight from netfilter at runtime. I wouldn't worry too much about what some distro-specific config file or script says. Real truth comes from iptables itself.? > > > > > -- Alex > > -- > Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. > > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Web: http://www.evaristesys.com/Vijay Thakur wrote:Hi all, > > I have configure Kamailio 3.1.5 Server. All things are working fine. > When i make a call from Soft phone (X-Lite) to iphone, all is working > fine. But in other case call from iphone to Softphone is not working, > even not ringing. During checking the logs i am getting the error: > > Aug? 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= > MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 > DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF > PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 > RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) > > I have not implemented any firewall. You can check the out put of my > iptables : http://pastebin.com/i3zUfVeb > The SIP server is hosted at linnode. > > With thanks in advance. Sorry dual posting. > > Vijay TH > > > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 3 > Date: Mon, 6 Aug 2012 16:53:36 +0300 > From: "Konstantin M." > Subject: Re: [SR-Users] Kernel Droping SIP packet > To: "SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - > Users Mailing List" > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > rmmod nf_conntrack_sip > > 2012/8/6 Alex Balashov > >> Can you paste this output too? >> >> lsmod | grep -i sip >> >> >> >> >> -- Alex >> >> -- >> Sent from my Samsung mobile, and thus lacking in the refinement one might >> expect from a proper keyboard. >> >> Alex Balashov - Principal >> Evariste Systems LLC >> 235 E Ponce de Leon Ave >> Suite 106 >> Decatur, GA 30030 >> Tel: +1-678-954-0670 >> Web: http://www.evaristesys.com/ >> >> Vijay Thakur wrote: >> Thanks for prompt reply. Here is the out put if command iptables -L -n: >> >> *Chain INPUT (policy ACCEPT) >> target prot opt source destination >> >> Chain FORWARD (policy ACCEPT) >> target prot opt source destination >> >> Chain OUTPUT (policy ACCEPT) >> target prot opt source destination >> >> Thanks for prompt reply. This is a Ubuntu 10.04 Kamailio 3.1 Server. >> >> >> Vijay TH >> >> >> -============================================================================== >> >> * >> >> Date: Mon, 06 Aug 2012 06:35:04 -0400 >> From: Alex Balashov >> Subject: Re: [SR-Users] Kernel Droping SIP packet >> To: sr-users at lists.sip-router.org >> Message-ID: <17t1fd0fbly84yy2vuy8qlcp.1344249304618 at email.android.com> <17t1fd0fbly84yy2vuy8qlcp.1344249304618 at email.android.com> >> Content-Type: text/plain; charset="utf-8" >> >> You might consider pasting the actual output of: iptables -L -n >> >> This lists the actual rules straight from netfilter at runtime. I wouldn't worry too much about what some distro-specific config file or script says. Real truth comes from iptables itself.? >> >> >> >> >> -- Alex >> >> -- >> Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. >> >> Alex Balashov - Principal >> Evariste Systems LLC >> 235 E Ponce de Leon Ave >> Suite 106 >> Decatur, GA 30030 >> Tel: +1-678-954-0670 >> >> Web: http://www.evaristesys.com/Vijay Thakur wrote:Hi all, >> >> I have configure Kamailio 3.1.5 Server. All things are working fine. >> When i make a call from Soft phone (X-Lite) to iphone, all is working >> fine. But in other case call from iphone to Softphone is not working, >> even not ringing. During checking the logs i am getting the error: >> >> Aug? 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= >> MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 >> DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF >> PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 >> RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) >> >> I have not implemented any firewall. You can check the out put of my >> iptables : http://pastebin.com/i3zUfVeb >> >> The SIP server is hosted at linnode. >> >> With thanks in advance. Sorry dual posting. >> >> Vijay TH >> >> >> * >> * >> >> _______________________________________________ >> 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 >> >> > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > Message: 4 > Date: Mon, 06 Aug 2012 09:04:04 -0400 > From: Alex Balashov > Subject: Re: [SR-Users] Kernel Droping SIP packet > To: sr-users at lists.sip-router.org > Message-ID: > Content-Type: text/plain; charset="utf-8" > > Ah, you short-circuited where I was going with this. Couldn't remember the name of the module.? > > Yep, Vijay. What Richard said.? > > > > > -- Alex > > -- > Sent from my Samsung mobile, and thus lacking in the refinement one might expect from a proper keyboard. > > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Web: http://www.evaristesys.com/Richard Fuchs wrote:On 08/06/12 06:08, Vijay Thakur wrote: >> Hi all, >> >> I have configure Kamailio 3.1.5 Server. All things are working fine. >> When i make a call from Soft phone (X-Lite) to iphone, all is working >> fine. But in other case call from iphone to Softphone is not working, >> even not ringing. During checking the logs i am getting the error: >> >> Aug? 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= >> MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 >> DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF >> PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 >> RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) > This is coming from nf_conntrack_sip, which is a netfilter connection > tracking kernel module for SIP. I've never used it, but judging from > what Google brings up, it seems to be very buggy. You should be able to > just unload it by issuing "rmmod nf_conntrack_sip". If that doesn't work > and/or if you want to keep it from auto-loading, you can blacklist it in > /etc/modprobe.d/ and then reboot. > > HTH > > > _______________________________________________ > 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 > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > ------------------------------ > > _______________________________________________ > sr-users mailing list > sr-users at lists.sip-router.org > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > > End of sr-users Digest, Vol 87, Issue 18 > **************************************** -- Best Regards, Vijay Thakur (Assistant Manager - Networks) Mobile : +91 8744018065 Mail : vijay.thakur at loopmethods.com Loop IT Methods Private Limited 1st Floor, B-10, Sector-7, Noida, (U.P) India Ph: +91 120 305 3481,82 (INDIA), +1 347 468 8631 (USA), +61 390 011 178 (AUS) Fax: +91 971 728 330 Web: www.loopmethods.com LOOP Disclaimer ------------------------------------------------------------------------------------------------- This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ----------------------------------------------------------------------------------------------------------------- From klaus.mailinglists at pernau.at Tue Aug 7 11:32:44 2012 From: klaus.mailinglists at pernau.at (Klaus Darilion) Date: Tue, 07 Aug 2012 11:32:44 +0200 Subject: [SR-Users] AVPOPS / TM behavior In-Reply-To: References: Message-ID: <5020E0BC.4050705@pernau.at> AVPs are associated with the transaction. If you "spiral" a request through the same proxy, then for the proxy it is a new transaction. Thus, when processing the request a second time, there is a new transaction and you do not have access to the AVPs of the previous transaction. Workarounds are: - store data in SIP headers and retrieve it later (ugly) - use htable module to store data during transaction 1 and retrieve it during transaction 2. Therefore you need a known "key" which is identical in this 2 transactions only (e.g. use "$ci$ft" as base for the key). regards Klaus On 07.08.2012 00:27, Brandon Armstead wrote: > Hello, > > I am curious if there is any documentation on how AVP's processing > works in the following scenario below. > > UAC 1 -> KAMAILIO -> KAMAILIO -> DEST > > It seems that AVP's I set between UAC 1 -> KAMAILIO are lost once I > relay back to the same KAMAILIO proxy (self)? > > Is there any documentation on why or when this would occur? > > Is there a better way to handle such a scenario? i.e. more dynamic > internal routing, vs relaying to self. > > Thanks as always in advance! > > Sincerely, > Brandon Armstead > > > _______________________________________________ > 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 > From klaus.mailinglists at pernau.at Tue Aug 7 11:32:44 2012 From: klaus.mailinglists at pernau.at (Klaus Darilion) Date: Tue, 07 Aug 2012 11:32:44 +0200 Subject: [SR-Users] AVPOPS / TM behavior In-Reply-To: References: Message-ID: <5020E0BC.4050705@pernau.at> AVPs are associated with the transaction. If you "spiral" a request through the same proxy, then for the proxy it is a new transaction. Thus, when processing the request a second time, there is a new transaction and you do not have access to the AVPs of the previous transaction. Workarounds are: - store data in SIP headers and retrieve it later (ugly) - use htable module to store data during transaction 1 and retrieve it during transaction 2. Therefore you need a known "key" which is identical in this 2 transactions only (e.g. use "$ci$ft" as base for the key). regards Klaus On 07.08.2012 00:27, Brandon Armstead wrote: > Hello, > > I am curious if there is any documentation on how AVP's processing > works in the following scenario below. > > UAC 1 -> KAMAILIO -> KAMAILIO -> DEST > > It seems that AVP's I set between UAC 1 -> KAMAILIO are lost once I > relay back to the same KAMAILIO proxy (self)? > > Is there any documentation on why or when this would occur? > > Is there a better way to handle such a scenario? i.e. more dynamic > internal routing, vs relaying to self. > > Thanks as always in advance! > > Sincerely, > Brandon Armstead > > > _______________________________________________ > 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 > From brandon at cryy.com Tue Aug 7 18:22:24 2012 From: brandon at cryy.com (Brandon Armstead) Date: Tue, 7 Aug 2012 09:22:24 -0700 Subject: [SR-Users] AVPOPS / TM behavior In-Reply-To: <5020E0BC.4050705@pernau.at> References: <5020E0BC.4050705@pernau.at> Message-ID: Klaus, Thank you for this detailed explanation. This is essentially what I figured was happening. I was able to use htable to work around it. I guess however I am still confused as to where there is any public documentation on this specific bit. Had I've not been working with Kamailio for years I would think this would confuse others. Let me know if it is somewhere else, otherwise I will add it to the Kamailio wiki. Sincerely, Brandon Armstead On Tue, Aug 7, 2012 at 2:32 AM, Klaus Darilion wrote: > AVPs are associated with the transaction. If you "spiral" a request > through the same proxy, then for the proxy it is a new transaction. Thus, > when processing the request a second time, there is a new transaction and > you do not have access to the AVPs of the previous transaction. > > Workarounds are: > - store data in SIP headers and retrieve it later (ugly) > - use htable module to store data during transaction 1 and retrieve it > during transaction 2. Therefore you need a known "key" which is identical > in this 2 transactions only (e.g. use "$ci$ft" as base for the key). > > regards > Klaus > > > > > > On 07.08.2012 00:27, Brandon Armstead wrote: > >> Hello, >> >> I am curious if there is any documentation on how AVP's processing >> works in the following scenario below. >> >> UAC 1 -> KAMAILIO -> KAMAILIO -> DEST >> >> It seems that AVP's I set between UAC 1 -> KAMAILIO are lost once I >> relay back to the same KAMAILIO proxy (self)? >> >> Is there any documentation on why or when this would occur? >> >> Is there a better way to handle such a scenario? i.e. more dynamic >> internal routing, vs relaying to self. >> >> Thanks as always in advance! >> >> Sincerely, >> Brandon Armstead >> >> >> ______________________________**_________________ >> 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 >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From brandon at cryy.com Tue Aug 7 18:22:24 2012 From: brandon at cryy.com (Brandon Armstead) Date: Tue, 7 Aug 2012 09:22:24 -0700 Subject: [SR-Users] AVPOPS / TM behavior In-Reply-To: <5020E0BC.4050705@pernau.at> References: <5020E0BC.4050705@pernau.at> Message-ID: Klaus, Thank you for this detailed explanation. This is essentially what I figured was happening. I was able to use htable to work around it. I guess however I am still confused as to where there is any public documentation on this specific bit. Had I've not been working with Kamailio for years I would think this would confuse others. Let me know if it is somewhere else, otherwise I will add it to the Kamailio wiki. Sincerely, Brandon Armstead On Tue, Aug 7, 2012 at 2:32 AM, Klaus Darilion wrote: > AVPs are associated with the transaction. If you "spiral" a request > through the same proxy, then for the proxy it is a new transaction. Thus, > when processing the request a second time, there is a new transaction and > you do not have access to the AVPs of the previous transaction. > > Workarounds are: > - store data in SIP headers and retrieve it later (ugly) > - use htable module to store data during transaction 1 and retrieve it > during transaction 2. Therefore you need a known "key" which is identical > in this 2 transactions only (e.g. use "$ci$ft" as base for the key). > > regards > Klaus > > > > > > On 07.08.2012 00:27, Brandon Armstead wrote: > >> Hello, >> >> I am curious if there is any documentation on how AVP's processing >> works in the following scenario below. >> >> UAC 1 -> KAMAILIO -> KAMAILIO -> DEST >> >> It seems that AVP's I set between UAC 1 -> KAMAILIO are lost once I >> relay back to the same KAMAILIO proxy (self)? >> >> Is there any documentation on why or when this would occur? >> >> Is there a better way to handle such a scenario? i.e. more dynamic >> internal routing, vs relaying to self. >> >> Thanks as always in advance! >> >> Sincerely, >> Brandon Armstead >> >> >> ______________________________**_________________ >> 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 >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From klaus.mailinglists at pernau.at Tue Aug 7 21:00:29 2012 From: klaus.mailinglists at pernau.at (Klaus Darilion) Date: Tue, 07 Aug 2012 21:00:29 +0200 Subject: [SR-Users] AVPOPS / TM behavior In-Reply-To: References: <5020E0BC.4050705@pernau.at> Message-ID: <502165CD.60703@pernau.at> Once you know it you will find it :-) http://www.kamailio.org/wiki/cookbooks/3.3.x/pseudovariables#avps regards Klaus On 07.08.2012 18:22, Brandon Armstead wrote: > Klaus, > > Thank you for this detailed explanation. This is essentially what I > figured was happening. I was able to use htable to work around it. > > I guess however I am still confused as to where there is any public > documentation on this specific bit. Had I've not been working with > Kamailio for years I would think this would confuse others. > > Let me know if it is somewhere else, otherwise I will add it to the > Kamailio wiki. > > Sincerely, > Brandon Armstead > > On Tue, Aug 7, 2012 at 2:32 AM, Klaus Darilion > > wrote: > > AVPs are associated with the transaction. If you "spiral" a request > through the same proxy, then for the proxy it is a new transaction. > Thus, when processing the request a second time, there is a new > transaction and you do not have access to the AVPs of the previous > transaction. > > Workarounds are: > - store data in SIP headers and retrieve it later (ugly) > - use htable module to store data during transaction 1 and retrieve > it during transaction 2. Therefore you need a known "key" which is > identical in this 2 transactions only (e.g. use "$ci$ft" as base for > the key). > > regards > Klaus > > > > > > On 07.08.2012 00:27, Brandon Armstead wrote: > > Hello, > > I am curious if there is any documentation on how AVP's > processing > works in the following scenario below. > > UAC 1 -> KAMAILIO -> KAMAILIO -> DEST > > It seems that AVP's I set between UAC 1 -> KAMAILIO are lost once I > relay back to the same KAMAILIO proxy (self)? > > Is there any documentation on why or when this would occur? > > Is there a better way to handle such a scenario? i.e. more dynamic > internal routing, vs relaying to self. > > Thanks as always in advance! > > Sincerely, > Brandon Armstead > > > _________________________________________________ > 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 > > From klaus.mailinglists at pernau.at Tue Aug 7 21:00:29 2012 From: klaus.mailinglists at pernau.at (Klaus Darilion) Date: Tue, 07 Aug 2012 21:00:29 +0200 Subject: [SR-Users] AVPOPS / TM behavior In-Reply-To: References: <5020E0BC.4050705@pernau.at> Message-ID: <502165CD.60703@pernau.at> Once you know it you will find it :-) http://www.kamailio.org/wiki/cookbooks/3.3.x/pseudovariables#avps regards Klaus On 07.08.2012 18:22, Brandon Armstead wrote: > Klaus, > > Thank you for this detailed explanation. This is essentially what I > figured was happening. I was able to use htable to work around it. > > I guess however I am still confused as to where there is any public > documentation on this specific bit. Had I've not been working with > Kamailio for years I would think this would confuse others. > > Let me know if it is somewhere else, otherwise I will add it to the > Kamailio wiki. > > Sincerely, > Brandon Armstead > > On Tue, Aug 7, 2012 at 2:32 AM, Klaus Darilion > > wrote: > > AVPs are associated with the transaction. If you "spiral" a request > through the same proxy, then for the proxy it is a new transaction. > Thus, when processing the request a second time, there is a new > transaction and you do not have access to the AVPs of the previous > transaction. > > Workarounds are: > - store data in SIP headers and retrieve it later (ugly) > - use htable module to store data during transaction 1 and retrieve > it during transaction 2. Therefore you need a known "key" which is > identical in this 2 transactions only (e.g. use "$ci$ft" as base for > the key). > > regards > Klaus > > > > > > On 07.08.2012 00:27, Brandon Armstead wrote: > > Hello, > > I am curious if there is any documentation on how AVP's > processing > works in the following scenario below. > > UAC 1 -> KAMAILIO -> KAMAILIO -> DEST > > It seems that AVP's I set between UAC 1 -> KAMAILIO are lost once I > relay back to the same KAMAILIO proxy (self)? > > Is there any documentation on why or when this would occur? > > Is there a better way to handle such a scenario? i.e. more dynamic > internal routing, vs relaying to self. > > Thanks as always in advance! > > Sincerely, > Brandon Armstead > > > _________________________________________________ > 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 > > From brandon at cryy.com Tue Aug 7 21:49:25 2012 From: brandon at cryy.com (Brandon Armstead) Date: Tue, 7 Aug 2012 12:49:25 -0700 Subject: [SR-Users] AVPOPS / TM behavior In-Reply-To: <502165CD.60703@pernau.at> References: <5020E0BC.4050705@pernau.at> <502165CD.60703@pernau.at> Message-ID: Klaus, I see the following: AVPs are special variables that are attached to SIP transactions. It is a list of pairs (name,value). Before the transaction is created, the AVP list is attached to SIP request. Note that the AVP list works like a stack, last added value is retrieved first, and there can be many values for same AVP name, an assignment to the same AVP name does not overwrite old value, it will add the new value in the list. While this does *technically* describe the behavior - we may want to explicitly point out this behavior when spiraling to the same proxy. I guess to me its not clear enough based off of this above copied text. Unless I am still missing the explanation somewhere else in the text? Thanks! Sincerely, Brandon Armstead On Tue, Aug 7, 2012 at 12:00 PM, Klaus Darilion < klaus.mailinglists at pernau.at> wrote: > Once you know it you will find it :-) > > http://www.kamailio.org/wiki/**cookbooks/3.3.x/**pseudovariables#avps > > regards > Klaus > > > On 07.08.2012 18:22, Brandon Armstead wrote: > >> Klaus, >> >> Thank you for this detailed explanation. This is essentially what I >> figured was happening. I was able to use htable to work around it. >> >> I guess however I am still confused as to where there is any public >> documentation on this specific bit. Had I've not been working with >> Kamailio for years I would think this would confuse others. >> >> Let me know if it is somewhere else, otherwise I will add it to the >> Kamailio wiki. >> >> Sincerely, >> Brandon Armstead >> >> On Tue, Aug 7, 2012 at 2:32 AM, Klaus Darilion >> >> >> wrote: >> >> AVPs are associated with the transaction. If you "spiral" a request >> through the same proxy, then for the proxy it is a new transaction. >> Thus, when processing the request a second time, there is a new >> transaction and you do not have access to the AVPs of the previous >> transaction. >> >> Workarounds are: >> - store data in SIP headers and retrieve it later (ugly) >> - use htable module to store data during transaction 1 and retrieve >> it during transaction 2. Therefore you need a known "key" which is >> identical in this 2 transactions only (e.g. use "$ci$ft" as base for >> the key). >> >> regards >> Klaus >> >> >> >> >> >> On 07.08.2012 00:27, Brandon Armstead wrote: >> >> Hello, >> >> I am curious if there is any documentation on how AVP's >> processing >> works in the following scenario below. >> >> UAC 1 -> KAMAILIO -> KAMAILIO -> DEST >> >> It seems that AVP's I set between UAC 1 -> KAMAILIO are lost once >> I >> relay back to the same KAMAILIO proxy (self)? >> >> Is there any documentation on why or when this would occur? >> >> Is there a better way to handle such a scenario? i.e. more >> dynamic >> internal routing, vs relaying to self. >> >> Thanks as always in advance! >> >> Sincerely, >> Brandon Armstead >> >> >> ______________________________**___________________ >> >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users >> mailing list >> sr-users at lists.sip-router.org > router.org > >> http://lists.sip-router.org/__**cgi-bin/mailman/listinfo/sr-__** >> users < >> http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users >> > >> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From brandon at cryy.com Tue Aug 7 21:49:25 2012 From: brandon at cryy.com (Brandon Armstead) Date: Tue, 7 Aug 2012 12:49:25 -0700 Subject: [SR-Users] AVPOPS / TM behavior In-Reply-To: <502165CD.60703@pernau.at> References: <5020E0BC.4050705@pernau.at> <502165CD.60703@pernau.at> Message-ID: Klaus, I see the following: AVPs are special variables that are attached to SIP transactions. It is a list of pairs (name,value). Before the transaction is created, the AVP list is attached to SIP request. Note that the AVP list works like a stack, last added value is retrieved first, and there can be many values for same AVP name, an assignment to the same AVP name does not overwrite old value, it will add the new value in the list. While this does *technically* describe the behavior - we may want to explicitly point out this behavior when spiraling to the same proxy. I guess to me its not clear enough based off of this above copied text. Unless I am still missing the explanation somewhere else in the text? Thanks! Sincerely, Brandon Armstead On Tue, Aug 7, 2012 at 12:00 PM, Klaus Darilion < klaus.mailinglists at pernau.at> wrote: > Once you know it you will find it :-) > > http://www.kamailio.org/wiki/**cookbooks/3.3.x/**pseudovariables#avps > > regards > Klaus > > > On 07.08.2012 18:22, Brandon Armstead wrote: > >> Klaus, >> >> Thank you for this detailed explanation. This is essentially what I >> figured was happening. I was able to use htable to work around it. >> >> I guess however I am still confused as to where there is any public >> documentation on this specific bit. Had I've not been working with >> Kamailio for years I would think this would confuse others. >> >> Let me know if it is somewhere else, otherwise I will add it to the >> Kamailio wiki. >> >> Sincerely, >> Brandon Armstead >> >> On Tue, Aug 7, 2012 at 2:32 AM, Klaus Darilion >> >> >> wrote: >> >> AVPs are associated with the transaction. If you "spiral" a request >> through the same proxy, then for the proxy it is a new transaction. >> Thus, when processing the request a second time, there is a new >> transaction and you do not have access to the AVPs of the previous >> transaction. >> >> Workarounds are: >> - store data in SIP headers and retrieve it later (ugly) >> - use htable module to store data during transaction 1 and retrieve >> it during transaction 2. Therefore you need a known "key" which is >> identical in this 2 transactions only (e.g. use "$ci$ft" as base for >> the key). >> >> regards >> Klaus >> >> >> >> >> >> On 07.08.2012 00:27, Brandon Armstead wrote: >> >> Hello, >> >> I am curious if there is any documentation on how AVP's >> processing >> works in the following scenario below. >> >> UAC 1 -> KAMAILIO -> KAMAILIO -> DEST >> >> It seems that AVP's I set between UAC 1 -> KAMAILIO are lost once >> I >> relay back to the same KAMAILIO proxy (self)? >> >> Is there any documentation on why or when this would occur? >> >> Is there a better way to handle such a scenario? i.e. more >> dynamic >> internal routing, vs relaying to self. >> >> Thanks as always in advance! >> >> Sincerely, >> Brandon Armstead >> >> >> ______________________________**___________________ >> >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users >> mailing list >> sr-users at lists.sip-router.org > router.org > >> http://lists.sip-router.org/__**cgi-bin/mailman/listinfo/sr-__** >> users < >> http://lists.sip-router.org/**cgi-bin/mailman/listinfo/sr-**users >> > >> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From nboric at yx.cl Tue Aug 7 22:34:43 2012 From: nboric at yx.cl (Neven Boric) Date: Tue, 07 Aug 2012 16:34:43 -0400 Subject: [SR-Users] set_advertised_port using pseudovariable Message-ID: <50217BE3.9000801@yx.cl> Hi, I'm trying to use Kamailio as an outbound proxy behind a NAT (all clients and kamailio itself are behind the same NAT): UACs -> Kamailio -> NAT router -> PBX (hosted, public server) I figured I could detect the external source port used by the router by periodically sending an OPTIONS request to the public server, then capture the rport value in the reply, and use that port as an input to set_advertised_port. Because I'm doing this periodically, it should have the added value of keeping the NAT mapping alive. Otherwise, I should be able to detect it, as the rport value will change. I managed to periodically send the OPTIONS request, read the rport value on the reply message and store it on a pseudovariable using: $var(rport) = $sel(v.rport); But when I try to use that value to set the advertised port, I get an error, as if set_advertised_port only accepted literal values: if( $var(rport) != 0) { set_advertised_port($var(rport)); } Not starting Kamailio: invalid configuration file! -e 0(4692) : [cfg.y:3591]: parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 504, column 24-34: syntax error 0(4692) : [cfg.y:3594]: parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 504, column 35: bad argument, string expected ERROR: bad config file (2 errors) So, am I missing something or does set_advertised_port actually only accept literal values? Thanks Neven Boric From abalashov at evaristesys.com Tue Aug 7 22:38:16 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Tue, 07 Aug 2012 16:38:16 -0400 Subject: [SR-Users] set_advertised_port using pseudovariable In-Reply-To: <50217BE3.9000801@yx.cl> References: <50217BE3.9000801@yx.cl> Message-ID: <50217CB8.30507@evaristesys.com> On 08/07/2012 04:34 PM, Neven Boric wrote: > So, am I missing something or does set_advertised_port actually only > accept literal values? Correct, set_advertised_port does not accept PVs. There is an entire category of legacy core functions, and some module functions, for which that is true. There's an ongoing effort to update many of them to use PVs, but it's ... incremental. :-) Methodologically speaking, you really, really don't want to run Kamailio behind a NAT as a client, unless the endpoint on the other side of the NAT can deal with it entirely using far-end NAT traversal strategies. -- Alex -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ From nboric at yx.cl Tue Aug 7 23:23:50 2012 From: nboric at yx.cl (Neven Boric) Date: Tue, 07 Aug 2012 17:23:50 -0400 Subject: [SR-Users] set_advertised_port using pseudovariable In-Reply-To: <50217CB8.30507@evaristesys.com> References: <50217BE3.9000801@yx.cl> <50217CB8.30507@evaristesys.com> Message-ID: <50218766.60204@yx.cl> Alex Balashov escribi?: > On 08/07/2012 04:34 PM, Neven Boric wrote: > >> So, am I missing something or does set_advertised_port actually only >> accept literal values? > > Correct, set_advertised_port does not accept PVs. There is an entire > category of legacy core functions, and some module functions, for > which that is true. > > There's an ongoing effort to update many of them to use PVs, but it's > ... incremental. :-) I wonder how hard would it be to do it myself. Just getting to know Kamailio as a user, haven't looked at the code yet. Any pointers? Hopefully some other function where this was recently implemented, so I can browse the commits. > > Methodologically speaking, you really, really don't want to run > Kamailio behind a NAT as a client, unless the endpoint on the other > side of the NAT can deal with it entirely using far-end NAT traversal > strategies. There's this trend here (and I assume elsewhere) of providers offering hosted (i.e remote) PBX and installing an "SBC" on customer premises to access said PBX. I use quotes for SBC, because, from what I've gathered, it can mean different things to different people. In this case, it's a device that can be used to access the remote PBX without worring about NAT issues, handles security, does SIP normalization, topology hiding, maybe encryption, etc. One important feature is survivability, as in UACs being able to talk to each other (and maybe do conferences and other media stuff, so you also need a media server) in case the remote PBX is temporarily inaccessible. I just assumed they are installed behind the NAT, because all manufacturers (AudioCodes, Mediatrix and the like) mention NAT traversal as an important feature. Also, most of the times the clients are SMBs without access (or lacking the knowledge, or just hesitant because of security reasons) to configure port forwarding on their router. Are you familiar with this scenario? Would you say I'm wrong in thinking these devices are installed behind the NAT? Or that Kamailio is not a good choice for this scenario? Thanks -- Neven Boric From ngoahotanglongbk at gmail.com Wed Aug 8 07:59:46 2012 From: ngoahotanglongbk at gmail.com (Duong Manh Truong) Date: Wed, 8 Aug 2012 12:59:46 +0700 Subject: [SR-Users] Kamailio with APNS Message-ID: As your first solution with UAC module: "As a plan B we instead opted for sending via uac module the invite to an oversip instance (it's open-source since a week or two), which triggers an HTTP request towards APNS, and on kamailio check with inv-timers every few seconds whether the client came online in the meanwhile, then complete the call. The drawback is that you can wait only for so many loop interations due to the max branch limitation in kamailio (you'd need to recompile it to set it higher)." I read about the UAC module but feeling very hard to implement it as your suggestion, http://kamailio.org/docs/modules/3.3.x/modules_k/uac.html Please give me and others more details about this? Which functions those we need ? Are they in: UAC module, Exec module, tm module ?? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Marco.Barthel at de.bosch.com Wed Aug 8 09:34:21 2012 From: Marco.Barthel at de.bosch.com (Barthel Marco (CI/AFU1)) Date: Wed, 8 Aug 2012 09:34:21 +0200 Subject: [SR-Users] local_timer: add_timeout: 0 expire timer added Message-ID: <44C56CFBDEDE184893B6FAD3401140D141254E71A3@SI-MBX02.de.bosch.com> Hi, Occasionally I can see the following log output from Kamailio in our systems: WARNING: [local_timer.c:97]: WARNING: local_timer: add_timeout: 0 expire timer added Can someone explain what it means? Many thanks. Mit freundlichen Gr??en / Best regards Marco Barthel Robert Bosch GmbH (CI/AFU1) www.bosch.com Tel. +49 711 811-3602341 marco.barthel at de.bosch.com Sitz: Stuttgart, Registergericht: Amtsgericht Stuttgart, HRB 14000; Aufsichtsratsvorsitzender: Franz Fehrenbach; Gesch?ftsf?hrung: Volkmar Denner, Siegfried Dais; Stefan Asenkerschbaumer, Bernd Bohr, Rudolf Colm, Dirk Hoheisel, Christoph K?bel, Uwe Raschke, Wolf-Henning Scheider, Werner Struth, Peter Tyroller -------------- next part -------------- An HTML attachment was scrubbed... URL: From klaus.mailinglists at pernau.at Wed Aug 8 10:02:33 2012 From: klaus.mailinglists at pernau.at (Klaus Darilion) Date: Wed, 08 Aug 2012 10:02:33 +0200 Subject: [SR-Users] AVPOPS / TM behavior In-Reply-To: References: <5020E0BC.4050705@pernau.at> <502165CD.60703@pernau.at> Message-ID: <50221D19.9000305@pernau.at> The description is implicit: "AVPs are special variables that are attached to SIP transactions." As a spiral causes 2 transactions there are two different contexts for AVPs. Feel free to improve/extend the description. regards Klaus On 07.08.2012 21:49, Brandon Armstead wrote: > Klaus, > > I see the following: > > AVPs are special variables that are attached to SIP transactions. It is > a list of pairs (name,value). Before the transaction is created, the AVP > list is attached to SIP request. Note that the AVP list works like a > stack, last added value is retrieved first, and there can be many values > for same AVP name, an assignment to the same AVP name does not overwrite > old value, it will add the new value in the list. > > While this does *technically* describe the behavior - we may want to > explicitly point out this behavior when spiraling to the same proxy. I > guess to me its not clear enough based off of this above copied text. > Unless I am still missing the explanation somewhere else in the text? > Thanks! > > Sincerely, > Brandon Armstead > On Tue, Aug 7, 2012 at 12:00 PM, Klaus Darilion > > wrote: > > Once you know it you will find it :-) > > http://www.kamailio.org/wiki/__cookbooks/3.3.x/__pseudovariables#avps > > regards > Klaus > > > On 07.08.2012 18:22, Brandon Armstead wrote: > > Klaus, > > Thank you for this detailed explanation. This is > essentially what I > figured was happening. I was able to use htable to work around it. > > I guess however I am still confused as to where there is any public > documentation on this specific bit. Had I've not been working with > Kamailio for years I would think this would confuse others. > > Let me know if it is somewhere else, otherwise I will add it to the > Kamailio wiki. > > Sincerely, > Brandon Armstead > > On Tue, Aug 7, 2012 at 2:32 AM, Klaus Darilion > > >> wrote: > > AVPs are associated with the transaction. If you "spiral" a > request > through the same proxy, then for the proxy it is a new > transaction. > Thus, when processing the request a second time, there is a new > transaction and you do not have access to the AVPs of the > previous > transaction. > > Workarounds are: > - store data in SIP headers and retrieve it later (ugly) > - use htable module to store data during transaction 1 and > retrieve > it during transaction 2. Therefore you need a known "key" > which is > identical in this 2 transactions only (e.g. use "$ci$ft" as > base for > the key). > > regards > Klaus > > > > > > On 07.08.2012 00:27, Brandon Armstead wrote: > > Hello, > > I am curious if there is any documentation on how > AVP's > processing > works in the following scenario below. > > UAC 1 -> KAMAILIO -> KAMAILIO -> DEST > > It seems that AVP's I set between UAC 1 -> KAMAILIO are > lost once I > relay back to the same KAMAILIO proxy (self)? > > Is there any documentation on why or when this would occur? > > Is there a better way to handle such a scenario? i.e. > more dynamic > internal routing, vs relaying to self. > > Thanks as always in advance! > > Sincerely, > Brandon Armstead > > > ___________________________________________________ > > 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 > > > > > > From klaus.mailinglists at pernau.at Wed Aug 8 10:02:33 2012 From: klaus.mailinglists at pernau.at (Klaus Darilion) Date: Wed, 08 Aug 2012 10:02:33 +0200 Subject: [SR-Users] AVPOPS / TM behavior In-Reply-To: References: <5020E0BC.4050705@pernau.at> <502165CD.60703@pernau.at> Message-ID: <50221D19.9000305@pernau.at> The description is implicit: "AVPs are special variables that are attached to SIP transactions." As a spiral causes 2 transactions there are two different contexts for AVPs. Feel free to improve/extend the description. regards Klaus On 07.08.2012 21:49, Brandon Armstead wrote: > Klaus, > > I see the following: > > AVPs are special variables that are attached to SIP transactions. It is > a list of pairs (name,value). Before the transaction is created, the AVP > list is attached to SIP request. Note that the AVP list works like a > stack, last added value is retrieved first, and there can be many values > for same AVP name, an assignment to the same AVP name does not overwrite > old value, it will add the new value in the list. > > While this does *technically* describe the behavior - we may want to > explicitly point out this behavior when spiraling to the same proxy. I > guess to me its not clear enough based off of this above copied text. > Unless I am still missing the explanation somewhere else in the text? > Thanks! > > Sincerely, > Brandon Armstead > On Tue, Aug 7, 2012 at 12:00 PM, Klaus Darilion > > wrote: > > Once you know it you will find it :-) > > http://www.kamailio.org/wiki/__cookbooks/3.3.x/__pseudovariables#avps > > regards > Klaus > > > On 07.08.2012 18:22, Brandon Armstead wrote: > > Klaus, > > Thank you for this detailed explanation. This is > essentially what I > figured was happening. I was able to use htable to work around it. > > I guess however I am still confused as to where there is any public > documentation on this specific bit. Had I've not been working with > Kamailio for years I would think this would confuse others. > > Let me know if it is somewhere else, otherwise I will add it to the > Kamailio wiki. > > Sincerely, > Brandon Armstead > > On Tue, Aug 7, 2012 at 2:32 AM, Klaus Darilion > > >> wrote: > > AVPs are associated with the transaction. If you "spiral" a > request > through the same proxy, then for the proxy it is a new > transaction. > Thus, when processing the request a second time, there is a new > transaction and you do not have access to the AVPs of the > previous > transaction. > > Workarounds are: > - store data in SIP headers and retrieve it later (ugly) > - use htable module to store data during transaction 1 and > retrieve > it during transaction 2. Therefore you need a known "key" > which is > identical in this 2 transactions only (e.g. use "$ci$ft" as > base for > the key). > > regards > Klaus > > > > > > On 07.08.2012 00:27, Brandon Armstead wrote: > > Hello, > > I am curious if there is any documentation on how > AVP's > processing > works in the following scenario below. > > UAC 1 -> KAMAILIO -> KAMAILIO -> DEST > > It seems that AVP's I set between UAC 1 -> KAMAILIO are > lost once I > relay back to the same KAMAILIO proxy (self)? > > Is there any documentation on why or when this would occur? > > Is there a better way to handle such a scenario? i.e. > more dynamic > internal routing, vs relaying to self. > > Thanks as always in advance! > > Sincerely, > Brandon Armstead > > > ___________________________________________________ > > 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 > > > > > > From vijay.thakur at loopmethods.com Wed Aug 8 12:53:21 2012 From: vijay.thakur at loopmethods.com (Vijay Thakur) Date: Wed, 08 Aug 2012 16:23:21 +0530 Subject: [SR-Users] Kernel Module Issue Message-ID: <50224521.1030209@loopmethods.com> Thanks for the hint. What is the file name in /etc/modprob.d/ where i am supposed to enter this module name to disable it. Thanks Vijay Tha Message: 1 Date: Mon, 06 Aug 2012 09:01:03 -0400 From: Richard Fuchs Subject: Re: [SR-Users] Kernel Droping SIP packet To:sr-users at lists.sip-router.org Message-ID:<501FC00F.6000604 at sipwise.com> Content-Type: text/plain; charset="iso-8859-1" On 08/06/12 06:08, Vijay Thakur wrote: > Hi all, > > I have configure Kamailio 3.1.5 Server. All things are working fine. > When i make a call from Soft phone (X-Lite) to iphone, all is working > fine. But in other case call from iphone to Softphone is not working, > even not ringing. During checking the logs i am getting the error: > > Aug 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= > MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 > DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF > PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 > RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) This is coming from nf_conntrack_sip, which is a netfilter connection tracking kernel module for SIP. I've never used it, but judging from what Google brings up, it seems to be very buggy. You should be able to just unload it by issuing "rmmod nf_conntrack_sip". If that doesn't work and/or if you want to keep it from auto-loading, you can blacklist it in /etc/modprobe.d/ and then reboot. HTH copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ----------------------------------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From fchahrour at vanrise.com Wed Aug 8 17:32:27 2012 From: fchahrour at vanrise.com (Fatima Chahrour~Vanrise Support) Date: Wed, 8 Aug 2012 18:32:27 +0300 Subject: [SR-Users] Kamailio LCR Module test scenario Message-ID: <01bd01cd757b$0543d090$0fcb71b0$@com> Dears, Am trying to apply Kamailio LCR feature lab test, after am finally able to run Kamailio with no errors, am not able to reach my target clarified in this following scenario: Call 961312345 - route the call to 192.x.x.15 in first place and if failed route the call to 192.x.x.10. I applied needed configuration in lcr tables (attached image) and the routing script is: route{ if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); exit; }; if (msg:len >= 2048 ) { sl_send_reply("513", "Message too big"); exit; }; if (!method=="REGISTER") record_route(); if (loose_route()) { append_hf("P-hint: rr-enforced\r\n"); route(1); }; if (!uri==myself) { append_hf("P-hint: outbound\r\n"); route(1); }; if (is_method("INVITE")) { if (!load_gws(1)) { sl_send_reply("503", "Unable to load gateways"); exit; } } if (uri==myself) { if (method=="REGISTER") { save("location"); exit; }; lookup("aliases"); if (!uri==myself) { append_hf("P-hint: outbound alias\r\n"); route(1); }; # native SIP destinations are handled using ourUSRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); exit; }; append_hf("P-hint: usrloc applied\r\n"); }; route(1); } route[1] { if (!t_relay()) { sl_reply_error(); }; exit; } BUT when attempting a call am getting the message 'Call failed: Not found .' Any help to achieve the successful call using above scenario is highly appreciated. Thanks in advance. F.Chahrour -------------- next part -------------- An HTML attachment was scrubbed... URL: From evilzluk at gmail.com Wed Aug 8 18:07:24 2012 From: evilzluk at gmail.com (Konstantin M.) Date: Wed, 8 Aug 2012 19:07:24 +0300 Subject: [SR-Users] Kernel Module Issue In-Reply-To: <50224521.1030209@loopmethods.com> References: <50224521.1030209@loopmethods.com> Message-ID: echo "blacklist nf_conntrack_sip" >> /etc/modprobe.d/blacklist.conf 2012/8/8 Vijay Thakur > Thanks for the hint. What is the file name in /etc/modprob.d/ where i am supposed to enter this module name to disable it. > > Thanks > > Vijay Tha > > Message: 1 > Date: Mon, 06 Aug 2012 09:01:03 -0400 > From: Richard Fuchs > Subject: Re: [SR-Users] Kernel Droping SIP packet > To: sr-users at lists.sip-router.org > Message-ID: <501FC00F.6000604 at sipwise.com> <501FC00F.6000604 at sipwise.com> > Content-Type: text/plain; charset="iso-8859-1" > > On 08/06/12 06:08, Vijay Thakur wrote: > > Hi all, > > I have configure Kamailio 3.1.5 Server. All things are working fine. > When i make a call from Soft phone (X-Lite) to iphone, all is working > fine. But in other case call from iphone to Softphone is not working, > even not ringing. During checking the logs i am getting the error: > > Aug 3 04:36:09 localhost kernel: nf_ct_sip: dropping packetIN=eth0 OUT= > MAC=f2:3c:91:ae:92:36:c8:4c:75:f5:c4:ff:08:00 SRC=122.xxx.xxx.77 > DST=xx.116.xx.23 LEN=1482 TOS=0x00 PREC=0x00 TTL=51 ID=50183 DF > PROTO=TCP SPT=15587 DPT=5060 SEQ=3285635734 ACK=3113844065 WINDOW=5763 > RES=0x00 ACK URGP=0 OPT (0101080A000E20610932B25A) > > This is coming from nf_conntrack_sip, which is a netfilter connection > tracking kernel module for SIP. I've never used it, but judging from > what Google brings up, it seems to be very buggy. You should be able to > just unload it by issuing "rmmod nf_conntrack_sip". If that doesn't work > and/or if you want to keep it from auto-loading, you can blacklist it in*/etc/modprobe.d/* and then reboot. > > HTH > > copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. > ----------------------------------------------------------------------------------------------------------------- > > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jmr.richardson at gmail.com Wed Aug 8 19:13:57 2012 From: jmr.richardson at gmail.com (JR Richardson) Date: Wed, 8 Aug 2012 12:13:57 -0500 Subject: [SR-Users] Porblem Starting kamailio on Debian Squeeze Message-ID: Hi All, I'm running redundant kamailio 3.0.4 servers in production, have been for a long time with great success. They were installed on debian Lenny. One of my servers crashed. I can't seem to do a debian lennyy install because that version is archived now. I'm trying to install on debian squeeze but still using kamailio 3.0.4 for compatibility reasons. The install went pretty normal except during boot up, kamailio starts before mysql and networking so it starts then exists. Once the server is fully booted, kamailio starts with the init script without error. I have adjusted the init script to check for networking and mysql to start first and performed an 'update-rc.d kamailio defaults' but still no luck. Any help will be appreciated. Thanks. JR -- JR Richardson Engineering for the Masses From abalashov at evaristesys.com Wed Aug 8 19:17:00 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Wed, 08 Aug 2012 13:17:00 -0400 Subject: [SR-Users] Porblem Starting kamailio on Debian Squeeze In-Reply-To: References: Message-ID: <50229F0C.1030708@evaristesys.com> When you restart the service, does it say "using dependency-based boot sequencing", or just restart? In other words, does 'squeeze' use dependency-based boot sequencing? I don't remember. If it does, read this: http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot On 08/08/2012 01:13 PM, JR Richardson wrote: > Hi All, > > I'm running redundant kamailio 3.0.4 servers in production, have been > for a long time with great success. They were installed on debian > Lenny. One of my servers crashed. I can't seem to do a debian lennyy > install because that version is archived now. I'm trying to install > on debian squeeze but still using kamailio 3.0.4 for compatibility > reasons. The install went pretty normal except during boot up, > kamailio starts before mysql and networking so it starts then exists. > > Once the server is fully booted, kamailio starts with the init script > without error. > > I have adjusted the init script to check for networking and mysql to > start first and performed an 'update-rc.d kamailio defaults' but still > no luck. > > Any help will be appreciated. > > Thanks. > > JR > -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ From abalashov at evaristesys.com Wed Aug 8 19:18:58 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Wed, 08 Aug 2012 13:18:58 -0400 Subject: [SR-Users] Porblem Starting kamailio on Debian Squeeze In-Reply-To: References: Message-ID: <50229F82.3000608@evaristesys.com> Or, perhaps more to the point: http://wiki.debian.org/LSBInitScripts/ Another option, if you're feeling lazy, don't care about LSB crap, and just want to solve your problem right now, is to just start Kamailio manually in /etc/init.d/bootmisc.sh. That gets fired up after all the LSB init scripts run. On 08/08/2012 01:13 PM, JR Richardson wrote: > Hi All, > > I'm running redundant kamailio 3.0.4 servers in production, have been > for a long time with great success. They were installed on debian > Lenny. One of my servers crashed. I can't seem to do a debian lennyy > install because that version is archived now. I'm trying to install > on debian squeeze but still using kamailio 3.0.4 for compatibility > reasons. The install went pretty normal except during boot up, > kamailio starts before mysql and networking so it starts then exists. > > Once the server is fully booted, kamailio starts with the init script > without error. > > I have adjusted the init script to check for networking and mysql to > start first and performed an 'update-rc.d kamailio defaults' but still > no luck. > > Any help will be appreciated. > > Thanks. > > JR > -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ From fchahrour at vanrise.com Wed Aug 8 19:22:40 2012 From: fchahrour at vanrise.com (Fatima Chahrour~Vanrise Support) Date: Wed, 8 Aug 2012 20:22:40 +0300 Subject: [SR-Users] Kamailio LCR Module test scenario In-Reply-To: <01bd01cd757b$0543d090$0fcb71b0$@com> References: <01bd01cd757b$0543d090$0fcb71b0$@com> Message-ID: <01e301cd758a$6b17f040$4147d0c0$@com> Attachment here! From: sr-users-bounces at lists.sip-router.org [mailto:sr-users-bounces at lists.sip-router.org] On Behalf Of Fatima Chahrour~Vanrise Support Sent: Wednesday, August 08, 2012 6:32 PM To: 'SIP Router - Kamailio (OpenSER) and SIP Express Router (SER) - Users Mailing List' Subject: [SR-Users] Kamailio LCR Module test scenario Dears, Am trying to apply Kamailio LCR feature lab test, after am finally able to run Kamailio with no errors, am not able to reach my target clarified in this following scenario: Call 961312345 - route the call to 192.x.x.15 in first place and if failed route the call to 192.x.x.10. I applied needed configuration in lcr tables (attached image) and the routing script is: route{ if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); exit; }; if (msg:len >= 2048 ) { sl_send_reply("513", "Message too big"); exit; }; if (!method=="REGISTER") record_route(); if (loose_route()) { append_hf("P-hint: rr-enforced\r\n"); route(1); }; if (!uri==myself) { append_hf("P-hint: outbound\r\n"); route(1); }; if (is_method("INVITE")) { if (!load_gws(1)) { sl_send_reply("503", "Unable to load gateways"); exit; } } if (uri==myself) { if (method=="REGISTER") { save("location"); exit; }; lookup("aliases"); if (!uri==myself) { append_hf("P-hint: outbound alias\r\n"); route(1); }; # native SIP destinations are handled using ourUSRLOC DB if (!lookup("location")) { sl_send_reply("404", "Not Found"); exit; }; append_hf("P-hint: usrloc applied\r\n"); }; route(1); } route[1] { if (!t_relay()) { sl_reply_error(); }; exit; } BUT when attempting a call am getting the message 'Call failed: Not found .' Any help to achieve the successful call using above scenario is highly appreciated. Thanks in advance. F.Chahrour -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: lcrdatabase.png Type: image/png Size: 12354 bytes Desc: not available URL: From jmr.richardson at gmail.com Wed Aug 8 19:34:30 2012 From: jmr.richardson at gmail.com (JR Richardson) Date: Wed, 8 Aug 2012 12:34:30 -0500 Subject: [SR-Users] Problem Starting kamailio on Debian Squeeze [solved] Message-ID: On Wed, Aug 8, 2012 at 12:13 PM, JR Richardson wrote: > Hi All, > > I'm running redundant kamailio 3.0.4 servers in production, have been > for a long time with great success. They were installed on debian > Lenny. One of my servers crashed. I can't seem to do a debian lennyy > install because that version is archived now. I'm trying to install > on debian squeeze but still using kamailio 3.0.4 for compatibility > reasons. The install went pretty normal except during boot up, > kamailio starts before mysql and networking so it starts then exists. > > Once the server is fully booted, kamailio starts with the init script > without error. > > I have adjusted the init script to check for networking and mysql to > start first and performed an 'update-rc.d kamailio defaults' but still > no luck. > > Any help will be appreciated. > > Thanks. > > JR > -- > JR Richardson > Engineering for the Masses Yep, this is an http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot issue. Thanks Alex. The old init scrip that ships with Kamailio 3.0.4 that I am using is not 100% compatible so I pulled a hack out of the hat and inserted 'sleep 20' before of 'check_fork ()' in the kamailio init script. Kamailio now waits long enough for all services to start before launching, simple but effective. Thanks. JR -- JR Richardson Engineering for the Masses From abalashov at evaristesys.com Wed Aug 8 19:36:36 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Wed, 08 Aug 2012 13:36:36 -0400 Subject: [SR-Users] Problem Starting kamailio on Debian Squeeze [solved] In-Reply-To: References: Message-ID: <5022A3A4.4090505@evaristesys.com> On 08/08/2012 01:34 PM, JR Richardson wrote: > The old init scrip that ships with Kamailio 3.0.4 that I am using is > not 100% compatible so I pulled a hack out of the hat and inserted > 'sleep 20' before of 'check_fork ()' in the kamailio init script. > > Kamailio now waits long enough for all services to start before > launching, simple but effective. Ah, my preferred solution. :-) -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ From pavel.klochan at gmail.com Wed Aug 8 19:49:20 2012 From: pavel.klochan at gmail.com (Pavel Klochan) Date: Wed, 8 Aug 2012 21:49:20 +0400 Subject: [SR-Users] Problem Starting kamailio on Debian Squeeze [solved] In-Reply-To: <5022A3A4.4090505@evaristesys.com> References: <5022A3A4.4090505@evaristesys.com> Message-ID: Hi. Another solution is to change priority in /etc/rc2.d/ I think it's more correct, because if you change kamailio ini script - after update you will need to change /etc/init.d/kamailio script manually On Wed, Aug 8, 2012 at 9:36 PM, Alex Balashov wrote: > On 08/08/2012 01:34 PM, JR Richardson wrote: > > The old init scrip that ships with Kamailio 3.0.4 that I am using is >> not 100% compatible so I pulled a hack out of the hat and inserted >> 'sleep 20' before of 'check_fork ()' in the kamailio init script. >> >> Kamailio now waits long enough for all services to start before >> launching, simple but effective. >> > > Ah, my preferred solution. :-) > > -- > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Fax: +1-404-961-1892 > Web: http://www.evaristesys.com/, http://www.alexbalashov.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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From abalashov at evaristesys.com Wed Aug 8 19:50:57 2012 From: abalashov at evaristesys.com (Alex Balashov) Date: Wed, 08 Aug 2012 13:50:57 -0400 Subject: [SR-Users] Problem Starting kamailio on Debian Squeeze [solved] In-Reply-To: References: <5022A3A4.4090505@evaristesys.com> Message-ID: <5022A701.2090301@evaristesys.com> Not in dependency-based boot sequencing. :-) On 08/08/2012 01:49 PM, Pavel Klochan wrote: > Hi. > Another solution is to change priority in /etc/rc2.d/ > I think it's more correct, because if you change kamailio ini script - > after update you will need to change /etc/init.d/kamailio script manually > > On Wed, Aug 8, 2012 at 9:36 PM, Alex Balashov > wrote: > > On 08/08/2012 01:34 PM, JR Richardson wrote: > > The old init scrip that ships with Kamailio 3.0.4 that I am using is > not 100% compatible so I pulled a hack out of the hat and inserted > 'sleep 20' before of 'check_fork ()' in the kamailio init script. > > Kamailio now waits long enough for all services to start before > launching, simple but effective. > > > Ah, my preferred solution. :-) > > -- > Alex Balashov - Principal > Evariste Systems LLC > 235 E Ponce de Leon Ave > Suite 106 > Decatur, GA 30030 > Tel: +1-678-954-0670 > Fax: +1-404-961-1892 > Web: http://www.evaristesys.com/, http://www.alexbalashov.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 > -- Alex Balashov - Principal Evariste Systems LLC 235 E Ponce de Leon Ave Suite 106 Decatur, GA 30030 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/, http://www.alexbalashov.com/ From jmr.richardson at gmail.com Wed Aug 8 19:55:20 2012 From: jmr.richardson at gmail.com (JR Richardson) Date: Wed, 8 Aug 2012 12:55:20 -0500 Subject: [SR-Users] Problem Starting kamailio on Debian Squeeze [solved] In-Reply-To: References: Message-ID: On Wed, Aug 8, 2012 at 12:34 PM, JR Richardson wrote: > On Wed, Aug 8, 2012 at 12:13 PM, JR Richardson wrote: >> Hi All, >> >> I'm running redundant kamailio 3.0.4 servers in production, have been >> for a long time with great success. They were installed on debian >> Lenny. One of my servers crashed. I can't seem to do a debian lennyy >> install because that version is archived now. I'm trying to install >> on debian squeeze but still using kamailio 3.0.4 for compatibility >> reasons. The install went pretty normal except during boot up, >> kamailio starts before mysql and networking so it starts then exists. >> >> Once the server is fully booted, kamailio starts with the init script >> without error. >> >> I have adjusted the init script to check for networking and mysql to >> start first and performed an 'update-rc.d kamailio defaults' but still >> no luck. >> >> Any help will be appreciated. >> >> Thanks. >> >> JR >> -- >> JR Richardson >> Engineering for the Masses > > Yep, this is an > http://wiki.debian.org/LSBInitScripts/DependencyBasedBoot issue. > Thanks Alex. > > The old init scrip that ships with Kamailio 3.0.4 that I am using is > not 100% compatible so I pulled a hack out of the hat and inserted > 'sleep 20' before of 'check_fork ()' in the kamailio init script. > > Kamailio now waits long enough for all services to start before > launching, simple but effective. > After digging in a bit more, reading the directions and such. When you copy over the init script and run 'update-rd.d kamailio defaults', this doesn't actually do anything in Debian Squeeze. The new LSB init scripts use the 'insserv' command to set init priorities. Proper steps are such: Copy over squeeze init script to /etc/ini.d/kamailio Edit /etc/init.d/kamailio Add 'mysql' to 'Required-Start:' line ----snip----- ### BEGIN INIT INFO # Provides: kamailio # Required-Start: $syslog $network $local_fs $time mysql # Required-Stop: $syslog $network $local_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start the Kamailio SIP proxy server # Description: Start the Kamailio SIP proxy server ### END INIT INFO ----end snip------- Then run 'insserv kamailio' Check /etc/rc2.d/ and you will see kamailio set to start after mysql. That did it for me, I took out the 'sleep 20' from my previous post. Hope this helps JR -- JR Richardson Engineering for the Masses From keeling at akan-tech.com Thu Aug 9 05:42:54 2012 From: keeling at akan-tech.com (Nathaniel L Keeling) Date: Wed, 08 Aug 2012 22:42:54 -0500 Subject: [SR-Users] postgres in kamailio 3.3.0-9.1 In-Reply-To: <501B9105.3050508@gmail.com> References: <50194C47.1030602@telegroup.com.ua> <50198ACE.7030909@gmail.com> <5019CADF.4070703@akan.net> <501A27D7.90107@gmail.com> <501B48C1.5020005@akan-tech.com> <501B9105.3050508@gmail.com> Message-ID: <502331BE.2000304@akan-tech.com> I am running Centos v5.5 and both openssl versions 0.9 and 1.0 are installed. I tried to uninstall version 0.9 but there were over 400 packages that were dependent upon that version. Thanks Nathaniel On 8/3/2012 3:51 AM, Daniel-Constantin Mierla wrote: > Hello, > > On 8/3/12 5:42 AM, Nathaniel L Keeling wrote: >> Yes but it was for an older version that was uninstalled. I changed >> the path to pull in the current version and still received the same >> error. I checked the version for openssl and the same thing was >> happening. I changed the path again and recompiled kamailio and still >> no change. I noticed when compiling kamailio, the tls.so module was >> complaining that the version of openssl was less then 1.0. The >> version that I installed is 1.0.1c. > openssl libs can be installed with many versions at the same time, as > the package names differ -- so 0.9x and 1.x can exist installed at the > same time. Double check you don't have both installed, as some > applications out there require 0.9, others 1.0, they could get > installed due to dependencies. > > It may happen that opensuse build service used a specific openssl > version when building the rpms -- the rpm spec requires generic > packages openssl and openssl-devel for building. > > What is the version of your OS? > > Cheers, > Daniel > From govoiper at gmail.com Thu Aug 9 12:55:38 2012 From: govoiper at gmail.com (SamyGo) Date: Thu, 9 Aug 2012 15:55:38 +0500 Subject: [SR-Users] Fwd: Kamailio Presence with XCAP not working accordingly In-Reply-To: References: Message-ID: Hi, I've followed the tutorial on kab.asipto.com for presence using built-in xcap server. http://kb.asipto.com/kamailio:presence:k31-made-simple I'm using Kamailio version 3.3.1 and did minor changes in modparams and rtpproxy function calls and the kamailio accepted the configurations file posted on the page and started. But the problem is that I don't get the presence status of the contacts still. Please suggest what to look for and how to troubleshoot this. I get this error on Jitsi - ERROR: "http://ip.of.server/xcap-root/xcap-caps/global/index resource can not be read" On other soft phones no error appears but no presence is exchanged. Only IM messages get through if the contact is online. Regards, Sammy -------------- next part -------------- An HTML attachment was scrubbed... URL: From govoiper at gmail.com Thu Aug 9 12:30:03 2012 From: govoiper at gmail.com (SamyGo) Date: Thu, 9 Aug 2012 15:30:03 +0500 Subject: [SR-Users] Kamailio Presence with XCAP not working accordingly Message-ID: Hi, I've followed the tutorial on kab.asipto.com for presence using built-in xcap server. http://kb.asipto.com/kamailio:presence:k31-made-simple I'm using Kamailio version 3.3.1 and did minor changes in modparams and rtpproxy function calls and the kamailio accepted the configurations file posted on the page and started. But the problem is that I don't get the presence status of the contacts still. Please suggest what to look for and how to troubleshoot this. I get this error on Jitsi - image attached. ERROR: "http://ip.of.server/xcap-root/xcap-caps/global/index resource can not be read" Regards, Sammy -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: XCAP.jpg Type: image/jpeg Size: 74613 bytes Desc: not available URL: From peter.dunkley at crocodile-rcs.com Fri Aug 10 10:32:27 2012 From: peter.dunkley at crocodile-rcs.com (Peter Dunkley) Date: Fri, 10 Aug 2012 09:32:27 +0100 Subject: [SR-Users] Kamailio Presence with XCAP not working accordingly In-Reply-To: References: Message-ID: <1344587547.1881.5.camel@pd-notebook-linux.croc.internal> Hi, The xcap-caps document is hard-coded in kamailio.cfg and provides a list of the document types the XCAP server supports. This part of the configuration from the tutorial builds and returns the xcap-caps document: if($xcapuri(u=>auid)=="xcap-caps") { $var(xbody) = " rls-services pidf-manipulation xcap-caps resource-lists pres-rules org.openmobilealliance.pres-rules urn:ietf:params:xml:ns:rls-services urn:ietf:params:xml:ns:pidf urn:ietf:params:xml:ns:xcap-caps urn:ietf:params:xml:ns:resource-lists urn:ietf:params:xml:ns:pres-rules "; xhttp_reply("200", "ok", "application/xcap-caps+xml", "$var(xbody)"); exit; } This tutorial has always worked for me in the past (although it has been well over a year since I last used it), so it looks like either a problem with Jitsi (which is unlikely) or some misconfiguration on the Kamailio side. A tcpdump of the traffic between Jitsi and Kamailio would help with working out which side has the problem. Regards, Peter On Thu, 2012-08-09 at 15:30 +0500, SamyGo wrote: > Hi, > > > > I've followed the tutorial on kab.asipto.com for presence using > built-in xcap > server. http://kb.asipto.com/kamailio:presence:k31-made-simple > > > I'm using Kamailio version 3.3.1 and did minor changes in modparams > and rtpproxy function calls and the kamailio accepted the > configurations file posted on the page and started. > > > But the problem is that I don't get the presence status of the > contacts still. Please suggest what to look for and how to > troubleshoot this. > > > I get this error on Jitsi - image attached. > > > ERROR: "http://ip.of.server/xcap-root/xcap-caps/global/index resource > can not be read" > > > Regards, > Sammy > > _______________________________________________ > 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 -- Peter Dunkley Technical Director Crocodile RCS Ltd -------------- next part -------------- An HTML attachment was scrubbed... URL: From govoiper at gmail.com Fri Aug 10 10:41:24 2012 From: govoiper at gmail.com (SamyGo) Date: Fri, 10 Aug 2012 13:41:24 +0500 Subject: [SR-Users] Kamailio Presence with XCAP not working accordingly In-Reply-To: <1344587547.1881.5.camel@pd-notebook-linux.croc.internal> References: <1344587547.1881.5.camel@pd-notebook-linux.croc.internal> Message-ID: Thanks , Yes this tutorial worked for me as well some 5/7 months ago with kamailio 3.1 but I'm on 3.3 now and tried the same configurations file. Jitsi on the other hand is the only phone I found which shows me this error. I'm trying with Ekiga - eyebeam or xlite didn't seem happy with the presence icons as well..But common thing was that I could send the Chat messages successfully. I'm continuously looking at the tcpdumps and I'll share those here in a while. Thanks for replying and taking interest. Regard, Sammy On Fri, Aug 10, 2012 at 1:32 PM, Peter Dunkley < peter.dunkley at crocodile-rcs.com> wrote: > ** > Hi, > > The xcap-caps document is hard-coded in kamailio.cfg and provides a list > of the document types the XCAP server supports. This part of the > configuration from the tutorial builds and returns the xcap-caps document: > > if($xcapuri(u=>auid)=="xcap-caps") > { > $var(xbody) = > " > > > rls-services > pidf-manipulation > xcap-caps > resource-lists > pres-rules > org.openmobilealliance.pres-rules > > > > > urn:ietf:params:xml:ns:rls-services > urn:ietf:params:xml:ns:pidf > urn:ietf:params:xml:ns:xcap-caps > urn:ietf:params:xml:ns:resource-lists > urn:ietf:params:xml:ns:pres-rules > > "; > xhttp_reply("200", "ok", "application/xcap-caps+xml", > "$var(xbody)"); > exit; > } > > This tutorial has always worked for me in the past (although it has been > well over a year since I last used it), so it looks like either a problem > with Jitsi (which is unlikely) or some misconfiguration on the Kamailio > side. > > A tcpdump of the traffic between Jitsi and Kamailio would help with > working out which side has the problem. > > Regards, > > Peter > > > On Thu, 2012-08-09 at 15:30 +0500, SamyGo wrote: > > Hi, > > > I've followed the tutorial on kab.asipto.com for presence using built-in > xcap server. http://kb.asipto.com/kamailio:presence:k31-made-simple > > > > I'm using Kamailio version 3.3.1 and did minor changes in modparams and > rtpproxy function calls and the kamailio accepted the configurations file > posted on the page and started. > > > > But the problem is that I don't get the presence status of the contacts > still. Please suggest what to look for and how to troubleshoot this. > > > > I get this error on Jitsi - image attached. > > > > ERROR: "http://ip.of.server/xcap-root/xcap-caps/global/index resource > can not be read" > > > > Regards, > > Sammy > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > > -- > Peter Dunkley > Technical Director > Crocodile RCS Ltd > > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.dunkley at crocodile-rcs.com Fri Aug 10 10:53:34 2012 From: peter.dunkley at crocodile-rcs.com (Peter Dunkley) Date: Fri, 10 Aug 2012 09:53:34 +0100 Subject: [SR-Users] Kamailio Presence with XCAP not working accordingly In-Reply-To: References: <1344587547.1881.5.camel@pd-notebook-linux.croc.internal> Message-ID: <1344588814.1881.10.camel@pd-notebook-linux.croc.internal> Hi, XCAP uses HTTP (albeit still carried on port 5060 in this tutorial), messaging and so on uses SIP. These are different protocols and handled in kamailio.cfg differently. Last time I checked Xlite didn't support XCAP at all - so I don't think that's going to work at all. I can't see XCAP/XDMS listed as an Ekiga feature either. I am using presence and XCAP on Kamailio 3.3 (my own configuration, not the one from the tutorial) and it works fine. Regards, Peter On Fri, 2012-08-10 at 13:41 +0500, SamyGo wrote: > Thanks , > > > > Yes this tutorial worked for me as well some 5/7 months ago with > kamailio 3.1 but I'm on 3.3 now and tried the same configurations > file. Jitsi on the other hand is the only phone I found which shows me > this error. I'm trying with Ekiga - eyebeam or xlite didn't seem happy > with the presence icons as well..But common thing was that I could > send the Chat messages successfully. > > > I'm continuously looking at the tcpdumps and I'll share those here in > a while. > > > Thanks for replying and taking interest. > > > Regard, > Sammy > > > > On Fri, Aug 10, 2012 at 1:32 PM, Peter Dunkley > wrote: > > Hi, > > The xcap-caps document is hard-coded in kamailio.cfg and > provides a list of the document types the XCAP server > supports. This part of the configuration from the tutorial > builds and returns the xcap-caps document: > > if($xcapuri(u=>auid)=="xcap-caps") > { > $var(xbody) = > " > > > rls-services > pidf-manipulation > xcap-caps > resource-lists > pres-rules > org.openmobilealliance.pres-rules > > > > > urn:ietf:params:xml:ns:rls-services > urn:ietf:params:xml:ns:pidf > urn:ietf:params:xml:ns:xcap-caps > urn:ietf:params:xml:ns:resource-lists > urn:ietf:params:xml:ns:pres-rules > > "; > xhttp_reply("200", "ok", "application/xcap-caps+xml", > "$var(xbody)"); > exit; > } > > This tutorial has always worked for me in the past (although > it has been well over a year since I last used it), so it > looks like either a problem with Jitsi (which is unlikely) or > some misconfiguration on the Kamailio side. > > A tcpdump of the traffic between Jitsi and Kamailio would help > with working out which side has the problem. > > Regards, > > Peter > > > > On Thu, 2012-08-09 at 15:30 +0500, SamyGo wrote: > > > Hi, > > > > I've followed the tutorial on kab.asipto.com for presence > > using built-in xcap > > server. http://kb.asipto.com/kamailio:presence:k31-made-simple > > > > > > I'm using Kamailio version 3.3.1 and did minor changes in > > modparams and rtpproxy function calls and the kamailio > > accepted the configurations file posted on the page and > > started. > > > > > > But the problem is that I don't get the presence status of > > the contacts still. Please suggest what to look for and how > > to troubleshoot this. > > > > > > I get this error on Jitsi - image attached. > > > > > > ERROR: "http://ip.of.server/xcap-root/xcap-caps/global/index > > resource can not be read" > > > > > > Regards, > > Sammy > > > > _______________________________________________ > > 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 > > > -- > Peter Dunkley > Technical Director > Crocodile RCS Ltd > > > _______________________________________________ > 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 -- Peter Dunkley Technical Director Crocodile RCS Ltd -------------- next part -------------- An HTML attachment was scrubbed... URL: From govoiper at gmail.com Fri Aug 10 11:16:21 2012 From: govoiper at gmail.com (SamyGo) Date: Fri, 10 Aug 2012 14:16:21 +0500 Subject: [SR-Users] Kamailio Presence with XCAP not working accordingly In-Reply-To: <1344588814.1881.10.camel@pd-notebook-linux.croc.internal> References: <1344587547.1881.5.camel@pd-notebook-linux.croc.internal> <1344588814.1881.10.camel@pd-notebook-linux.croc.internal> Message-ID: Yes, Ekiga isn't good with it either. Can you just point me to some documentation and help me on that. I am sure I can get the presence working, but do you know hwo can I manage an offline chat thing in this ! do I need a separate dedicated xcap server for this feature ? On Fri, Aug 10, 2012 at 1:53 PM, Peter Dunkley < peter.dunkley at crocodile-rcs.com> wrote: > ** > Hi, > > XCAP uses HTTP (albeit still carried on port 5060 in this tutorial), > messaging and so on uses SIP. These are different protocols and handled in > kamailio.cfg differently. > > Last time I checked Xlite didn't support XCAP at all - so I don't think > that's going to work at all. I can't see XCAP/XDMS listed as an Ekiga > feature either. > > I am using presence and XCAP on Kamailio 3.3 (my own configuration, not > the one from the tutorial) and it works fine. > > Regards, > > Peter > > > On Fri, 2012-08-10 at 13:41 +0500, SamyGo wrote: > > Thanks , > > > > Yes this tutorial worked for me as well some 5/7 months ago with > kamailio 3.1 but I'm on 3.3 now and tried the same configurations file. > Jitsi on the other hand is the only phone I found which shows me this > error. I'm trying with Ekiga - eyebeam or xlite didn't seem happy with the > presence icons as well..But common thing was that I could send the Chat > messages successfully. > > > > I'm continuously looking at the tcpdumps and I'll share those here in a > while. > > > > Thanks for replying and taking interest. > > > > Regard, > > Sammy > > > > On Fri, Aug 10, 2012 at 1:32 PM, Peter Dunkley < > peter.dunkley at crocodile-rcs.com> wrote: > > Hi, > > The xcap-caps document is hard-coded in kamailio.cfg and provides a list > of the document types the XCAP server supports. This part of the > configuration from the tutorial builds and returns the xcap-caps document: > > if($xcapuri(u=>auid)=="xcap-caps") > { > $var(xbody) = > " > > > rls-services > pidf-manipulation > xcap-caps > resource-lists > pres-rules > org.openmobilealliance.pres-rules > > > > > urn:ietf:params:xml:ns:rls-services > urn:ietf:params:xml:ns:pidf > urn:ietf:params:xml:ns:xcap-caps > urn:ietf:params:xml:ns:resource-lists > urn:ietf:params:xml:ns:pres-rules > > "; > xhttp_reply("200", "ok", "application/xcap-caps+xml", > "$var(xbody)"); > exit; > } > > This tutorial has always worked for me in the past (although it has been > well over a year since I last used it), so it looks like either a problem > with Jitsi (which is unlikely) or some misconfiguration on the Kamailio > side. > > A tcpdump of the traffic between Jitsi and Kamailio would help with > working out which side has the problem. > > Regards, > > Peter > > > > On Thu, 2012-08-09 at 15:30 +0500, SamyGo wrote: > > Hi, > > I've followed the tutorial on kab.asipto.com for presence using built-in > xcap server. http://kb.asipto.com/kamailio:presence:k31-made-simple > > > I'm using Kamailio version 3.3.1 and did minor changes in modparams and > rtpproxy function calls and the kamailio accepted the configurations file > posted on the page and started. > > > But the problem is that I don't get the presence status of the contacts > still. Please suggest what to look for and how to troubleshoot this. > > > I get this error on Jitsi - image attached. > > > ERROR: "http://ip.of.server/xcap-root/xcap-caps/global/index resource can > not be read" > > > Regards, > Sammy > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > > -- > Peter Dunkley > Technical Director > Crocodile RCS Ltd > > > _______________________________________________ > 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 listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > > -- > Peter Dunkley > Technical Director > Crocodile RCS Ltd > > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter.dunkley at crocodile-rcs.com Fri Aug 10 12:00:28 2012 From: peter.dunkley at crocodile-rcs.com (Peter Dunkley) Date: Fri, 10 Aug 2012 11:00:28 +0100 Subject: [SR-Users] Kamailio Presence with XCAP not working accordingly In-Reply-To: References: <1344587547.1881.5.camel@pd-notebook-linux.croc.internal> <1344588814.1881.10.camel@pd-notebook-linux.croc.internal> Message-ID: <1344592828.1881.14.camel@pd-notebook-linux.croc.internal> Hi, The only documentation I know of is the stuff in the tutorial, the RFCs, and the Kamailio module documentation. Offline chat is a SIP feature, it has nothing to do with the XCAP server. The XCAP server manages XML documents (presence authorisation rules, contact lists, avatars, etc) and is accessed using HTTP. Instant messages are SIP MESSAGE requests and are handled by the SIP routing part of Kamailio. If you want to do offline message handling you need the msilo Kamailio module (which isn't part of the tutorial). Regards, Peter On Fri, 2012-08-10 at 14:16 +0500, SamyGo wrote: > Yes, Ekiga isn't good with it either. Can you just point me to some > documentation and help me on that. I am sure I can get the presence > working, but do you know hwo can I manage an offline chat thing in > this ! do I need a separate dedicated xcap server for this feature ? > > > > > On Fri, Aug 10, 2012 at 1:53 PM, Peter Dunkley > wrote: > > Hi, > > XCAP uses HTTP (albeit still carried on port 5060 in this > tutorial), messaging and so on uses SIP. These are different > protocols and handled in kamailio.cfg differently. > > Last time I checked Xlite didn't support XCAP at all - so I > don't think that's going to work at all. I can't see > XCAP/XDMS listed as an Ekiga feature either. > > I am using presence and XCAP on Kamailio 3.3 (my own > configuration, not the one from the tutorial) and it works > fine. > > Regards, > > Peter > > > > On Fri, 2012-08-10 at 13:41 +0500, SamyGo wrote: > > > Thanks , > > > > > > Yes this tutorial worked for me as well some 5/7 months ago > > with kamailio 3.1 but I'm on 3.3 now and tried the same > > configurations file. Jitsi on the other hand is the only > > phone I found which shows me this error. I'm trying with > > Ekiga - eyebeam or xlite didn't seem happy with the presence > > icons as well..But common thing was that I could send the > > Chat messages successfully. > > > > > > I'm continuously looking at the tcpdumps and I'll share > > those here in a while. > > > > > > Thanks for replying and taking interest. > > > > > > Regard, > > Sammy > > > > > > On Fri, Aug 10, 2012 at 1:32 PM, Peter Dunkley > > wrote: > > > > Hi, > > > > The xcap-caps document is hard-coded in kamailio.cfg > > and provides a list of the document types the XCAP > > server supports. This part of the configuration > > from the tutorial builds and returns the xcap-caps > > document: > > > > if($xcapuri(u=>auid)=="xcap-caps") > > { > > $var(xbody) = > > " > > > > > > rls-services > > pidf-manipulation > > xcap-caps > > resource-lists > > pres-rules > > org.openmobilealliance.pres-rules > > > > > > > > > > urn:ietf:params:xml:ns:rls-services > > urn:ietf:params:xml:ns:pidf > > urn:ietf:params:xml:ns:xcap-caps > > urn:ietf:params:xml:ns:resource-lists > > urn:ietf:params:xml:ns:pres-rules > > > > "; > > xhttp_reply("200", "ok", "application/xcap-caps+xml", > > "$var(xbody)"); > > exit; > > } > > > > This tutorial has always worked for me in the past > > (although it has been well over a year since I last > > used it), so it looks like either a problem with > > Jitsi (which is unlikely) or some misconfiguration > > on the Kamailio side. > > > > A tcpdump of the traffic between Jitsi and Kamailio > > would help with working out which side has the > > problem. > > > > Regards, > > > > Peter > > > > > > On Thu, 2012-08-09 at 15:30 +0500, SamyGo wrote: > > > > > Hi, > > > > > > I've followed the tutorial on kab.asipto.com for > > > presence using built-in xcap > > > server. http://kb.asipto.com/kamailio:presence:k31-made-simple > > > > > > > > > I'm using Kamailio version 3.3.1 and did minor > > > changes in modparams and rtpproxy function calls > > > and the kamailio accepted the configurations file > > > posted on the page and started. > > > > > > > > > But the problem is that I don't get the presence > > > status of the contacts still. Please suggest what > > > to look for and how to troubleshoot this. > > > > > > > > > I get this error on Jitsi - image attached. > > > > > > > > > ERROR: > > > "http://ip.of.server/xcap-root/xcap-caps/global/index resource can not be read" > > > > > > > > > Regards, > > > Sammy > > > > > > _______________________________________________ > > > 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 > > > > > > -- > > Peter Dunkley > > Technical Director > > Crocodile RCS Ltd > > > > _______________________________________________ > > 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 > > > -- > Peter Dunkley > Technical Director > Crocodile RCS Ltd > > > _______________________________________________ > 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 -- Peter Dunkley Technical Director Crocodile RCS Ltd -------------- next part -------------- An HTML attachment was scrubbed... URL: From govoiper at gmail.com Fri Aug 10 12:04:46 2012 From: govoiper at gmail.com (SamyGo) Date: Fri, 10 Aug 2012 15:04:46 +0500 Subject: [SR-Users] Kamailio Presence with XCAP not working accordingly In-Reply-To: <1344592828.1881.14.camel@pd-notebook-linux.croc.internal> References: <1344587547.1881.5.camel@pd-notebook-linux.croc.internal> <1344588814.1881.10.camel@pd-notebook-linux.croc.internal> <1344592828.1881.14.camel@pd-notebook-linux.croc.internal> Message-ID: Thats good enough for me, I'll go through everything and see if I can make it work. Thanks for your help and time. On Fri, Aug 10, 2012 at 3:00 PM, Peter Dunkley < peter.dunkley at crocodile-rcs.com> wrote: > ** > Hi, > > The only documentation I know of is the stuff in the tutorial, the RFCs, > and the Kamailio module documentation. > > Offline chat is a SIP feature, it has nothing to do with the XCAP server. > The XCAP server manages XML documents (presence authorisation rules, > contact lists, avatars, etc) and is accessed using HTTP. Instant messages > are SIP MESSAGE requests and are handled by the SIP routing part of > Kamailio. > > If you want to do offline message handling you need the msilo Kamailio > module (which isn't part of the tutorial). > > Regards, > > Peter > > > On Fri, 2012-08-10 at 14:16 +0500, SamyGo wrote: > > Yes, Ekiga isn't good with it either. Can you just point me to some > documentation and help me on that. I am sure I can get the presence > working, but do you know hwo can I manage an offline chat thing in this ! > do I need a separate dedicated xcap server for this feature ? > > > > On Fri, Aug 10, 2012 at 1:53 PM, Peter Dunkley < > peter.dunkley at crocodile-rcs.com> wrote: > > Hi, > > XCAP uses HTTP (albeit still carried on port 5060 in this tutorial), > messaging and so on uses SIP. These are different protocols and handled in > kamailio.cfg differently. > > Last time I checked Xlite didn't support XCAP at all - so I don't think > that's going to work at all. I can't see XCAP/XDMS listed as an Ekiga > feature either. > > I am using presence and XCAP on Kamailio 3.3 (my own configuration, not > the one from the tutorial) and it works fine. > > Regards, > > Peter > > > > On Fri, 2012-08-10 at 13:41 +0500, SamyGo wrote: > > Thanks , > > > Yes this tutorial worked for me as well some 5/7 months ago with kamailio > 3.1 but I'm on 3.3 now and tried the same configurations file. Jitsi on the > other hand is the only phone I found which shows me this error. I'm trying > with Ekiga - eyebeam or xlite didn't seem happy with the presence icons as > well..But common thing was that I could send the Chat messages successfully. > > > I'm continuously looking at the tcpdumps and I'll share those here in a > while. > > > Thanks for replying and taking interest. > > > Regard, > Sammy > > > On Fri, Aug 10, 2012 at 1:32 PM, Peter Dunkley < > peter.dunkley at crocodile-rcs.com> wrote: > > Hi, > > The xcap-caps document is hard-coded in kamailio.cfg and provides a list > of the document types the XCAP server supports. This part of the > configuration from the tutorial builds and returns the xcap-caps document: > > if($xcapuri(u=>auid)=="xcap-caps") > { > $var(xbody) = > " > > > rls-services > pidf-manipulation > xcap-caps > resource-lists > pres-rules > org.openmobilealliance.pres-rules > > > > > urn:ietf:params:xml:ns:rls-services > urn:ietf:params:xml:ns:pidf > urn:ietf:params:xml:ns:xcap-caps > urn:ietf:params:xml:ns:resource-lists > urn:ietf:params:xml:ns:pres-rules > > "; > xhttp_reply("200", "ok", "application/xcap-caps+xml", > "$var(xbody)"); > exit; > } > > This tutorial has always worked for me in the past (although it has been > well over a year since I last used it), so it looks like either a problem > with Jitsi (which is unlikely) or some misconfiguration on the Kamailio > side. > > A tcpdump of the traffic between Jitsi and Kamailio would help with > working out which side has the problem. > > Regards, > > Peter > > > On Thu, 2012-08-09 at 15:30 +0500, SamyGo wrote: > > Hi, > > I've followed the tutorial on kab.asipto.com for presence using built-in > xcap server. http://kb.asipto.com/kamailio:presence:k31-made-simple > > > I'm using Kamailio version 3.3.1 and did minor changes in modparams and > rtpproxy function calls and the kamailio accepted the configurations file > posted on the page and started. > > > But the problem is that I don't get the presence status of the contacts > still. Please suggest what to look for and how to troubleshoot this. > > > I get this error on Jitsi - image attached. > > > ERROR: "http://ip.of.server/xcap-root/xcap-caps/global/index resource can > not be read" > > > Regards, > Sammy > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > > -- > Peter Dunkley > Technical Director > Crocodile RCS Ltd > > > _______________________________________________ > 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 listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > > -- > Peter Dunkley > Technical Director > Crocodile RCS Ltd > > > _______________________________________________ > 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 listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > > -- > Peter Dunkley > Technical Director > Crocodile RCS Ltd > > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From govoiper at gmail.com Fri Aug 10 12:41:50 2012 From: govoiper at gmail.com (SamyGo) Date: Fri, 10 Aug 2012 15:41:50 +0500 Subject: [SR-Users] Kamailio Presence with XCAP not working accordingly In-Reply-To: References: <1344587547.1881.5.camel@pd-notebook-linux.croc.internal> <1344588814.1881.10.camel@pd-notebook-linux.croc.internal> <1344592828.1881.14.camel@pd-notebook-linux.croc.internal> Message-ID: Please see the SIP capture. As I was changing the online status from my jitis and eyebeam phone I could see the publish requests handled by kamailio but isn't it strange that I don'tfind any Notify generated and relayed to the watchers ? BR Sammy On Fri, Aug 10, 2012 at 3:04 PM, SamyGo wrote: > Thats good enough for me, I'll go through everything and see if I can make > it work. > Thanks for your help and time. > > > On Fri, Aug 10, 2012 at 3:00 PM, Peter Dunkley < > peter.dunkley at crocodile-rcs.com> wrote: > >> ** >> Hi, >> >> The only documentation I know of is the stuff in the tutorial, the RFCs, >> and the Kamailio module documentation. >> >> Offline chat is a SIP feature, it has nothing to do with the XCAP >> server. The XCAP server manages XML documents (presence authorisation >> rules, contact lists, avatars, etc) and is accessed using HTTP. Instant >> messages are SIP MESSAGE requests and are handled by the SIP routing part >> of Kamailio. >> >> If you want to do offline message handling you need the msilo Kamailio >> module (which isn't part of the tutorial). >> >> Regards, >> >> Peter >> >> >> On Fri, 2012-08-10 at 14:16 +0500, SamyGo wrote: >> >> Yes, Ekiga isn't good with it either. Can you just point me to some >> documentation and help me on that. I am sure I can get the presence >> working, but do you know hwo can I manage an offline chat thing in this ! >> do I need a separate dedicated xcap server for this feature ? >> >> >> >> On Fri, Aug 10, 2012 at 1:53 PM, Peter Dunkley < >> peter.dunkley at crocodile-rcs.com> wrote: >> >> Hi, >> >> XCAP uses HTTP (albeit still carried on port 5060 in this tutorial), >> messaging and so on uses SIP. These are different protocols and handled in >> kamailio.cfg differently. >> >> Last time I checked Xlite didn't support XCAP at all - so I don't think >> that's going to work at all. I can't see XCAP/XDMS listed as an Ekiga >> feature either. >> >> I am using presence and XCAP on Kamailio 3.3 (my own configuration, not >> the one from the tutorial) and it works fine. >> >> Regards, >> >> Peter >> >> >> >> On Fri, 2012-08-10 at 13:41 +0500, SamyGo wrote: >> >> Thanks , >> >> >> Yes this tutorial worked for me as well some 5/7 months ago with kamailio >> 3.1 but I'm on 3.3 now and tried the same configurations file. Jitsi on the >> other hand is the only phone I found which shows me this error. I'm trying >> with Ekiga - eyebeam or xlite didn't seem happy with the presence icons as >> well..But common thing was that I could send the Chat messages successfully. >> >> >> I'm continuously looking at the tcpdumps and I'll share those here in a >> while. >> >> >> Thanks for replying and taking interest. >> >> >> Regard, >> Sammy >> >> >> On Fri, Aug 10, 2012 at 1:32 PM, Peter Dunkley < >> peter.dunkley at crocodile-rcs.com> wrote: >> >> Hi, >> >> The xcap-caps document is hard-coded in kamailio.cfg and provides a list >> of the document types the XCAP server supports. This part of the >> configuration from the tutorial builds and returns the xcap-caps document: >> >> if($xcapuri(u=>auid)=="xcap-caps") >> { >> $var(xbody) = >> " >> >> >> rls-services >> pidf-manipulation >> xcap-caps >> resource-lists >> pres-rules >> org.openmobilealliance.pres-rules >> >> >> >> >> urn:ietf:params:xml:ns:rls-services >> urn:ietf:params:xml:ns:pidf >> urn:ietf:params:xml:ns:xcap-caps >> urn:ietf:params:xml:ns:resource-lists >> urn:ietf:params:xml:ns:pres-rules >> >> "; >> xhttp_reply("200", "ok", "application/xcap-caps+xml", >> "$var(xbody)"); >> exit; >> } >> >> This tutorial has always worked for me in the past (although it has been >> well over a year since I last used it), so it looks like either a problem >> with Jitsi (which is unlikely) or some misconfiguration on the Kamailio >> side. >> >> A tcpdump of the traffic between Jitsi and Kamailio would help with >> working out which side has the problem. >> >> Regards, >> >> Peter >> >> >> On Thu, 2012-08-09 at 15:30 +0500, SamyGo wrote: >> >> Hi, >> >> I've followed the tutorial on kab.asipto.com for presence using built-in >> xcap server. http://kb.asipto.com/kamailio:presence:k31-made-simple >> >> >> I'm using Kamailio version 3.3.1 and did minor changes in modparams and >> rtpproxy function calls and the kamailio accepted the configurations file >> posted on the page and started. >> >> >> But the problem is that I don't get the presence status of the contacts >> still. Please suggest what to look for and how to troubleshoot this. >> >> >> I get this error on Jitsi - image attached. >> >> >> ERROR: "http://ip.of.server/xcap-root/xcap-caps/global/index resource >> can not be read" >> >> >> Regards, >> Sammy >> >> _______________________________________________ >> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> >> >> -- >> Peter Dunkley >> Technical Director >> Crocodile RCS Ltd >> >> >> _______________________________________________ >> 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 listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> >> >> -- >> Peter Dunkley >> Technical Director >> Crocodile RCS Ltd >> >> >> _______________________________________________ >> 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 listsr-users at lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users >> >> >> -- >> Peter Dunkley >> Technical Director >> Crocodile RCS Ltd >> >> >> _______________________________________________ >> 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 >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: presence_sip.rar Type: application/rar Size: 5702 bytes Desc: not available URL: From ushacked at gmail.com Sun Aug 12 13:50:55 2012 From: ushacked at gmail.com (Uri Shacked) Date: Sun, 12 Aug 2012 14:50:55 +0300 Subject: [SR-Users] $avp reset to with no reason? Message-ID: Hi,**** ** ** I encountered a problem. While doing some avp's settings I notice that one avp that I use is changing to without me doing anything.**** ** ** Here is the part of the cfg file:**** ????.**** ????.**** Route[SET]{**** ????..**** $avp(Sfeaturetype)=$avp(next_feature_type);**** ????**** Route(DIDSRV);**** }**** ** ** route[DIDSRV] {**** xlog("L_CRIT","$C(rg) SCRIPT: in DIDSRV type = $avp(Sfeaturetype), index = $avp(SfeatureIndx) $C(xx)\n");**** if($var(srvcount)>3){**** xlog("L_NOTICE","$C(rg)Too many services loops $C(xx)\n");**** update_stat("nts_subs_srv_loop", "+1");**** $avp(TRMCS)="10";**** t_reply(403,"too many loops");**** exit;**** }**** $var(srvcount)=($var(srvcount)+1);**** xlog("L_CRIT","$C(rg) SCRIPT: in DIDSRV before switch to $avp(SfeatureType) or $avp(next_feature_type) $C(xx)\n");**** switch ($avp(SfeatureType)){**** case "0" :**** ???.**** ???**** ** ** On the route "SET" I put the value from the $avp(next_feature_type) in $avp(Sfeaturetype).**** After that I call the route "DIDSRV" and use switch($avp(Sfeaturetype)). Before the switch I xlog the value of the avp twice.**** As you can see in the log below, on the first xlog print, the value is 0 (as I expect). On the second print it resets to **** WHY?**** ** ** Log:**** Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: [mem/q_malloc.c:413]: qm_malloc(0x7fe6f9aff000, 72) returns address 0x7fe6fcc4d330 frag. 0x7fe6fcc4d300 (size=72) on 1 -th hit**** Aug 12 13:38:50 net-ivr-KamIN-Test kamailio[29309]: CRITICAL: