Re: [SR-Users] Nagios NRPE Plugin for Kamailio 5.x

2021-10-08 Thread Abdul Basit
These links might help you
https://github.com/sipgate/monitoring-plugins/tree/master/kamailio
https://www.kamailio.org/docs/modules/devel/modules/snmpstats.html


--
regards,

abdul basit


On Fri, 8 Oct 2021 at 21:40, Angelo Sipper  wrote:

> Hi,
>
> I would like to monitor kamailio via our nagios. Is there any working
> plugin available for nagios nrpe to monitor shared memory and some other
> config variables for kamailio 5.x that someone has used and could suggest?
>
> Kind regards,
> Angelo
>
> __
> Kamailio - Users Mailing List - Non Commercial Discussions
>   * sr-users@lists.kamailio.org
> Important: keep the mailing list in the recipients, do not reply only to
> the sender!
> Edit mailing list options or unsubscribe:
>   * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
__
Kamailio - Users Mailing List - Non Commercial Discussions
  * sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio config file for making Kamailio a Sip Proxy

2021-02-08 Thread Abdul Basit
This could be your starting point

https://www.kamailio.org/w/2018/07/minimal-sip-proxy-config-file/

--
regards,

abdul basit

On Sat, 6 Feb 2021 at 12:38, Derick Greenlee 
wrote:

> Hello,
>
>
>
> I had some questions regarding the Kamailio config file.
>
> I am trying to make Kamailio just behave as a sip proxy between two sip
> trunks. Could you send me an example for this possibly?
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Looking for a VoIP & Kamailio Dev-Ops

2020-07-06 Thread Abdul Basit
Hi Henning,

I am sharing my linkedin profile at https://www.linkedin.com/in/basitengr
See if we can venture together.

--
regards,

abdul basit


On Fri, 3 Jul 2020 at 00:37, Henning Westerholt  wrote:

> Dev-Ops VoIP & Kamailio
>
>
>
> GILAWA is looking for a new colleague to join our team!
>
>
>
> Tasks:
>
> Deploying, developing, and integrating our software based on Kamailio
>
> Testing and validation of our customer solutions
>
> Solve complex customer problems in the VoIP field
>
> Fix Bugs and create extensions in the Kamailio project
>
>
>
> Requirements:
>
> Good background in VoIP telephony and Kamailio Stack
>
> Experience with signalling standards (SIP, RTP etc..) and troubleshooting
>
> Knowledge and experience in one of the following languages: C/C++, Bash,
> PHP
>
> Experience with Debian or RedHat/CentOS Linux, knowledge of Ansible would
> be a plus
>
> Fluent in English
>
> Based in European or neighbouring time zone (e.g. EMEA area)
>
> Self-organized and strong communication skills
>
>
>
> Given the current situation this is a remote position.
>
>
>
> If you are interested, please send me a (direct) e-mail with an CV or
> Linkedin link, please include your availability and salary expectations as
> well.
>
>
>
> Best regards,
>
>
>
> Henning Westerholt
>
>
>
> --
>
> Henning Westerholt – https://skalatan.de/blog/
>
> Kamailio services – https://gilawa.com
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] [sr-dev] Kamailio v5.3.0 Released - new major version is out

2019-10-17 Thread Abdul Basit
congratulations!!!

--
regards,

abdul basit


On Thu, 17 Oct 2019 at 18:11, Daniel-Constantin Mierla 
wrote:

> Kamailio v5.3.0 is out – it comes with 6 new modules and a considerable
> set of improvements touching more than 100 existing modules.
>
> You can read detailed release notes at:
>
>* https://www.kamailio.org/w/kamailio-v5-3-0-release-notes/
>
> Many thanks to all developers and community members that made possible
> this release.
>
> v5.3.0 brings more flexibility and optimizations for KEMI interpreters,
> enhancements to load balancer, dialog tracking, uac remote registration
> and tls with libssl 1.1.x implementations, new variables,
> transformations and plenty of other new features.
>
> Enjoy Kamailio v5.3.0!
>
> Thank you for flying Kamailio!
> Daniel
>
> --
> Daniel-Constantin Mierla -- www.asipto.com
> www.twitter.com/miconda -- www.linkedin.com/in/miconda
>
>
> ___
> Kamailio (SER) - Development Mailing List
> sr-...@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] [sr-dev] Kamailio v5.1.9 Released

2019-09-26 Thread Abdul Basit
great work..

congratulations!!!

--
regards,

abdul basit


On Thu, 26 Sep 2019 at 20:29, Daniel-Constantin Mierla 
wrote:

> Hello,
>
> Kamailio SIP Server v5.1.9 stable release is out.
>
> This is a maintenance release of the previous stable branch, 5.1, that
> includes fixes since the release of v5.1.8. There is no change to
> database schema or configuration language structure that you have to do
> on previous installations of v5.1.x. Deployments running previous v5.1.x
> versions are strongly recommended to be upgraded to v5.1.9 or to v5.2.x
> series.
>
> For more details about version 5.1.9 (including links and guidelines to
> download the tarball or from GIT repository), visit:
>
>   * https://www.kamailio.org/w/2019/09/kamailio-v5-1-9-released/
>
> RPM, Debian/Ubuntu packages will be available soon as well.
>
> Note: the branch 5.1 is the previous stable branch. The latest stable
> branch is 5.2, at this time with v5.2.4 being released out of it.
>
> Many thanks to all contributing and using Kamailio!
>
> Cheers,
> Daniel
>
> --
> Daniel-Constantin Mierla -- www.asipto.com
> www.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio World Conference - April 27-29, 2020 -- www.kamailioworld.com
>
>
>
> ___
> Kamailio (SER) - Development Mailing List
> sr-...@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] rtpproxy not forwarding rtp packets.

2018-05-18 Thread Abdul Basit
It looks a simple question but whats outgoing RTP packets destination? Is
CALLEE IP present on that NATed destination?
Confirm that RTP Proxy determined that NATed IPs properly.
What did you receive in 200OK from CALLEE?
Check if engaged RTP ports are open in the flow?


--
regards,

abdul basit

On 18 May 2018 at 13:08, Bilal Abbasi <bilaln...@gmail.com> wrote:

> Corrigendum:
> We are getting packets from CALLER*
>
> Regards
> Abbasi
>
> On Fri, 18 May 2018 at 12:46 PM, Bilal Abbasi <bilaln...@gmail.com> wrote:
>
>> Actually they dont even get out of rtpproxy, we cant see that in the in
>> sngrep/tcpdump.
>> We are getting packets from callee but nothing going out of
>> rtpproxy(talking about local dump)
>>
>> Regards
>> Abbasi
>>
>> On Fri, May 18, 2018, 12:13 Giovanni Tommasini - evosip
>> <giovanni.tommasini@evosip.cloud> wrote:
>>
>>> Hi Younas,
>>>
>>> when you have a call if you make a trace in your sip server with sngrep
>>> or tshark can you see the RTP packet ?
>>> you says "I have kamailio server behind nat with rptproxy.", so is it
>>> possible that the router in front your SIP server blocks the traffic? could
>>> you have a trace there?
>>> I mean the packets exit the rtpproxy but don't arrive to callee or just
>>> don't come out of the rtpproxy?
>>>
>>> Giovanni Tommasini |
>>> *​​evosip* <http://evosip.cloud>
>>>
>>>
>>> 2018-05-18 1:36 GMT+02:00 Aqs Younas <aqsyou...@gmail.com>:
>>>
>>>> Thanks for replying. Callee is actually a sip provider. I see no
>>>> firewall or iptables rules on server to prevent rtp following towards
>>>> callee.
>>>>
>>>> Is there anything i can do to see which thing is blocking rtps.
>>>>
>>>> Best
>>>>
>>>> On Fri, 18 May 2018 at 3:59 AM, Mack Hendricks <a...@goflyball.com>
>>>> wrote:
>>>>
>>>>> Is there something blocking RTP traffic from reaching the callee?  Is
>>>>> the callee a carrier or the actually endpoint endpoint (aka SIP Phone)?
>>>>>
>>>>> *Mack Hendricks / Head of Support / dOpenSource*
>>>>> web: http://dopensource.com
>>>>> support: +888-907-2085
>>>>> dSIPRouter <http://dsiprouter.org> - GUI focused on implementing
>>>>> Kamailio to provide SIP Trunking and PBX Hosting Services
>>>>>
>>>>> On May 18, 2018, at 12:50 AM, Aqs Younas <aqsyou...@gmail.com> wrote:
>>>>>
>>>>> Greetings list,
>>>>>
>>>>>
>>>>> I have kamailio server behind nat with rptproxy. But i am getting no
>>>>> voice on the call. After taking trace i could see that rtpproxy was 
>>>>> getting
>>>>> rtp packets but not packets was being forwarded towards callee side.
>>>>>
>>>>> Though i see in rtpproxy logs, packets being relayed from caller side.
>>>>>
>>>>> Does rtpproxy wait to receive a single rtp frame from callee before
>>>>> fowarding that to callee?
>>>>>
>>>>> Since, i am getting no rtp from callee. So, might be rptrpoxy is
>>>>> waiting to learn source address of callee side rtp, that is why it is not
>>>>> forwarding rtp packets from caller towards callee.
>>>>>
>>>>>
>>>>> Any pointer/suggestion is much appreciated.
>>>>>
>>>>> Best Regards,
>>>>>
>>>>> Aqs Younas
>>>>>
>>>>> ___
>>>>> Kamailio (SER) - Users Mailing List
>>>>> sr-users@lists.kamailio.org
>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>
>>>>>
>>>>> ___
>>>>> Kamailio (SER) - Users Mailing List
>>>>> sr-users@lists.kamailio.org
>>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>>
>>>>
>>>> ___
>>>> Kamailio (SER) - Users Mailing List
>>>> sr-users@lists.kamailio.org
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] How long time does a push take?

2018-05-07 Thread Abdul Basit
Once you have sent the push, you are done... now wait for them to deliver
it to your device. Fingers crossed.
Apple VoIP push are good and take ~ 1 sec to deliver to the target device
if there is no lag on internet leyer.
Its the mobile app that take further time to wake up based on your defined
criteria.

--
regards,

abdul basit


On 4 May 2018 at 23:20, Kjeld Flarup <kjeld.fla...@liberalismen.dk> wrote:

> We are already using VoIP push for Apple, so we must accept, that this is
> never going to be good.
>
>  Med Liberalistiske Hilsner --
>Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
>Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
>Den ikke akademiske hjemmeside for liberalismen - www.liberalismen.dk
>
> On 05/01/2018 06:14 PM, Joel Serrano wrote:
>
> AFAIR, there was an option you can set when you send the request to
> Google/Apple to mark the push as a "high priority push". Apple itself has
> also a specific VoIP push, (it's a different type of push, not regular
> push). it should be what you are using for VoIP related stuff. Not that
> this will speed up things, but it might make a difference when Google/Apple
> have issues delivering push notifications.
>
> I think that is as much as you can get.. from that point onwards, there
> are just too many variables out of your control that can add extra delay in
> receiving a push notification.
>
> Joel.
>
>
>
>
>
> On Sun, Apr 29, 2018 at 12:42 AM, Kjeld Flarup <
> kjeld.fla...@liberalismen.dk> wrote:
>
>> We have a suspicion that the delay is caused by Google and Apple being
>> busy pushing "spam" to the whole world. A lot of messages, which does not
>> require "real time".
>>
>>  Med Liberalistiske Hilsner --
>>Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min tegnebog
>>Sofienlundvej 6B, 7560 Hjerm
>> <https://maps.google.com/?q=Sofienlundvej+6B,+7560+Hjerm=gmail=g>,
>> Tlf: 40 29 41 49
>>Den ikke akademiske hjemmeside for liberalismen - www.liberalismen.dk
>>
>> On 04/29/2018 12:25 AM, Alex Balashov wrote:
>>
>>> When it comes to speed at which things happen, nothing in wireless is
>>> impressive when we are talking about telephony. :)
>>>
>>> On April 28, 2018 6:24:36 PM EDT, Kjeld Flarup <
>>> kjeld.fla...@liberalismen.dk> wrote:
>>>
>>>> Hello
>>>>
>>>> I have a question to those of You who uses push via Google or Apple to
>>>> initiate calls.
>>>>
>>>> How long time does it usually take, before the phone gets the push and
>>>> wakes up?
>>>>
>>>> Our experience is, that it can take from 2 to 10 seconds, and that not
>>>> impressing when we are talking about telephony.
>>>>
>>>>
>>>> --
>>>>  Med Liberalistiske Hilsner --
>>>>   Civilingeniør, Kjeld Flarup - Mit sind er mere åbent end min t
>>>> <https://maps.google.com/?q=ind+er+mere+%C3%A5bent+end+min+t=gmail=g>
>>>> egnebog
>>>> Sofienlundvej 6B, 7560 Hjerm, Tlf: 40 29 41 49
>>>>   Den ikke akademiske hjemmeside for liberalismen - www.liberalismen.dk
>>>>
>>>>
>>>> ___
>>>> Kamailio (SER) - Users Mailing List
>>>> sr-users@lists.kamailio.org
>>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>>
>>>
>>> -- Alex
>>>
>>> --
>>> Sent via mobile, please forgive typos and brevity.
>>>
>>> ___
>>> Kamailio (SER) - Users Mailing List
>>> sr-users@lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
>
> ___
> Kamailio (SER) - Users Mailing 
> Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] MSILO: Message limit on SIP stored offline MESSAGE delivery

2018-05-04 Thread Abdul Basit
Hi team,

Any tip for achieving the scenario?

--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 30 April 2018 at 16:05, Abdul Basit <basit.e...@gmail.com> wrote:

> Hi Team,
>
> I have setup IM server with kamailio using MSILO module.
> Its working fine now.
>
> I have a scenario where lot of offline messages are being stored in mysql
> database for a user B. As soon as destination (B) REGISTER with kamailio,
> these messages will deliver to him. Now, kamailio will deliver all of these
> messages that will cause user (B) device (softphone on mobile) stuck or
> freezs for the moment messages are being delivered like bombardment from
> kamailio.
>
> Is there any way, where I can define batch size of messages to be
> delivered after provided interval?
>
> like batch_size=10 messages and batch_interval= 5sec, etc.
> I want to avoid applying static limit to mysql query in module source code.
>
> Please advise.
>
> --
> regards,
>
> abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] how to disable sip authentication

2018-05-02 Thread Abdul Basit
Hi Bipin,

You can stop sending challange_auth.
Can you explain further?
What will be benefit of this configuration?

--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 2 May 2018 at 23:33, BIPIN KUMAR Das <bipin...@gmail.com> wrote:

> Hi,
>
> Is there any way in Kamailio where I can suppress sip registration
> authentication.
> I want, Kamailio can send 200 OK for sip registration without going for
> 401 Unauthorized.
>
> Please tell me if you have such configuration in Kamailio.
>
> thanks
> Bipin
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Send UPDATE to inform changes in SDP

2018-04-30 Thread Abdul Basit
Well, we faced the same issue of call drop when we play announcement over
183 and then handover call to B party when it come online on voip push
notification.

Telcos have more rigid systems.
Resolution was introducing B2BUA for topo-hiding in the path IMS (A party)
and VoIP service (B & C party).
Check tags of to and from headers of your call traces. That will give you
clue.



--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 30 April 2018 at 14:59, Alfonso Pinto <alfonso.pi...@gmail.com> wrote:

> Hi Carsten,
>
> I was thinking about the same, but I need to convince people to add
> another component in the media path, they may be bit reluctant, but the
> idea is great.
> In the meantime, I was able to trick the phones to react how I want
> playing with precondition and 100rel, for now it's acceptable in our
> environment.
>
> Thanks for your answer.
> Regards,
> Alfonso.
>
> On Fri, Apr 27, 2018 at 9:39 AM, Carsten Bock <cars...@ng-voice.com>
> wrote:
>
>> Hi,
>>
>> likely, the best solution is here to use RTPEngine, so the IP/Port
>> stays identical for each request... i've tested it with various VoLTE
>> phones and various PCRF's.
>>
>> Thanks,
>> Carsten
>> --
>>
>> Carsten Bock
>> CEO (Geschäftsführer)
>>
>> ng-voice GmbH
>> Millerntorplatz 1
>> 20359 Hamburg / Germany
>>
>> http://www.ng-voice.com
>> mailto:cars...@ng-voice.com
>>
>> Office +49 40 5247593-40
>> Fax +49 40 5247593-99
>>
>> Sitz der Gesellschaft: Hamburg
>> Registergericht: Amtsgericht Hamburg, HRB 120189
>> Geschäftsführer: Carsten Bock
>> Ust-ID: DE279344284
>>
>> Hier finden Sie unsere handelsrechtlichen Pflichtangaben:
>> http://www.ng-voice.com/imprint/
>>
>>
>> 2018-04-26 15:59 GMT+02:00 Alfonso Pinto <alfonso.pi...@gmail.com>:
>> > Hi Alex,
>> >
>> > Thanks for your answer. I was thinking more or less the same, but it
>> seems I
>> > oversimplified the example and was missing an important point.
>> > This is IMS, so in the middle there are a lot more in the middle. It
>> seems
>> > that this behaviour is normal when precondition is set and the only way
>> to
>> > avoid the network to release the call on A side is to send the update.
>> > I've seen that in Kamailio 5 a new function was included in TM:
>> > https://www.kamailio.org/docs/modules/5.1.x/modules/tm.html#
>> tm.f.t_uac_send
>> > In the code it looks like it's trying to use the current dialog, but
>> that
>> > gives me doubts about CSEQ handling on the other side.
>> >
>> > Anyway, I will try unless someone is faster replying saying it doesn't
>> work
>> > :)
>> >
>> > Thanks,
>> > Alfonso.
>> >
>> > On Thu, Apr 26, 2018 at 2:37 PM, Alex Balashov <
>> abalas...@evaristesys.com>
>> > wrote:
>> >>
>> >> I would instead redirect my focus to why A is dropping the call in this
>> >> situation. It shouldn't be doing that.
>> >>
>> >> Per the standards, the first SDP answer must be the final SDP answer
>> >> (absent an update or reinvite) *of that endpoint*. There's no rule
>> saying
>> >> that must be true of the dialog as a whole.
>> >>
>> >> -- Alex
>> >>
>> >> --
>> >> Sent via mobile, please forgive typos and brevity.
>> >>
>> >> ___
>> >> Kamailio (SER) - Users Mailing List
>> >> sr-users@lists.kamailio.org
>> >> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> >
>> >
>> >
>> > ___
>> > Kamailio (SER) - Users Mailing List
>> > sr-users@lists.kamailio.org
>> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> >
>>
>> ___
>> Kamailio (SER) - Users Mailing List
>> sr-users@lists.kamailio.org
>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>>
>
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] I need some documentation :)

2018-04-26 Thread Abdul Basit
Hi Fazzhini,

These links may help

http://kb.asipto.com/asterisk:realtime:kamailio-4.0.x-asterisk-11.3.0-astdb

https://www.kamailio.org/events/2015-KamailioWorld/Day1/10-Matt.Jordan-Asterisk-Media-Server.pdf

https://community.asterisk.org/t/asterisk-kamailio-integration/71055/4

https://saevolgo.blogspot.com/2011/11/increasing-voip-services-capacity.html


--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 25 April 2018 at 18:47, Facchini Antoine <anto...@facchini.fr> wrote:

> hello here ! I'm very newbie ... I search documentation (because I guess u
> can't explain that here like this) for create proxy. I want redirect all
> SIP traffic to an Asterisk instance. I search again and again but i don't
> find anything...
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] MSILO: SIP stored offline MESSAGE repetitive delivery

2018-04-12 Thread Abdul Basit
Hi Team,

My issue for IM handling has been resolved.

@MS helped to look into the matter. From to the example
https://www.kamailio.org/docs/modules/5.1.x/modules/msilo.html#idp45433036

# -- tm params --

modparam("tm", "fr_timer", 10 )
modparam("tm", "fr_inv_timer", 15 )
modparam("tm", "wt_timer", 10 )

I replaced it as below

# -- tm params --

modparam("tm", "fr_timer", 1 )
modparam("tm", "fr_inv_timer", 15 )
modparam("tm", "wt_timer", 10 )


Lower fr_timer was initiating 408 without waiting for 200 OK from
destination because 10ms is too low. This was confusing msilo module and
the sender device that MESSAGE sent was failed.
Increasing the fr_timer value resolved the issue.
This also resolved a ripple effect. i.e, kamailio delivery of offline
messages from DB store to the destination party.
Since kamailio was get message delivery error, it was
executing failure_route[1] that was storing the message again in DB store
as offline message and so on.

lower fr_timer values are also exits in 3.x, 4.x, 5x and dev branches
documentation.

Correction is required.


--

regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

>
> On 9 April 2018 at 19:34, Abdul Basit <basit.e...@gmail.com> wrote:
>
>> Dear Team,
>>
>> I have added traces via pasetbin
>>
>> MESSAGE Stored When B is OffLine https://pastebin.com/NLwMePmf
>>
>> [trace screenshot removed]
>>
>> Next this messages should be delivered when B party REGISTER with the
>> server
>>
>> *Issue 1*: Message was delivered to B-party but it didn't remove form DB
>> and as a result MESSAGE deliver to B-party as many times it come line
>> https://pastebin.com/7pb0wCKx
>> [trace screenshot removed]
>> ​
>> Now next issue is
>> *Issue 2*: Messages deliver to B-party when its already online without
>> storing in DB. B-party receive MESSAGE successfully but A-party gets
>> MESSAGE delivery failed.
>> https://pastebin.com/zgDbK4F6
>>
>> [trace screenshot removed]
>> ​
>> I intentionally modified the 202 - description for better troubleshooting.
>>
>> See if attachments were received properly through mailing list.
>>
>> For convenience I have attached the pcap as well.
>>
>> MESSAGE: 1: Accepted and Stored as expected
>> MESSAGE: 2: Server delivered Message when B comes online
>> MESSAGE: 3: Both A & B are online. A-party receives MESSAGE delivery
>> failure where as B-party receives MESSAGE successfully
>>
>>
>> Modified default kamailio.cfg is https://pastebin.com/thZig5RC
>> It looks that mingled up the configuration.
>>
>> Please see whats gone wrong here.
>>
>>
>> --
>> regards,
>>
>> abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445
>>
>> On 9 April 2018 at 18:20, Abdul Basit <basit.e...@gmail.com> wrote:
>>
>>> Dear team,
>>>
>>> Thank you for your reply.
>>>
>>> @MS & @ Davld, Let me test again and share traces.
>>>
>>> @Zaka, I will check the save() result as you suggested. Location is
>>> being saved and properly looked up because messages are being delivered
>>> (and not stored in DB ) when both parties are online.
>>>
>>> --
>>> regards,
>>>
>>> abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445
>>>
>>> On 9 April 2018 at 16:38, Muhammad Zaka <muhammad.z...@cloudcall.com>
>>> wrote:
>>>
>>>> Please check the return value of save and replace the logic: -
>>>>
>>>>
>>>>
>>>> $var(save_result) = save("location") ;
>>>>
>>>> if ($var(save_result) <= -1) {
>>>>
>>>> xlogl("L_ERROR", "[$rm] -> Unable to save user location \n");
>>>> sl_reply_error();
>>>>
>>>>  exit();
>>>>
>>>> }
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> if ($var(save_result) == 1) {
>>>>
>>>> xlogl("L_INFO", "[$rm] -> dumping messages with MSILO \n");
>>>> # MSILO - dumping user's offline messages to user
>>>> if (m_dump("$fu")) {
>>>>  xlogl("L_NOTICE", "MSILO: offline messages for $fu dumped - if
>>>> they were \n");
>>>> }
>>>> else {
>>>>  xlogl("L_NOTICE", "MSILO: no offline messag

Re: [SR-Users] MSILO: SIP stored offline MESSAGE repetitive delivery

2018-04-09 Thread Abdul Basit
Dear team,

Thank you for your reply.

@MS & @ Davld, Let me test again and share traces.

@Zaka, I will check the save() result as you suggested. Location is being
saved and properly looked up because messages are being delivered (and not
stored in DB ) when both parties are online.

--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 9 April 2018 at 16:38, Muhammad Zaka <muhammad.z...@cloudcall.com> wrote:

> Please check the return value of save and replace the logic: -
>
>
>
> $var(save_result) = save("location") ;
>
> if ($var(save_result) <= -1) {
>
> xlogl("L_ERROR", "[$rm] -> Unable to save user location \n");
> sl_reply_error();
>
>  exit();
>
> }
>
>
>
>
>
> if ($var(save_result) == 1) {
>
> xlogl("L_INFO", "[$rm] -> dumping messages with MSILO \n");
> # MSILO - dumping user's offline messages to user
> if (m_dump("$fu")) {
>  xlogl("L_NOTICE", "MSILO: offline messages for $fu dumped - if
> they were \n");
> }
> else {
>  xlogl("L_NOTICE", "MSILO: no offline messages dumped \n");
>  };
> }
>
>
>
> This means dump the message only when it is not re-registration.
>
>
>
> Thanks
>
>
>
> Regards
>
> Muhammad Zaka
>
>
>
>
>
>
>
> *From:* sr-users [mailto:sr-users-boun...@lists.kamailio.org] *On Behalf
> Of *Abdul Basit
> *Sent:* 08 April 2018 18:43
> *To:* Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>;
> Kamailio (SER) - Users Mailing List <sr-us...@lists.sip-router.org>
> *Subject:* Re: [SR-Users] MSILO: SIP stored offline MESSAGE repetitive
> delivery
>
>
>
> Dear Team,
>
> Still stuck with the issue. Kindly suggest where i did wrong.
>
>
>
>
> --
> regards,
>
>
> abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445
>
>
>
> On 6 April 2018 at 20:50, Abdul Basit <basit.e...@gmail.com> wrote:
>
> Hi team,
>
> I am facing an issue while setting up IM server based on kamailio.
>
> SIP-SIP online messaging is fine. For offline messaging i am using msilo
> module which is storing offline messages in 'silo' table.
>
>
>
> As B-party come online ... it receive offline messages stored in database.
> But
>
> *Problem is*.. these messages will deliver to B-party as many time it
> REGISTER online.
>
>
>
> How can I configure msilo module to mark messages delivery status?
> or how can i delete the delivered messages so that there will be no chance
> of delivering them again on next REGISTER?
>
> Message parts of kamailio.cfg are
> 
> /* add local domain aliases */
> alias="192.168.10.18"
> port=9060
>
>
> # - msilo params -
> modparam("msilo", "db_url", DBURL)
> modparam("msilo", "db_table", "silo")
> modparam("msilo", "sc_mid", "id")
> modparam("msilo","from_address","sip:registrar@192.168.10.18:9060")
> modparam("msilo","contact_hdr","Contact: registrar@192.168.10.18:9060;
> msilo=yes\r\n")
> modparam("msilo","content_type_hdr","Content-Type: text/plain\r\n")
>
> 
>
> route[MSILO_MESSAGE] {
> if (!is_method("MESSAGE")) return;
> xlogl("L_NOTICE", "[$rm] r-uri: $ru d-uri: $du \n");
> if (lookup("location")) {
> xlogl("L_NOTICE", "[$rm] -> loaction found. Relying message
> [[$rb]] to the UAC \n");
> t_relay();
> } else {
> if (!t_newtran()) {
> xlogl("L_ERROR", "[$rm] -> ERROR creating new transaction \n");
> sl_reply_error();
> exit;
> };
> xlogl("L_NOTICE", "[$rm] -> Storing MSILO_MESSAGE \n
> [$ru]-[$tu]-[$ou] \n ");
> if (m_store("$ru")) {
> xlogl("L_NOTICE", "MSILO: offline message stored! \n");
> if (!t_reply("202", "Accpeted and Strored")) {
> xlogl("L_ERROR", "MSILO: Err sending 202 reply... \n");
> sl_reply_error();
> }
> } else {
> xlogl("L_ERROR", "MSILO: offline message NOT stored... \n");
> if (!t_reply("503", "Service Unavailable")) {
> sl_reply_error();
> }
> }
> }
>   

Re: [SR-Users] MSILO: SIP stored offline MESSAGE repetitive delivery

2018-04-08 Thread Abdul Basit
Dear Team,

Still stuck with the issue. Kindly suggest where i did wrong.


--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 6 April 2018 at 20:50, Abdul Basit <basit.e...@gmail.com> wrote:

> Hi team,
>
> I am facing an issue while setting up IM server based on kamailio.
> SIP-SIP online messaging is fine. For offline messaging i am using msilo
> module which is storing offline messages in 'silo' table.
>
> As B-party come online ... it receive offline messages stored in database.
> But
> *Problem is*.. these messages will deliver to B-party as many time it
> REGISTER online.
>
> How can I configure msilo module to mark messages delivery status?
> or how can i delete the delivered messages so that there will be no chance
> of delivering them again on next REGISTER?
>
> Message parts of kamailio.cfg are
> 
> /* add local domain aliases */
> alias="192.168.10.18"
> port=9060
>
>
> # - msilo params -
> modparam("msilo", "db_url", DBURL)
> modparam("msilo", "db_table", "silo")
> modparam("msilo", "sc_mid", "id")
> modparam("msilo","from_address","sip:registrar@192.168.10.18:9060")
> modparam("msilo","contact_hdr","Contact: registrar@192.168.10.18:9060;m
> silo=yes\r\n")
> modparam("msilo","content_type_hdr","Content-Type: text/plain\r\n")
>
> 
>
> route[MSILO_MESSAGE] {
> if (!is_method("MESSAGE")) return;
> xlogl("L_NOTICE", "[$rm] r-uri: $ru d-uri: $du \n");
> if (lookup("location")) {
> xlogl("L_NOTICE", "[$rm] -> loaction found. Relying message
> [[$rb]] to the UAC \n");
> t_relay();
> } else {
> if (!t_newtran()) {
> xlogl("L_ERROR", "[$rm] -> ERROR creating new transaction \n");
> sl_reply_error();
> exit;
> };
> xlogl("L_NOTICE", "[$rm] -> Storing MSILO_MESSAGE \n
> [$ru]-[$tu]-[$ou] \n ");
> if (m_store("$ru")) {
> xlogl("L_NOTICE", "MSILO: offline message stored! \n");
> if (!t_reply("202", "Accpeted and Strored")) {
> xlogl("L_ERROR", "MSILO: Err sending 202 reply... \n");
> sl_reply_error();
> }
> } else {
> xlogl("L_ERROR", "MSILO: offline message NOT stored... \n");
> if (!t_reply("503", "Service Unavailable")) {
> sl_reply_error();
> }
> }
> }
> exit;
> }
>
> .
>
> # Handle SIP registrations
> route[REGISTRAR] {
> if (!is_method("REGISTER")) return; // discard all non-REGISTER methods
>
> if(isflagset(FLT_NATS)) {
> setbflag(FLB_NATB);
> #!ifdef WITH_NATSIPPING
> setbflag(FLB_NATSIPPING); //# do SIP NAT pinging
> #!endif
> }
> $avp(received) = "sip:" + $si + ":" + $sp + ";transport=" + $proto;
> xlogl("L_INFO", "[$rm] -> UAC actual location $avp(received) \n");
> if (!save("location",0x04)) {
> xlogl("L_ERROR", "[$rm] -> Unable to save user location \n");
> sl_reply_error();
> }
> else {
> xlogl("L_INFO", "[$rm] -> dumping messages with MSILO \n");
> # MSILO - dumping user's offline messages to user
> if (m_dump("$fu")) {
> xlogl("L_NOTICE", "MSILO: offline messages for $fu dumped - if
> they were \n");
> }
> else {
> xlogl("L_NOTICE", "MSILO: no offline messages dumped \n");
> };
> }
> exit;
> }
>
> Any idea?
>
> --
> regards,
>
> abdul basit
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] SIP header when 911 called

2018-03-02 Thread Abdul Basit
Hi Team,

Does kamailio has compatibility with E911, i.e. through location in SIP
header when 911 called?
Is there any reference document?

--
regards,

abdul basit
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamailio 5.1 from git compile error

2018-01-17 Thread Abdul Basit
Hi Social Boh,

Thank you for pointing it.

Diff of src/modules.lst from kamailio v5.1 and v5.0 is a below

19c19
< exclude_modules= acc_radius app_java app_lua app_mono app_perl app_python
auth_ephemeral auth_identity auth_radius carrierroute cdp cdp_avp cnxcc
cplc crypto db2_ldap db_berkeley db_cassandra db_mongodb db_mysql db_oracle
db_perlvdb db_postgres db_sqlite db_unixodbc dialplan dnssec erlang evapi
geoip geoip2 gzcompress h350 http_async_client http_client ims_auth
ims_charging ims_dialog ims_diameter_server ims_icscf ims_isc ims_ocs
ims_qos ims_registrar_pcscf ims_registrar_scscf ims_usrloc_pcscf
ims_usrloc_scscf jansson janssonrpcc json jsonrpcc kazoo lcr ldap
log_systemd memcached misc_radius ndb_cassandra ndb_mongodb ndb_redis nsq
osp outbound peering *phonenum* presence presence_conference
presence_dialoginfo presence_mwi presence_profile presence_reginfo
presence_xml pua pua_bla pua_dialoginfo pua_reginfo pua_rpc pua_usrloc
pua_xmpp rabbitmq regex rls sctp snmpstats tls topos_redis utils uuid
websocket xcap_client xcap_server xhttp_pi xmlops xmlrpc xmpp
$(skip_modules)
---
> exclude_modules= acc_radius app_java app_lua app_mono app_perl app_python
auth_ephemeral auth_identity auth_radius carrierroute cdp cdp_avp cnxcc
cplc crypto db2_ldap db_berkeley db_cassandra db_mongodb db_mysql db_oracle
db_perlvdb db_postgres db_sqlite db_unixodbc dialplan dnssec erlang evapi
geoip geoip2 gzcompress h350 http_async_client http_client ims_auth
ims_charging ims_dialog ims_icscf ims_isc ims_ocs ims_qos
ims_registrar_pcscf ims_registrar_scscf ims_usrloc_pcscf ims_usrloc_scscf
jansson janssonrpcc json jsonrpcc kazoo lcr ldap log_systemd memcached
misc_radius ndb_cassandra ndb_mongodb ndb_redis nsq osp outbound peering
presence presence_conference presence_dialoginfo presence_mwi
presence_profile presence_reginfo presence_xml pua pua_bla pua_dialoginfo
pua_reginfo pua_rpc pua_usrloc pua_xmpp rabbitmq regex rls sctp snmpstats
tls utils uuid websocket xcap_client xcap_server xhttp_pi xmlops xmlrpc
xmpp $(skip_modules)


I will test on fresh machine again. I just pulled again from git and looks
like somehow phonenum was missing in my exclude_modules.

--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 18 January 2018 at 01:57, Social Boh <soc...@bohboh.info> wrote:

> Hello Abdul,
>
> check src/modules.lst
>
> file
>
> exclude_modules=
>
> line must contain:
>
> phonenum
>
> phonenum is the new module present from 5.1 Kamailio version and depend on
> libphonenumber library
>
> https://kamailio.org/docs/modules/5.1.x/modules/phonenum.html
>
> Regards
>
> ---
> I'm SoCIaL, MayBe
>
>

> El 17/01/2018 a las 15:40, Abdul Basit escribió:
>
> Hi Daniel,
>
> That's what i was thinking about phonenum module.
>
> I simply git clone form kamailio repo
>
> make cfg include_modules="utils app_lua db_postgres"
> make all
> make install
>
> Nothing else. I wonder why kamailio 5.1 want to use libphonenumber  where
> there was no such dependency for version 5.0.x
>
>
> --
> regards,
>
> abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445
>
> On 17 January 2018 at 19:22, Daniel-Constantin Mierla <mico...@gmail.com>
> wrote:
>
>> Hello,
>>
>> how did you compile kamailio? The phonenum module should not be compiled
>> by default, only on demand...
>>
>> Cheers,
>> Daniel
>>
>> On 16.01.18 17:27, Abdul Basit wrote:
>>
>> Hi,
>>
>> I am able to compile kamailio 5.1 now.
>>
>> Added libphonenumber repo for latest debian packages
>>
>> echo “deb http://ftp.de.debian.org/debian sid main” >>
>> /etc/apt/sources.list.d/libphonenumber7.list
>>
>> apt-get update && apt-get upgrade
>>
>> Additional updated packages and dependencies to install are
>>
>> apt install libphonenumber7 libphonenumber-dev libicu57 libprotobuf10
>> libstdc++6 libgeocoding7 libboost-date-time1.62.0 libboost-filesystem1.62.0
>> libboost-system1.62.0 libboost-thread1.62.0 libboost-thread-dev
>>
>> apt install libprotobuf-dev
>>
>> Once done, kamailio 5.1 was compiled successfully.
>> I hope this will make someone's life easier.
>>
>> --
>> regards,
>>
>> abdul basit
>>
>>
>> On 16 January 2018 at 18:48, Abdul Basit <basit.e...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I am trying to compile kamailio 5.1 from git following
>>> https://kamailio.org/docs/tutorials/5.1.x/kamailio-install-guide-git/
>>>
>>> on Debian GNU/Linux 8.10 (jessie)
>>>
>>> I also installed packages after getting dependency errors
>>> apt-get install libhiredis-dev libph

[SR-Users] send LUA logs via HEP to Homer server

2018-01-16 Thread Abdul Basit
Hi K-team,

I am processing incoming INVITE events in my lua script.
To print the logs with kamailio syslog, i am using

 sr.log("info", "-- Collecting data from kamailio -- ")

I am searching for a way to send selective logs for an incoming call from
lua script through HEP3 towards Homer server.

How can I make it work? What utility or library is helpful.

*PS:* captagent is configured on the same server for SIP traces.

--
regards,

abdul basit
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] kamailio 5.1 from git compile error

2018-01-16 Thread Abdul Basit
Hi,

I am able to compile kamailio 5.1 now.

Added libphonenumber repo for latest debian packages

echo “deb http://ftp.de.debian.org/debian sid main” >>
/etc/apt/sources.list.d/libphonenumber7.list

apt-get update && apt-get upgrade

Additional updated packages and dependencies to install are

apt install libphonenumber7 libphonenumber-dev libicu57 libprotobuf10
libstdc++6 libgeocoding7 libboost-date-time1.62.0 libboost-filesystem1.62.0
libboost-system1.62.0 libboost-thread1.62.0 libboost-thread-dev

apt install libprotobuf-dev

Once done, kamailio 5.1 was compiled successfully.
I hope this will make someone's life easier.

--
regards,

abdul basit


On 16 January 2018 at 18:48, Abdul Basit <basit.e...@gmail.com> wrote:

> Hi,
>
> I am trying to compile kamailio 5.1 from git following
> https://kamailio.org/docs/tutorials/5.1.x/kamailio-install-guide-git/
>
> on Debian GNU/Linux 8.10 (jessie)
>
> I also installed packages after getting dependency errors
> apt-get install libhiredis-dev libphonenumber6-dev libicu-dev
>
> apt-get install unicode unicode-data
>
> Kamailio compile stopped at error
> .
> LD (gcc) [M uid_avp_db.so]  uid_avp_db.so
> CC (gcc) [M pdb.so] pdb.o
> LD (gcc) [M pdb.so] pdb.so
> CC (gcc) [M phonenum.so]phonenum_mod.o
> CC (gcc) [M phonenum.so]phonenum_pv.o
> Compiling cphonenumber.cpp
> g++ -fPIC -DPIC -g -funroll-loops -Wcast-align -m64 -minline-all-stringops
> -falign-loops -ftree-vectorize -fno-strict-overflow -Wall
> -Wno-write-strings -Wno-deprecated -Wno-unused-f
> unction -Wno-sign-compare -Wno-strict-aliasing -fPIC -DPIC -g
> -funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops
> -ftree-vectorize -fno-strict-overflow -Wall  -DNA
> ME='"kamailio"' -DVERSION='"5.1.0"' -DARCH='"x86_64"' -DOS='linux_'
> -DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.9.2"' -D__CPU_x86_64 -D__OS_linux
> -DSER_VER=5001000 -DCFG_DIR='"/usr/loc
> al/etc/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC
> -DSHM_MEM -DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
> -DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS
> _FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE
> -DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS
> -DUSE_CORE_STATS -DSTATISTICS -DMALLO
> C_STATS -DWITH_AS_SUPPORT -DUSE_SCTP -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 -DHAVE_IP_MREQN -DHAVE_EPOLL -DHAVE_SIGIO_RT
> -DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SE
> LECT  -I/opt/local/include -DKAMAILIO_MOD_INTERFACE
> -DMOD_NAME='"phonenum"' -c cphonenumber.cpp -o cphonenumber.o
> In file included from /usr/include/phonenumbers/
> geocoding/phonenumber_offline_geocoder.h:26:0,
>  from cphonenumber.cpp:24:
> /usr/include/phonenumbers/base/memory/scoped_ptr.h:25:45: fatal error:
> phonenumbers/base/template_util.h: No such file or directory
>  #include "phonenumbers/base/template_util.h"
>  ^
> compilation terminated.
> Makefile:22: recipe for target 'cphonenumber.o' failed
> make[2]: *** [cphonenumber.o] Error 1
> Makefile:511: recipe for target 'modules' failed
> make[1]: *** [modules] Error 1
> make[1]: Leaving directory '/usr/local/src/kamailio/src'
> Makefile:27: recipe for target 'all' failed
> make: *** [all] Error 2
>
> I googled but couldnt found any resolution or required dependency. Its
> look like libphonenumber is broken.
>
> Kindly suggest way out.
>
> Also i don't require libphonenumber for this server. How to get rid off.
>
>
> --
> regards,
>
> abdul basit
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] kamailio 5.1 from git compile error

2018-01-16 Thread Abdul Basit
Hi,

I am trying to compile kamailio 5.1 from git following
https://kamailio.org/docs/tutorials/5.1.x/kamailio-install-guide-git/

on Debian GNU/Linux 8.10 (jessie)

I also installed packages after getting dependency errors
apt-get install libhiredis-dev libphonenumber6-dev libicu-dev

apt-get install unicode unicode-data

Kamailio compile stopped at error
.
LD (gcc) [M uid_avp_db.so]  uid_avp_db.so
CC (gcc) [M pdb.so] pdb.o
LD (gcc) [M pdb.so] pdb.so
CC (gcc) [M phonenum.so]phonenum_mod.o
CC (gcc) [M phonenum.so]phonenum_pv.o
Compiling cphonenumber.cpp
g++ -fPIC -DPIC -g -funroll-loops -Wcast-align -m64 -minline-all-stringops
-falign-loops -ftree-vectorize -fno-strict-overflow -Wall
-Wno-write-strings -Wno-deprecated -Wno-unused-f
unction -Wno-sign-compare -Wno-strict-aliasing -fPIC -DPIC -g
-funroll-loops -Wcast-align -m64 -minline-all-stringops -falign-loops
-ftree-vectorize -fno-strict-overflow -Wall  -DNA
ME='"kamailio"' -DVERSION='"5.1.0"' -DARCH='"x86_64"' -DOS='linux_'
-DOS_QUOTED='"linux"' -DCOMPILER='"gcc 4.9.2"' -D__CPU_x86_64 -D__OS_linux
-DSER_VER=5001000 -DCFG_DIR='"/usr/loc
al/etc/kamailio/"' -DRUN_DIR='"/var/run/kamailio/"' -DPKG_MALLOC -DSHM_MEM
-DSHM_MMAP -DDNS_IP_HACK -DUSE_MCAST -DUSE_TCP -DDISABLE_NAGLE
-DHAVE_RESOLV_RES -DUSE_DNS_CACHE -DUSE_DNS
_FAILOVER -DUSE_DST_BLACKLIST -DUSE_NAPTR -DWITH_XAVP -DMEM_JOIN_FREE
-DF_MALLOC -DQ_MALLOC -DTLSF_MALLOC -DDBG_SR_MEMORY -DUSE_TLS -DTLS_HOOKS
-DUSE_CORE_STATS -DSTATISTICS -DMALLO
C_STATS -DWITH_AS_SUPPORT -DUSE_SCTP -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 -DHAVE_IP_MREQN -DHAVE_EPOLL -DHAVE_SIGIO_RT
-DSIGINFO64_WORKARROUND -DUSE_FUTEX -DHAVE_SE
LECT  -I/opt/local/include -DKAMAILIO_MOD_INTERFACE -DMOD_NAME='"phonenum"'
-c cphonenumber.cpp -o cphonenumber.o
In file included from
/usr/include/phonenumbers/geocoding/phonenumber_offline_geocoder.h:26:0,
 from cphonenumber.cpp:24:
/usr/include/phonenumbers/base/memory/scoped_ptr.h:25:45: fatal error:
phonenumbers/base/template_util.h: No such file or directory
 #include "phonenumbers/base/template_util.h"
 ^
compilation terminated.
Makefile:22: recipe for target 'cphonenumber.o' failed
make[2]: *** [cphonenumber.o] Error 1
Makefile:511: recipe for target 'modules' failed
make[1]: *** [modules] Error 1
make[1]: Leaving directory '/usr/local/src/kamailio/src'
Makefile:27: recipe for target 'all' failed
make: *** [all] Error 2

I googled but couldnt found any resolution or required dependency. Its look
like libphonenumber is broken.

Kindly suggest way out.

Also i don't require libphonenumber for this server. How to get rid off.


--
regards,

abdul basit
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio fail to start with db_mongodb and ndb_mongodb modules

2018-01-08 Thread Abdul Basit
Hi Team,

Any comments/ guidelines?

--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 6 January 2018 at 00:39, Abdul Basit <basit.e...@gmail.com> wrote:

> Hi Daniel & K-Team,
>
> I setup kamailio 5.0.5 from git on vanilla Debian GNU/Linux 8.3 (jessie)
>
> # kamailio -v
> version: kamailio 5.0.5 (x86_64/linux)
> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
> USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
> TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
> USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
> HAVE_RESOLV_RES
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: unknown
> compiled on 16:53:42 Jan  5 2018 with gcc 4.9.2
>
>
> Installed mongodb from debian repo
>
> # dpkg -l | grep mongodb
> ii  mongodb1:3.2.17-1amd64
> object/document-oriented database (metapackage)
> ii  mongodb-clients1:3.2.17-1amd64
> object/document-oriented database (client apps)
> ii  mongodb-dev1:2.4.10-5+deb8u1 amd64
> object/document-oriented database (development)
> ii  mongodb-server 1:3.2.17-1amd64
> object/document-oriented database (server package)
>
> # mongo --version
> MongoDB shell version: 3.2.17
>
> Will try sometime with mongodb latest version 3.6 as well as I will get
> time.
>
> Installed libmongoc driver through sid repo "deb
> http://ftp.de.debian.org/debian sid main"
>
> # dpkg -l | grep libmongoc
> ii  libmongoc-1.0-0  1.9.0+dfsg-1
> amd64MongoDB C client library - runtime files
> ii  libmongoc-dev1.9.0+dfsg-1
> amd64MongoDB C client library - dev files
>
> Kamailio compiled with
>
> # make cfg include_modules="utils app_lua json evapi db_mongodb
> ndb_mongodb"
>
> Created version collection in mongodb
>
> # cat 
> /usr/local/src/kamailio/utils/kamctl/mongodb/kamailio/version-create.mongo
> | mongo
>
> Setup kamailio.cfg as per https://telerain.com/kamailio
>
> This time kamailio started successfully without any crash :)
>
> -
>
> Now its time to use mongodb for kamailio backend database.
>
> Used default kamailio configuration and defined mongodb connection as
>
> #!define DBURL "mongodb://localhost/kamailio"
>
> I enabled WITH_USRLOCDB [#!define WITH_USRLOCDB], kamailio refuse to
> start with errors.
>
> Jan  5 19:16:05 kmaongo kamailio: CRITICAL:  [core/cfg.y:3411]:
> yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg,
> line 365, column 30-34: syntax error
> Jan  5 19:16:05 kmaongo kamailio: CRITICAL:  [core/cfg.y:3411]:
> yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg,
> line 365, column 30-34: Invalid arguments
> Jan  5 19:16:05 kmaongo kamailio: CRITICAL:  [core/cfg.y:3414]:
> yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg,
> line 365, column 35:
> Jan  5 19:16:05 kmaongo kamailio[28067]: ERROR: bad config file (3 errors)
> Jan  5 19:16:05 kmaongo kamailio: WARNING:  [core/ppcfg.c:221]:
> pp_ifdef_level_check(): different number of preprocessor directives:
> N(#!IF[N]DEF) - N(#!ENDIF) = 1
> Jan  5 19:16:05 kmaongo kamailio: INFO:  [core/sctp_core.c:53]:
> sctp_core_destroy(): SCTP API not initialized
> Jan  5 19:16:05 kmaongo systemd[1]: kamailio.service: control process
> exited, code=exited status=255
> [FAILJan  5 19:16:05 kmaongo systemd[1]: Failed to start Kamailio
> (OpenSER) - the Open Source SIP Server.
> Jan  5 19:16:05 kmaongo systemd[1]: Unit kamailio.service entered failed
> state.
>  failed!
>
>
> Default userloc params in kamailio.cfg states line 365 as
>
> # - usrloc params -
> /* enable DB persistency for location entries */
> #!ifdef WITH_USRLOCDB
> modparam("usrloc", "db_url", DBURL) [ << line 365 ]
> modparam("usrloc", "db_mode", 2)
> modparam("usrloc", "use_domain", MULTIDOMAIN)
> modparam("usrloc", "db_insert_null", 1)
> #!endif
>
> I created location collection as well but it didn't help.
>
> I experienced same error when I enable WITH_ACCDB or any other section
> that use DBURL.
>
>1. Whats the syntax error here?
>2. Is there any special configuration required to work with mongodb?
>3. How can we create collections using 'kamdbctl create' ?
>
> What else should I 

[SR-Users] Kamailio fail to start with db_mongodb and ndb_mongodb modules

2018-01-05 Thread Abdul Basit
Hi Daniel & K-Team,

I setup kamailio 5.0.5 from git on vanilla Debian GNU/Linux 8.3 (jessie)

# kamailio -v
version: kamailio 5.0.5 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 16:53:42 Jan  5 2018 with gcc 4.9.2


Installed mongodb from debian repo

# dpkg -l | grep mongodb
ii  mongodb1:3.2.17-1amd64
object/document-oriented database (metapackage)
ii  mongodb-clients1:3.2.17-1amd64
object/document-oriented database (client apps)
ii  mongodb-dev1:2.4.10-5+deb8u1 amd64
object/document-oriented database (development)
ii  mongodb-server 1:3.2.17-1amd64
object/document-oriented database (server package)

# mongo --version
MongoDB shell version: 3.2.17

Will try sometime with mongodb latest version 3.6 as well as I will get
time.

Installed libmongoc driver through sid repo "deb
http://ftp.de.debian.org/debian sid main"

# dpkg -l | grep libmongoc
ii  libmongoc-1.0-0  1.9.0+dfsg-1
amd64MongoDB C client library - runtime files
ii  libmongoc-dev1.9.0+dfsg-1
amd64MongoDB C client library - dev files

Kamailio compiled with

# make cfg include_modules="utils app_lua json evapi db_mongodb ndb_mongodb"

Created version collection in mongodb

# cat /usr/local/src/kamailio/utils/kamctl/mongodb/kamailio/version-create.mongo
| mongo

Setup kamailio.cfg as per https://telerain.com/kamailio

This time kamailio started successfully without any crash :)

-

Now its time to use mongodb for kamailio backend database.

Used default kamailio configuration and defined mongodb connection as

#!define DBURL "mongodb://localhost/kamailio"

I enabled WITH_USRLOCDB [#!define WITH_USRLOCDB], kamailio refuse to start
with errors.

Jan  5 19:16:05 kmaongo kamailio: CRITICAL:  [core/cfg.y:3411]:
yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg,
line 365, column 30-34: syntax error
Jan  5 19:16:05 kmaongo kamailio: CRITICAL:  [core/cfg.y:3411]:
yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg,
line 365, column 30-34: Invalid arguments
Jan  5 19:16:05 kmaongo kamailio: CRITICAL:  [core/cfg.y:3414]:
yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg,
line 365, column 35:
Jan  5 19:16:05 kmaongo kamailio[28067]: ERROR: bad config file (3 errors)
Jan  5 19:16:05 kmaongo kamailio: WARNING:  [core/ppcfg.c:221]:
pp_ifdef_level_check(): different number of preprocessor directives:
N(#!IF[N]DEF) - N(#!ENDIF) = 1
Jan  5 19:16:05 kmaongo kamailio: INFO:  [core/sctp_core.c:53]:
sctp_core_destroy(): SCTP API not initialized
Jan  5 19:16:05 kmaongo systemd[1]: kamailio.service: control process
exited, code=exited status=255
[FAILJan  5 19:16:05 kmaongo systemd[1]: Failed to start Kamailio (OpenSER)
- the Open Source SIP Server.
Jan  5 19:16:05 kmaongo systemd[1]: Unit kamailio.service entered failed
state.
 failed!


Default userloc params in kamailio.cfg states line 365 as

# - usrloc params -
/* enable DB persistency for location entries */
#!ifdef WITH_USRLOCDB
modparam("usrloc", "db_url", DBURL) [ << line 365 ]
modparam("usrloc", "db_mode", 2)
modparam("usrloc", "use_domain", MULTIDOMAIN)
modparam("usrloc", "db_insert_null", 1)
#!endif

I created location collection as well but it didn't help.

I experienced same error when I enable WITH_ACCDB or any other section that
use DBURL.

   1. Whats the syntax error here?
   2. Is there any special configuration required to work with mongodb?
   3. How can we create collections using 'kamdbctl create' ?

What else should I share for resolving the issue?

--
regards,

abdul basit

On 4 January 2018 at 12:50, Abdul Basit <basit.e...@gmail.com> wrote:

> Hi Daniel,
>
> Thank you for your reply.
>
> I tested libmongoc with debian package available with repo. Then I moved
> to compile from source. result was same.
>
> But i will try it again with fresh installation and will post here.
>
> --
> regards,
>
> abdul basit
>
> On 2 January 2018 at 16:38, Daniel-Constantin Mierla <mico...@gmail.com>
> wrote:
>
>> Hello,
>>
>> the issue happens inside mongoc library. Have you tried with the default
>> one from Debian, without compiling it from sources?
>>
>> Chee

Re: [SR-Users] Kamailio fail to start with db_mongodb and ndb_mongodb modules

2018-01-04 Thread Abdul Basit
Hi Daniel,

Thank you for your reply.

I tested libmongoc with debian package available with repo. Then I moved to
compile from source. result was same.

But i will try it again with fresh installation and will post here.


--
regards,

abdul basit

On 2 January 2018 at 16:38, Daniel-Constantin Mierla <mico...@gmail.com>
wrote:

> Hello,
>
> the issue happens inside mongoc library. Have you tried with the default
> one from Debian, without compiling it from sources?
>
> Cheers,
> Daniel
>
> On 01.01.18 16:51, Abdul Basit wrote:
>
> Hi,
>
> My last email was help for admin review.
>
> Sharing logs through pastebin https://pastebin.com/6HhdYLJK
>
> Interesting part will start from line 983 where it start initializing
> ndb_mongodb.
>
>
>
> On 1 January 2018 at 20:32, Abdul Basit <basit.e...@gmail.com> wrote:
>
>> Hi,
>>
>> I enabled but kamailio didn't generate any dump file
>> To enable code dump followed https://www.kamailio.org/dokuw
>> iki/doku.php/troubleshooting:corefiles
>>
>> I also un-commented lines in /etc/init.d/kamailio script
>>
>> if test "$DUMP_CORE" = "yes" ; then
>> # set proper ulimit
>> ulimit -c unlimited
>>
>> # directory for the core dump files
>> COREDIR=/tmp/corefiles
>> [ -d $COREDIR ] || mkdir -p $COREDIR
>> chmod 777 $COREDIR
>> echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
>> fi
>>
>>
>> I think reason is that kamailio process didn't exit after crash and keep
>> on restarting. each time with new PID.
>>
>> However, debug file is attached. I hope this will help.
>>
>>
>> --
>> regards,
>>
>> abdul basit
>>
>> On 29 December 2017 at 20:11, M S <shaherya...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> Enable core dump and provide backtrace of sigfault. See this for more
>>> info,
>>>
>>> https://sourceware.org/gdb/onlinedocs/gdb/Backtrace.html
>>>
>>> Thank you.
>>>
>>>
>>>
>>> On Fri, Dec 29, 2017 at 12:25 PM, Abdul Basit <basit.e...@gmail.com>
>>> wrote:
>>>
>>>> Adding further from https://stackoverflow.com/ques
>>>> tions/2549214/interpreting-segfault-messages
>>>>
>>>> error 6 means, fault is
>>>>
>>>> *  bit 2 == 1 means kernel, 1 means user-mode
>>>> *  bit 4 == 1 means fault was an instruction fetch
>>>>
>>>>
>>>> That looks like kamailio is trying to invoke for db connection where
>>>> libmongo-c don't like to be.
>>>>
>>>> --
>>>> regards,
>>>>
>>>> abdul basit
>>>>
>>>>
>>>> On 29 December 2017 at 15:39, Abdul Basit <basit.e...@gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> I am trying to setup mongo db as database engine for kamailio as
>>>>> described at
>>>>> <http://www.kamailio.org/wiki/tutorials/kamailio-and-mongodb>
>>>>> http://www.kamailio.org/wiki/tutorials/kamailio-and-mongodb
>>>>> and
>>>>> https://telerain.com/kamailio
>>>>>
>>>>> OS: Debian GNU/Linux 8.10 (jessie)
>>>>> MongoDB server version: 3.4.10
>>>>> mongo-c-driver-1.9.0.tar.gz compiled with
>>>>> ./configure --disable-static --disable-silent-rules
>>>>> --enable-debug-symbols --enable-ssl=no --enable-sasl=yes
>>>>> --with-libbson=bundled --enable-optimizations 
>>>>> --disable-automatic-init-and-c
>>>>> leanup
>>>>>
>>>>> version: kamailio 5.0.4 (x86_64/linux)
>>>>> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
>>>>> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
>>>>> Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
>>>>> FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
>>>>> USE_DST_BLACKLIST, HAVE_RESOLV_RES
>>>>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
>>>>> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
>>>>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>>>>> id: unknown
>>>>> compiled on 20:45:44 Dec 27 2017 with gcc 4.9.2
>>>>>
>>>>> include_modules= utils app_lua db_postgres jso

Re: [SR-Users] Kamailio fail to start with db_mongodb and ndb_mongodb modules

2018-01-01 Thread Abdul Basit
Hi,

My last email was help for admin review.

Sharing logs through pastebin https://pastebin.com/6HhdYLJK

Interesting part will start from line 983 where it start initializing
ndb_mongodb.



On 1 January 2018 at 20:32, Abdul Basit <basit.e...@gmail.com> wrote:

> Hi,
>
> I enabled but kamailio didn't generate any dump file
> To enable code dump followed https://www.kamailio.org/dokuwiki/doku.php/
> troubleshooting:corefiles
>
> I also un-commented lines in /etc/init.d/kamailio script
>
> if test "$DUMP_CORE" = "yes" ; then
> # set proper ulimit
> ulimit -c unlimited
>
> # directory for the core dump files
> COREDIR=/tmp/corefiles
> [ -d $COREDIR ] || mkdir -p $COREDIR
> chmod 777 $COREDIR
> echo "$COREDIR/core.%e.sig%s.%p" > /proc/sys/kernel/core_pattern
> fi
>
>
> I think reason is that kamailio process didn't exit after crash and keep
> on restarting. each time with new PID.
>
> However, debug file is attached. I hope this will help.
>
>
> --
> regards,
>
> abdul basit
>
> On 29 December 2017 at 20:11, M S <shaherya...@gmail.com> wrote:
>
>> Hi,
>>
>> Enable core dump and provide backtrace of sigfault. See this for more
>> info,
>>
>> https://sourceware.org/gdb/onlinedocs/gdb/Backtrace.html
>>
>> Thank you.
>>
>>
>>
>> On Fri, Dec 29, 2017 at 12:25 PM, Abdul Basit <basit.e...@gmail.com>
>> wrote:
>>
>>> Adding further from https://stackoverflow.com/ques
>>> tions/2549214/interpreting-segfault-messages
>>>
>>> error 6 means, fault is
>>>
>>> *  bit 2 == 1 means kernel, 1 means user-mode
>>> *  bit 4 == 1 means fault was an instruction fetch
>>>
>>> That looks like kamailio is trying to invoke for db connection where
>>> libmongo-c don't like to be.
>>>
>>> --
>>> regards,
>>>
>>> abdul basit
>>>
>>>
>>> On 29 December 2017 at 15:39, Abdul Basit <basit.e...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am trying to setup mongo db as database engine for kamailio as
>>>> described at
>>>> <http://www.kamailio.org/wiki/tutorials/kamailio-and-mongodb>
>>>> http://www.kamailio.org/wiki/tutorials/kamailio-and-mongodb
>>>> and
>>>> https://telerain.com/kamailio
>>>>
>>>> OS: Debian GNU/Linux 8.10 (jessie)
>>>> MongoDB server version: 3.4.10
>>>> mongo-c-driver-1.9.0.tar.gz compiled with
>>>> ./configure --disable-static --disable-silent-rules
>>>> --enable-debug-symbols --enable-ssl=no --enable-sasl=yes
>>>> --with-libbson=bundled --enable-optimizations 
>>>> --disable-automatic-init-and-c
>>>> leanup
>>>>
>>>> version: kamailio 5.0.4 (x86_64/linux)
>>>> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
>>>> DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
>>>> Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX,
>>>> FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR,
>>>> USE_DST_BLACKLIST, HAVE_RESOLV_RES
>>>> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
>>>> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
>>>> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
>>>> id: unknown
>>>> compiled on 20:45:44 Dec 27 2017 with gcc 4.9.2
>>>>
>>>> include_modules= utils app_lua db_postgres json evapi db_mongodb
>>>> ndb_mongodb
>>>>
>>>> Kamailio is crashing with segfault as soon as it try to load libmongo-c
>>>>
>>>> Dec 28 04:44:14 sipserver systemd[1]: Starting Kamailio (OpenSER) - the
>>>> Open Source SIP Server...
>>>> Dec 28 04:44:14 sipserver kamailio: INFO:  [core/sctp_core.c:75]:
>>>> sctp_core_check_support(): SCTP API not enabled - if you want to use it,
>>>> load sctp module
>>>> Dec 28 04:44:14 sipserver kamailio: INFO: 
>>>> [core/tcp_main.c:4671]: init_tcp(): using epoll_lt as the io watch method
>>>> (auto detected)
>>>> Dec 28 04:44:14 sipserver kamailio[11685]: Listening on
>>>> Dec 28 04:44:14 sipserver kamailio[11685]: udp: 127.0.0.1:5060
>>>> Dec 28 04:44:14 sipserver kamailio[11685]: udp: 192.168.10.20:5060
>>>> Dec 28 04:44:14 sipserver kamailio[11685]: tcp: 127.0.0.1:5060
>>>> Dec

Re: [SR-Users] Kamailio fail to start with db_mongodb and ndb_mongodb modules

2017-12-29 Thread Abdul Basit
Adding further from
https://stackoverflow.com/questions/2549214/interpreting-segfault-messages

error 6 means, fault is

*  bit 2 == 1 means kernel, 1 means user-mode
*  bit 4 == 1 means fault was an instruction fetch

That looks like kamailio is trying to invoke for db connection where
libmongo-c don't like to be.

--
regards,

abdul basit


On 29 December 2017 at 15:39, Abdul Basit <basit.e...@gmail.com> wrote:

> Hi,
>
> I am trying to setup mongo db as database engine for kamailio as described
> at
> <http://www.kamailio.org/wiki/tutorials/kamailio-and-mongodb>
> http://www.kamailio.org/wiki/tutorials/kamailio-and-mongodb
> and
> https://telerain.com/kamailio
>
> OS: Debian GNU/Linux 8.10 (jessie)
> MongoDB server version: 3.4.10
> mongo-c-driver-1.9.0.tar.gz compiled with
> ./configure --disable-static --disable-silent-rules --enable-debug-symbols
> --enable-ssl=no --enable-sasl=yes --with-libbson=bundled
> --enable-optimizations --disable-automatic-init-and-cleanup
>
> version: kamailio 5.0.4 (x86_64/linux)
> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
> USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
> TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
> USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
> HAVE_RESOLV_RES
> ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
> MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
> poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
> id: unknown
> compiled on 20:45:44 Dec 27 2017 with gcc 4.9.2
>
> include_modules= utils app_lua db_postgres json evapi db_mongodb
> ndb_mongodb
>
> Kamailio is crashing with segfault as soon as it try to load libmongo-c
>
> Dec 28 04:44:14 sipserver systemd[1]: Starting Kamailio (OpenSER) - the
> Open Source SIP Server...
> Dec 28 04:44:14 sipserver kamailio: INFO:  [core/sctp_core.c:75]:
> sctp_core_check_support(): SCTP API not enabled - if you want to use it,
> load sctp module
> Dec 28 04:44:14 sipserver kamailio: INFO:  [core/tcp_main.c:4671]:
> init_tcp(): using epoll_lt as the io watch method (auto detected)
> Dec 28 04:44:14 sipserver kamailio[11685]: Listening on
> Dec 28 04:44:14 sipserver kamailio[11685]: udp: 127.0.0.1:5060
> Dec 28 04:44:14 sipserver kamailio[11685]: udp: 192.168.10.20:5060
> Dec 28 04:44:14 sipserver kamailio[11685]: tcp: 127.0.0.1:5060
> Dec 28 04:44:14 sipserver kamailio[11685]: tcp: 192.168.10.20:5060
> Dec 28 04:44:14 sipserver kamailio[11685]: Aliases:
> Dec 28 04:44:14 sipserver kamailio[11685]: tcp: localhost:5060
> Dec 28 04:44:14 sipserver kamailio[11685]: udp: localhost:5060
> Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: rr
> [../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe
> module is not loaded
> Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: rr
> [rr_mod.c:175]: mod_init(): outbound module not available
> Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: 
> [core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is initially
> 212992
> Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: 
> [core/udp_server.c:203]: probe_max_receive_buffer(): SO_RCVBUF is finally
> 425984
> Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: 
> [core/udp_server.c:153]: probe_max_receive_buffer(): SO_RCVBUF is initially
> 212992
> Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: 
> [core/udp_server.c:203]: probe_max_receive_buffer(): SO_RCVBUF is finally
> 425984
> Dec 28 04:44:14 sipserver systemd[1]: Started Kamailio (OpenSER) - the
> Open Source SIP Server.
> Dec 28 04:44:14 sipserver kernel: [53109.390171] show_signal_msg: 20
> callbacks suppressed
> Dec 28 04:44:14 sipserver kernel: [53109.390176] kamailio[11696] segfault
> at 78 ip 7f690c0e6e98 sp 7ffcde1a4770 error 6 in
> libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
> Dec 28 04:44:14 sipserver kernel: [53109.390753] kamailio[11694] segfault
> at 78 ip 7f690c0e6e98 sp 7ffcde1a4770 error 6 in
> libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
> Dec 28 04:44:14 sipserver kernel: [53109.391605] kamailio[11698] segfault
> at 78 ip 7f690c0e6e98 sp 7ffcde1a4770 error 6 in
> libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
> Dec 28 04:44:14 sipserver kernel: [53109.392073] kamailio[11701] segfault
> at 78 ip 7f690c0e6e98 sp 7ffcde1a4770 error 6 in
> libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
> Dec 28 04:44:14 sipserver kernel: [53109.392408] kamailio[11692] segfault
> at 78 ip 7f690c0e6e98 sp 7ffcde1a4770 error 6 in
> libmongoc-1.0.so.0.0.0[7f690c0ca000+6e000]
> Dec 28 04:44:14 sipserver kernel: [53109.3

[SR-Users] Kamailio fail to start with db_mongodb and ndb_mongodb modules

2017-12-29 Thread Abdul Basit
: core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: CRITICAL: 
[core/pass_fd.c:277]: receive_fd(): EOF on 47
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: 
[main.c:743]: handle_sigs(): child process 11714 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: 
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: 
[main.c:743]: handle_sigs(): child process 11715 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: 
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: 
[main.c:743]: handle_sigs(): child process 11716 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: 
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: 
[main.c:743]: handle_sigs(): child process 11717 exited by a signal 11
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: ALERT: 
[main.c:746]: handle_sigs(): core was not generated
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: 
[main.c:768]: handle_sigs(): terminating due to SIGCHLD
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11718]: INFO: 
[main.c:823]: sig_usr(): signal 15 received
Dec 28 04:44:14 sipserver /usr/local/sbin/kamailio[11687]: INFO: 
[core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
Dec 28 04:44:14 sipserver systemd[1]: kamailio.service: main process
exited, code=exited, status=1/FAILURE
Dec 28 04:44:14 sipserver systemd[1]: Unit kamailio.service entered failed
state.


As I tried googling the issue and found few issues with tls connection.
I set in default kamailio.cfg but still facing the saem issue.

enable_tls=no
...
loadmodule "ndb_mongodb.so"
modparam("ndb_mongodb", "server",
"name=cgr91rc8;uri='mongodb://localhost/kamailio'")

Its mongodb default installation and its accessible without any auth yet.


Please suggest the way farward.

--
regards,

abdul basit
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] evapi_async_relay() failed

2017-11-07 Thread Abdul Basit
Hi list,

I am configuring CGRateS with kamailio 4.4 using deb packages on debian 8.

I am facing a issue while processing event_route[dialog:start] for
answering call INVITE at
evapi_async_relay("{\"event\":\"CGR_CALL_START\",

with following error

/usr/sbin/kamailio[13887]: ERROR: evapi [evapi_mod.c:288]:
w_evapi_async_relay(): failed to suspend request processing

However, after discussion with Dan on IRC i replaced function
evapi_async_relay() with evapi_relay() resolved the issue.

Whats causing this error?
Can anyone suggest some way out for keep using evapi_async_relay?

--
regards,

abdul basit
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] module version mismatch for /usr/local/lib64/kamailio/modules/kex.so

2017-10-31 Thread Abdul Basit
Hi Daniel,

Thank you for your reply.

I installed kamailio 5.0.3 on a fresh debian machine and then upgraded to
version 5.0.4 via git.

It worked fine without issue. No need to upgrade DB schema as well.

I installed previously from packages. Later i removed the modules and
reinstall from git source.

but i forgot to update kamailio binary location from /usr/sbin/kamailio
(older one 5.0.3) to /usr/local/sbin/kamailio (5.0.4)

Issue resolved :)


--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 31 October 2017 at 14:17, Daniel-Constantin Mierla <mico...@gmail.com>
wrote:

> Hello,
>
> according to the logs, the main app binary is a different version, so
> kamailio is v5.0.3 and the kex module is v5.0.4.
>
> Maybe you also installed kamailio from packages, check to see what is the
> path to kamailio binary inside /etc/init.d/kamailio.
>
> You can also do 'which kamailio' to see where is the first binary found in
> the execution paths.
>
> Cheers,
> Daniel
>
> On 31.10.17 08:34, Abdul Basit wrote:
>
> Hi,
>
> My kamailio installation with 5.0.3 was working fine.
> I update kamailio source to 5.0.4 and make all; make install
>
> I started receiving error below:
>
> /etc/init.d/kamailio start
> [FAIL] Not starting Kamailio SIP Server: invalid configuration file! ...
> failed!
>  failed!
> [] 0(7426) ERROR:  [core/sr_module.c:431]: version_control():
> module version mismatch for /usr/local/lib64/kamailio/modules/kex.so;
> core: kamailio 5.0.3 (x86_64/lin[FAILmodule: kamailio 5.0.4 (x86_64/linux)
> ... failed!
>  failed!
>
> kamailio.cfg is same as earlier.
>
> I removed kamailio sources and modules folder /usr/local/lib64/kamailio/
> modules/
> I also dropped old kamailio postgres database and created new one after
> fresh source install of version 5.0.4 from git.
>
> # git clone https://github.com/kamailio/kamailio kamailio
> # cd kamailio
> # git checkout -b 5.0 origin/5.0
>
> But this error persists.
>
> Whats the resolution? Is this a bug?
>
> --
> regards,
>
> abdul basit
>
>
> ___
> Kamailio (SER) - Users Mailing 
> Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlawww.twitter.com/miconda -- www.linkedin.com/in/miconda
> Kamailio Advanced Training, Nov 13-15, 2017, in Berlin - www.asipto.com
> Kamailio World Conference - www.kamailioworld.com
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] module version mismatch for /usr/local/lib64/kamailio/modules/kex.so

2017-10-31 Thread Abdul Basit
Hi,

My kamailio installation with 5.0.3 was working fine.
I update kamailio source to 5.0.4 and make all; make install

I started receiving error below:

/etc/init.d/kamailio start
[FAIL] Not starting Kamailio SIP Server: invalid configuration file! ...
failed!
 failed!
[] 0(7426) ERROR:  [core/sr_module.c:431]: version_control():
module version mismatch for /usr/local/lib64/kamailio/modules/kex.so; core:
kamailio 5.0.3 (x86_64/lin[FAILmodule: kamailio 5.0.4 (x86_64/linux) ...
failed!
 failed!

kamailio.cfg is same as earlier.

I removed kamailio sources and modules folder
/usr/local/lib64/kamailio/modules/
I also dropped old kamailio postgres database and created new one after
fresh source install of version 5.0.4 from git.

# git clone https://github.com/kamailio/kamailio kamailio
# cd kamailio
# git checkout -b 5.0 origin/5.0

But this error persists.

Whats the resolution? Is this a bug?

--
regards,

abdul basit
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] custom kamailio-x.deb package

2017-10-12 Thread Abdul Basit
Hi,

Yes. I can see the debian folder that contain the control and rules files.
I have managed to build and install the custom kamailio packages by
updating control and rules files.
But now i am stuck with the issues that while install with apt-get install
kamailio503*

its also ask to install kamailio-* packages from public repo.

Like i want to install kamailio503-mysql-modules.deb but in addition to
that apt-get also installs kamailio-mysql-modules:amd64
To prevent that, i created my own local repo and removed all other entries
from /etc/apt/source.list

echo "deb http://192.168.10.23/packages/amd64/ /" > /etc/apt/sources.list

Now getting below errors:

dpkg: dependency problems prevent configuration of
kamailio-mysql-modules:amd64:
 kamailio-mysql-modules:amd64 depends on kamailio (= 5.0.3-1); however:
  Package kamailio is not configured yet.

dpkg: error processing package kamailio-mysql-modules:amd64 (--configure):
 dependency problems - leaving unconfigured

How can i avoid this situation?
Where to make changes to limit to my customized packages only even public
repo is available in "/etc/apt/sources.list"

I am almost stuck here. Kindly help.


--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 6 October 2017 at 20:02, Sebastian Damm <d...@sipgate.de> wrote:

> Hi,
>
> did you see that there are debian folders coming with your kamailio
> source code? I think all you have to do is symlink the correct folder
> to the root project folder so it is accessible under
> /path/to/kamailio-sources/debian and you should be ready to go. Then
> your dpkg-buildpackage command should have everything you need.
>
> HTH
> Sebastian
>
> On Mon, Oct 2, 2017 at 10:31 PM, Abdul Basit <basit.e...@gmail.com> wrote:
> > Hi All,
> >
> > I am trying to compile custom .deb package from kamailio source that will
> > install dependencies like mysql-server, lua, rtpproxy, etc. and will
> install
> > few custom scripts along with additional db tables from tables-create.sql
> > files.
> >
> > I am able to create kamailio_x-amd64.deb package that I installed on
> fresh
> > machine
> > dpkg -i  kamailio_x-amd64.deb
> >
> > This package installed kamailio config files and modules in appropriate
> > locations but it didn't created default, init.d and kamailio.service
> files.
> > Nor it asked for installing the dependencies which I mentioned in control
> > file.
> >
> > OS: Debian GNU/Linux 8.9 (jessie)
> > Kamailio: 5.0.3 through git clone
> >
> > I am creating .deb package for the very 1st time. Can anyone point me to
> the
> > right direction?
> >
> > --
> > regards,
> >
> > abdul basit
> >
> > ___
> > Kamailio (SER) - Users Mailing List
> > sr-users@lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> >
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] custom kamailio-x.deb package

2017-10-02 Thread Abdul Basit
Hi All,

I am trying to compile custom .deb package from kamailio source that will
install dependencies like mysql-server, lua, rtpproxy, etc. and will
install few custom scripts along with additional db tables from
tables-create.sql files.

I am able to create kamailio_x-amd64.deb package that I installed on fresh
machine
dpkg -i  kamailio_x-amd64.deb

This package installed kamailio config files and modules in appropriate
locations but it didn't created default, init.d and kamailio.service files.
Nor it asked for installing the dependencies which I mentioned in control
file.

OS: Debian GNU/Linux 8.9 (jessie)
Kamailio: 5.0.3 through git clone

I am creating .deb package for the very 1st time. Can anyone point me to
the right direction?

--
regards,

abdul basit
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Handeling Proxy Cancel event

2017-08-25 Thread Abdul Basit
Hi Sebastian,

Thank you for your reply.
I have handled CANCEL in case of 408 in failure route as you suggested.
This part has been done.

However, for proxy generated CANCEL, i need to intimate that call was
answered else where and have to add this event in custom event logs.
I am receiving 487 in onreply-route but its true for all types of CANCELs.
If i know the CANCEL type, i can log EDR (events detail records).

I am trying to look around for event_route but no success yet.

event_route [tm:local-request] { # Handle locally generated requests
  xlog("L_INFO", "Routing locally generated $rm to <$ru>\n");}


--
regards,

abdul basit

On 25 August 2017 at 01:28, Sebastian Damm <d...@sipgate.de> wrote:

> Hi,
>
> On Thu, Aug 24, 2017 at 10:05 PM, Abdul Basit <basit.e...@gmail.com>
> wrote:
> > I am trying to capture and distinguish two types of cancels generated by
> > kamailio.
> > 1- Cancel when Invite timeout 408
>
> You can catch this one in failure route. Whenever an INVITE times out
> and you have set t_on_failure(someroute) before, you end up in the
> failure route named someroute.
>
> > 2- Cancel generated when call lands on multiple devices and any one of
> them
> > answer the call.
>
> I don't know whether those actually run through any route.
>
> > How can I capture and isolate these proxy generated CANCEL events?
>
> What's the purpose of distinguishing those two CANCELs?
>
> Regards
> Sebastian
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Handeling Proxy Cancel event

2017-08-24 Thread Abdul Basit
Hi,

I am trying to capture and distinguish two types of cancels generated by
kamailio.
1- Cancel when Invite timeout 408
2- Cancel generated when call lands on multiple devices and any one of them
answer the call.
This type of cancel comes with (rfc3326)
Reason: SIP;cause=200;text="Call completed elsewhere"

How can I capture and isolate these proxy generated CANCEL events?

--
regards,

abdul basit
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] [OpenSIPS-Users] ClueCon Slides: Industrial Grade FreeSWITCH, Scaling, Balancing, High Availability, SIP, WebRTC

2017-08-11 Thread Abdul Basit
nice presentation!!!

--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 10 August 2017 at 23:12, Giovanni Maruzzelli <gmar...@gmail.com> wrote:

> *Industrial Grade FreeSWITCH Scaling, Balancing and High Availability for
> SIP and WebRTC*
>
> Scaling your FreeSWITCH platform to serve a growing user base is a
> critical challenge. We'll go through the best techniques, practices, and
> implementations for Voice and Video Calls, Conferencing, WebRTC, SIP,
> Chatting, Presence and Instant Messaging
> Slides can also be downloaded from http://opentelecom.it/cluecon2017.pdf
>
> Enjoy ClueCon!
>
> -giovanni
>
> --
>
> Sincerely,
>
> Giovanni Maruzzelli
> OpenTelecom.IT
> cell: +39 347 266 56 18
>
> ___
> Users mailing list
> us...@lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] issue sending http_async_client POST request

2017-07-13 Thread Abdul Basit
Well. I found the issue.

I coordinated with service provider. They don't support json which was the
main cause.
However, i suggest to extend example further with

# POST
$http_req(hdr) = "Content-Type: application/x-www-form-urlencoded";
$http_req(body) = "r_uri=$rU_uri=$fU";
http_async_query("http://example.com/test.php;, "HTTP_REPLY");

I hope this will save others time.

--
regards,

abdul basit | p: +92 32 1416 4196 | o: +92 30 0841 1445

On 13 July 2017 at 16:49, Abdul Basit <basit.e...@gmail.com> wrote:

> Hi, Brandon and Federico
>
> Thank you for your reply.
>
> Web server is not in my access and since its https request tcpdump will
> not help until i get specific certificates. I replaced the URL here.
> Yes. 400 response is from server side.
>
> # POST
> $http_req(body) = "r_uri=$rU_uri=$fU";
> http_async_query("https://example.com/test.php;, "HTTP_REPLY");
>
> Its working fine without any header specification.
>
> However, when i try to send in the example format:
>
> # POST
> $http_req(hdr) = "Content-Type: application/json";
> $http_req(method) = "POST";
> $http_req(body) = "{'r_uri':'" + $rU + "', 'f_uri':'" + $fU + "'}";
> http_async_query("https://example.com/test.php;, "HTTP_REPLY");
>
> It results in
> INFO: 

Re: [SR-Users] issue sending http_async_client POST request

2017-07-13 Thread Abdul Basit
Hi, Brandon and Federico

Thank you for your reply.

Web server is not in my access and since its https request tcpdump will not
help until i get specific certificates. I replaced the URL here.
Yes. 400 response is from server side.

# POST
$http_req(body) = "r_uri=$rU_uri=$fU";
http_async_query("https://example.com/test.php;, "HTTP_REPLY");

Its working fine without any header specification.

However, when i try to send in the example format:

# POST
$http_req(hdr) = "Content-Type: application/json";
$http_req(method) = "POST";
$http_req(body) = "{'r_uri':'" + $rU + "', 'f_uri':'" + $fU + "'}";
http_async_query("https://example.com/test.php;, "HTTP_REPLY");

It results in
INFO: 

[SR-Users] issue sending http_async_client POST request

2017-07-13 Thread Abdul Basit
Hi folks,

I am using  kamailio -v
version: kamailio 5.0.2 (x86_64/linux)
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, DISABLE_NAGLE,
USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC,
TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT,
USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST,
HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16,
MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled on 10:02:27 Jul  4 2017 with gcc 4.9.2


I was trying to send http POST request to my web server example.com
following example Example 1.12. http_async_query() usage


https://www.kamailio.org/docs/modules/5.0.x/modules/http_async_client.html

according to that we should send parameters in body like

# POST
$http_req(body) = "{'r_uri':'" + $rU + "', 'f_uri':'" + $fU + "'}";
http_async_query("http://example.com/test.php;, "HTTP_REPLY");

But its not working out of the box as described with error message from
server:

INFO: 

[SR-Users] issue sending http_async_client POST request

2017-07-13 Thread Abdul Basit
Hi folks,

I am using

I was trying to send http POST request to my web server example.com
following example Example 1.12. http_async_query() usage


https://www.kamailio.org/docs/modules/5.0.x/modules/http_async_client.html

according to that we should send parameters in body like

# POST
$http_req(body) = "{'r_uri':'" + $rU + "', 'f_uri':'" + $fU + "'}";
http_async_query("http://example.com/test.php;, "HTTP_REPLY");

But its not working out of the box as described with error message from
server:

INFO: