Re: [SR-Users] VERY IMPORTANT: deciding when to remove the MI code

2017-01-05 Thread Daniel-Constantin Mierla
Hello, I think I found the issue -- an improper pointer was passed to rpc struct_add. Fetch again master and try to see if this time all goes ok. Cheers, Daniel On 05/01/2017 09:47, Yasin CANER wrote: > > Hello; > > it gives error as below. > > Cheers. > > [root@Test master]# 10(29238) ERR

Re: [SR-Users] Kamailio parse failed message

2017-01-05 Thread Hai Bui Duc Ha
Hello Daniel, Thank for reply ! do you have the pcap for such message? Here is the message, I capture via Wireshark on client: *Session Initiation Protocol (INVITE)* *Request-Line: INVITE sip:buiducha...@happy.anttel-pro.ab-kz-02.antbuddy.com SIP/2.0* *Message Header* *Via: SIP/

Re: [SR-Users] presentity tabla, faster update when drop TCP/TLS connection

2017-01-05 Thread João Resende
Hello, I already open the issue https://github.com/kamailio/kamailio/issues/915 I can try to help :) Best, João 2017-01-05 7:59 GMT+00:00 Daniel-Constantin Mierla : > Hello, > > I got distracted by other tasks and then the winter holidays. Can you open > an item on: > > - https://github.com/

Re: [SR-Users] using kamailio to forward ipv6 to ipv4

2017-01-05 Thread anfecora
Yes i am planning on proxing media. The case is that client will only talk ipv6 but the registrar only have ipv4 connectivity. Therefore need to create a proxy to translate this dialogs. thnking on using kamailio to receive the registration modify the packets and forward registrations in ipv4. I w

Re: [SR-Users] using kamailio to forward ipv6 to ipv4

2017-01-05 Thread anfecora
Yes i am planning on proxing media. The case is that client will only talk ipv6 but the registrar only have ipv4 connectivity. Therefore need to create a proxy to translate this dialogs. Thi thnking on using kamailio to receive the registration modify the pckets and forward registrations in ipv4. I

Re: [SR-Users] using kamailio to forward ipv6 to ipv4

2017-01-05 Thread Frank Carmickle
> On Jan 5, 2017, at 12:24 PM, anfecora wrote: > > Hi guys hope you have a great new year. > I would appreciate if anyone can point me in to the right direction . > > I need to build a proxy to translate from ipv6 to ipv4, but kamailio should > not process the registers or invites, only transl

Re: [SR-Users] using kamailio to forward ipv6 to ipv4

2017-01-05 Thread Colin Morelli
Can't answer whether or not it's possible as I haven't tried it - but, Consider how this will impact the negotiation between clients and servers. If your B2BUA thinks calls are coming in from IPV4 (instead of IPV6), then it may not offer IPV6 in the invite. Similarly, if the client thinks it's con

[SR-Users] using kamailio to forward ipv6 to ipv4

2017-01-05 Thread anfecora
Hi guys hope you have a great new year. I would appreciate if anyone can point me in to the right direction . I need to build a proxy to translate from ipv6 to ipv4, but kamailio should not process the registers or invites, only translate from ipv6 to ipv4 and forward all registrations over. is

Re: [SR-Users] CDR - acc_cdrs

2017-01-05 Thread Annus Fictus
Hi, changing: # account only INVITEs if (is_method("INVITE")) { setflag(FLT_ACC); # do accounting } with: if (is_method("INVITE")) { dlg_manage(); setflag(FLT_ACC); # do accounting } solve. Thank you Regards El 05/01

Re: [SR-Users] CDR - acc_cdrs

2017-01-05 Thread Diego Nadares
Sorry. I thought that after sending the email. Kamailio It's not saving even in acc table? Are you starting a dialog? *dialog* -- Dialog, if “cdr_enable” module parameter is enabled In my cfg if (is_method("INVITE") && !has_totag()) { setflag(FLT_ACC); # do accounting

Re: [SR-Users] unexpected char - status 6

2017-01-05 Thread Daniel-Constantin Mierla
Hello, the second packet in the trace has \0 in the To header. Likely the endpoints is changing the From/To headers and restoring them with uac module is no longer working. Either don't auto-restore them or use uac with dialog module to store the the values. Kamailio 4.4 or newer should have a

Re: [SR-Users] unexpected char - status 6

2017-01-05 Thread Daniel-Constantin Mierla
Hello, the second packet in the trace has \0 in the To header. Likely the endpoints is changing the From/To headers and restoring them with uac module is no longer working. Either don't auto-restore them or use uac with dialog module to store the the values. Kamailio 4.4 or newer should have a

Re: [SR-Users] Kamailio parse failed message

2017-01-05 Thread Daniel-Constantin Mierla
Hello, do you have the pcap for such message? Is it happening for the ACK you pasted or some other message? Cheers, Daniel On 05/01/2017 12:16, Hai Bui Duc Ha wrote: > Hi all, > > I have problem when make call with my Android mobile use PJSIP library. > Scenario: > > my client -> Kamailio -> F

Re: [SR-Users] RTPProxy with VPN

2017-01-05 Thread Daniel-Constantin Mierla
Hello, you need to run rtpproxy in bridge mode. See the alg example from the rtpproxy module -- online at: - https://github.com/kamailio/kamailio/blob/master/src/modules/rtpproxy/examples/alg.cfg Cheers, Daniel On 05/01/2017 01:09, Rodrigo Moreira wrote: > Hello, > > I am having problems wit

Re: [SR-Users] CDR - acc_cdrs

2017-01-05 Thread Annus Fictus
Hi Diego, I'm using default script: # account only INVITEs if (is_method("INVITE")) { setflag(FLT_ACC); # do accounting } if (is_method("BYE")) { setflag(FLT_ACC); # do accounting ... setflag(FLT_ACCFAILED); # ...

Re: [SR-Users] CDR - acc_cdrs

2017-01-05 Thread Diego Nadares
Hi Annus, Did you set the flags for those calls you want to account? I have something like this in my request route if (is_method("INVITE") && !has_totag()) { setflag(FLT_ACC); # do accounting dlg_manage(); setflag(FLT_ACCMISSED); s

[SR-Users] CDR - acc_cdrs

2017-01-05 Thread Annus Fictus
Hello, I'm trying to save Kamailio CDR on acc_cdrs table without success. My relevant configuration look like: - #!define FLT_ACC 1 #!define FLT_ACCMISSED 2 #!define FLT_ACCFAILED 3 - #!define WITH_ACCDB loadmodule "dialog.so" loadmodule "acc.so" modparam("dialog", "dlg_flag"

[SR-Users] unexpected char - status 6

2017-01-05 Thread AL S
Hi, Kamailio is throwing error message from "parse_to.c" with status=6. The source code shows status 6 as URI_ENCLOSED. However, tcpdump of the call does not show any enclosed angle bracket is missing. (tcpdump pcap file is attached.) Kamailio log Jan 4 10:18:21 orl-ar-openser01 /usr/sbin/

[SR-Users] Kamailio parse failed message

2017-01-05 Thread Hai Bui Duc Ha
Hi all, I have problem when make call with my Android mobile use PJSIP library. Scenario: my client -> Kamailio -> Freeswitch (media server) -> another client (soft phone on Windows) my client: + use Bluestack + Capture via Wireshark + use Wifi Issue: The call will be drop after ~ 30 second

Re: [SR-Users] Regarding usage of Redis Module in Kamailio core

2017-01-05 Thread Vicente Hernando
Hello Hemanth, this minimal kamailio cfg file works for me to test ndb_redis module. #!KAMAILIO debug=4 log_stderror=yes children=4 fork=yes #disable_tcp=yes mpath="modules/" loadmodule "ndb_redis.so" # An already configured redis server is needed here modparam("ndb_redis", "server", "name=

Re: [SR-Users] Kamailio cancel branch only after receiving replies

2017-01-05 Thread Olle E. Johansson
> On 03 Jan 2017, at 09:20, Daniel-Constantin Mierla wrote: > > Hello, > this is the behaviour required by rfc, to send cancel only after receiving a > provisional reply 1xx. Which is the only way - before that point we don’t know if any SIP-capable software has gotten the INVITE and the INVIT

Re: [SR-Users] VERY IMPORTANT: deciding when to remove the MI code

2017-01-05 Thread Yasin CANER
Hello;     it gives error as below. Cheers. [root@Test  master]# 10(29238) ERROR: ctl [binrpc_run.c:1112]: rpc_struct_add(): failed to add attribute-value (S) 10(29238) ERROR: carrierroute [cr_fifo.c:1192]: cr_rpc_dump_routes()

Re: [SR-Users] VERY IMPORTANT: deciding when to remove the MI code

2017-01-05 Thread Daniel-Constantin Mierla
Hello, thanks, got some leads with the new log messages, so I pushed another commit to see which of the fields there is causing the problem. Can you fetch again master and give it another try? Cheers, Daniel On 05/01/2017 09:09, Yasin CANER wrote: > > Hello; > > Results are here. Once i tried c

Re: [SR-Users] VERY IMPORTANT: deciding when to remove the MI code

2017-01-05 Thread Yasin CANER
Hello; Results are here. Once i tried carrierroute config with kamailio V4.1.9 and it works. here version is kamailio 5.0.0-dev10 . it is started with "kamailio -dd -E" [root@Test  master]# kamcmd cr.reload_routes [root@T

Re: [SR-Users] how to immediately close a tls connection

2017-01-05 Thread Daniel-Constantin Mierla
Hello, where do you try to close it? From kamailio.cfg or from C code? Cheers, Daniel On 05/01/2017 07:06, Andy wrote: > Hi, > > trying to close a tls connection immediately, > > have ref to the connection (tcpconn) pointer > > please suggest, > thanks! > > > > -- > View this message in context

Re: [SR-Users] location

2017-01-05 Thread Daniel-Constantin Mierla
Hello, as the docs say, the uri is the value to be used instead of To header URI, not instead of Contact URI. This value is used to store in the username and domain columns. Cheers, Daniel On 04/01/2017 23:29, Slava Bendersky wrote: > Hello Daniel, > Based on wiki page > http://www.kamailio.org