Re: [SR-Users] segfault when using sipt modifications

2016-08-02 Thread Daniel-Constantin Mierla
Hello,

maybe the function append_body_part("...") can be extended with an extra
parameter where to specify the character to be replaced with 0x00 in the
first parameter.

Cheers,
Daniel


On 01/08/16 16:34, Sergey Basov wrote:
>
> Hello.
>
> Look more carefuly, its only first \x00 changes forward call
> indicator. You have a few more \x00...
>
> You does not get full ISUP into INVITE...
>
> As I have told earlier you can replace \x00 by \x01into kamailio
> script, but you must rewrite it with \x00 later into sip-t module, but
> this requires some changes into source code of sip-t module...
>
> sip-t module itself designed for checking/modifying of the ISUP
> content into sip-t/sip-i, but not for generating it...
>
>
> 1 авг. 2016 г. 5:08 PM пользователь "david"  > написал:
>
> Hello Sergey, Daniel
>
> thanks a lot for the guidance.
> i changed the x00 by x01 and it works now, i was seeing the ISUP
> truncated but i thought it was related to the tshark XD
>
> i will find out about the changes needed at sipt configuration,
> but just in case, the things chaged by this only are the forward
> call indicators, so i hope that does give us many problems
>
> i will let you know anything
>
> thanks and best regards
> david
>
>
> El lun, 01-08-2016 a las 12:09 +0200, Daniel-Constantin Mierla
> escribió:
>> Hello,
>>
>> I am not familiar with isup and no testbed around at this moment. That's
>> why I asked for backtrace from the coredump file, based on the
>> guidelines I did in my previous email.
>>
>> Cheers,
>> Daniel
>>
>>
>> On 01/08/16 09:07, Sergey Basov wrote:
>> > Hello,
>> >
>> > try make dump packet after
>> >
>> 
>> append_body_part("\x01\x12\x49\x00\x0a\x03\x02\x0a\x08\x84\x90\x33\x41\x72\x17\x00\x06\x0a\x08\x04\x13\x93\x70\x21\x73\x23\x10\x08\x01\x00\x00","application/isup;version=itu-t92+","signal;handling=optional");
>> > before sipt_destination($rU, 31, 4);
>> >
>> > when i have done such conversion i found that kamailio from script
>> > ignores all string content after symbol \x00 as this is end of
>> line.
>> >
>> > To avoid this i have replaces \x00 with \x01 in my initial ISUP
>> string
>> > and make changes into SIP-T module to replace it with \x00 while
>> > processing message. before number/presentation/screening
>> > modifications.
>> >
>> > you have first \x00 as forth symbol in your ISUP string and
>> after it
>> > all have to be ignored. Look at dump using wireshark. I think
>> you will
>> > see mailformed ISUP incapsulated message.
>> >
>> > --
>> > Best regards,
>> > Sergey Basov e-mail: sergey.v.ba...@gmail.com
>> 
>> >
>> > tel: (+38067) 403-62-54 
>> >
>> >
>> > 2016-08-01 8:21 GMT+03:00 Daniel-Constantin Mierla
>> mailto:mico...@gmail.com>>:
>> >> Hello,
>> >>
>> >> would be good to get a core dump file and the backtrace from
>> it in order to
>> >> see where it crashes.
>> >>
>> >> For getting the coredump, try:
>> >>
>> >> - stop kamailio
>> >>
>> >> - do: ulimit -c unlimited
>> >>
>> >> - start kamailio as root
>> >>
>> >> - reproduce the issue
>> >>
>> >> A corefile should be generated in / or working directory. Use
>> gdb to grab
>> >> the output of 'bt full' from the corefile and send it here to
>> the mailing
>> >> list.
>> >>
>> >> Cheers,
>> >> Daniel
>> >>
>> >>
>> >> On 29/07/16 18:21, david wrote:
>> >>
>> >> hello all
>> >>
>> >>
>> >>
>> >> i'm trying to add a ISUP multipart in a regular call using the
>> textops
>> >> module, and despite seeing one previous issue int he mail
>> list, i'm finding
>> >> some issue here
>> >>
>> >> i'm using this commands
>> >>
>> >> msg_apply_changes();
>> >> set_body_multipart(,"2123894789 _1257887457");
>> >> msg_apply_changes();
>> >>
>> >>
>> 
>> append_body_part("\x01\x12\x49\x00\x0a\x03\x02\x0a\x08\x84\x90\x33\x41\x72\x17\x00\x06\x0a\x08\x04\x13\x93\x70\x21\x73\x23\x10\x08\x01\x00\x00","application/isup;version=itu-t92+","signal;handling=optional");
>> >> msg_apply_changes();
>> >> sipt_destination($rU, 31, 4);
>> >> sipt_set_calling($fU, 4, 0, 3);
>> >> msg_apply_changes();
>> >>
>> >> before the record_route command, and when using
>> sipt_destination($rU, 31,
>> >> 4); i'm getting asegfault
>> >>
>> >> here you have the logs
>> >> could you please give me any clue about something i'm missing
>> or doing
>> >> wrong?
>> >>
>> >> thanks alot and regards
>> >> david
>> >>
>> >> 5(24552) DEBUG:  [parser/msg_parser.c:608]: parse_msg():
>> SIP Request:
>> >> 5(24552) DEBUG:  [parser/msg_parser.c:610]: parse_ms

[SR-Users] Synonyms User Name

2016-08-02 Thread Nahum Nir
Hello List,

I wonder if there is a way to define synonyms. For example, I there is a
person by the name of John Smith with extention  I would like to have a
user john_smith that will also be available if some INVITE .

Thanks,
Nahum
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Path & Loose Route

2016-08-02 Thread Luke Milbourne
Morning Gents,

Firstly, thanks for taking the time to reply :)

Kamailio is doing the NAT detection and simply acting as a passthrough to
FreeSWITCH (which handles all SIP registrations etc).

Will setup the log lines shortly and share the results.

kamailio -V outputs;

version: kamailio 4.3.4 (x86_64/linux) 83e842
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC,
DBG_QM_MALLOC, 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: 83e842
compiled on 18:22:39 Jan 26 2016 with gcc 4.9.2

Kind regards,
Luke - Chicane Support

On 2 August 2016 at 07:52, Daniel-Constantin Mierla 
wrote:

> Hello,
>
> yes, loose_route() should be used there. Can you add a log message and
> print $ru and $du before and after loose_route() in config and then send
> the result to this mailing list?
>
> Btw, what version of Kamailio are you using?
>
> Cheers,
> Daniel
>
> On 01/08/16 14:46, Luke Milbourne wrote:
>
> Is it correct to use loose_route() along side the path module?
>
> On 1 August 2016 at 13:33, Luke Milbourne 
> wrote:
>
>> Hi Daniel,
>>
>> Yep, I've got the below in my kamailio.cfg
>>
>> modparam("path", "use_received", 1)
>>
>> Kind regards,
>> Luke
>>
>> On 1 August 2016 at 13:25, Daniel-Constantin Mierla 
>> wrote:
>>
>>> Hello,
>>>
>>> On 01/08/16 14:14, Luke Milbourne wrote:
>>>
>>> Hi all,
>>>
>>> Currently trying to use Kamailio as a passthrough to some FreeSWITCH
>>> boxes.
>>>
>>> When receiving an invite from FreeSWITCH which contains a Route header
>>> including received information, example below;
>>>
>>> Route: ;lr;received=sip:[PUBLIC_IP]:45126
>>>
>>> When using loose_route() Kamailio still send the invite to the rfc1918
>>> address instead of the received IP:PORT in the Route header.
>>>
>>> Am I misunderstanding how this should work?
>>>
>>>
>>> if you use path module, have you enabled the option to use the received
>>> parameter?
>>>
>>>
>>> https://www.kamailio.org/docs/modules/stable/modules/path.html#idp38033932
>>>
>>> Cheers,
>>> Daniel
>>>
>>> --
>>> Daniel-Constantin Mierlahttp://www.asipto.com - 
>>> http://www.kamailio.orghttp://twitter.com/#!/miconda - 
>>> http://www.linkedin.com/in/miconda
>>>
>>>
>>> ___
>>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>>> sr-users@lists.sip-router.org
>>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>>
>>>
>>
>>
>> --
>> Luke Milbourne
>>
>> Tel: 07857154817
>> Google Talk/Email: luke.milbou...@gmail.com
>>
>
>
>
> --
> Luke Milbourne
>
> Tel: 07857154817
> Google Talk/Email: luke.milbou...@gmail.com
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
> listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
> --
> Daniel-Constantin Mierlahttp://www.asipto.com - 
> http://www.kamailio.orghttp://twitter.com/#!/miconda - 
> http://www.linkedin.com/in/miconda
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>


-- 
Luke Milbourne


Tel: 07857154817
Google Talk/Email: luke.milbou...@gmail.com
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Path & Loose Route

2016-08-02 Thread Luke Milbourne
I added the below xlog lines into my script:

xlog("L_NOTICE", "Before loose_route: $si -> $ru - $du\n");
xlog("L_NOTICE", "Before record_route: $si -> $ru - $du\n");
xlog("L_NOTICE", "After both: $si -> $ru - $du\n");

Which generated the below output in syslog:

Aug  2 09:46:11 ip-10-10-2-5 /sbin/kamailio[529]: NOTICE: 

Re: [SR-Users] Synonyms User Name

2016-08-02 Thread Daniel Tryba
On Tue, Aug 02, 2016 at 11:38:27AM +0300, Nahum Nir wrote:
> I wonder if there is a way to define synonyms. For example, I there is a
> person by the name of John Smith with extention  I would like to have a
> user john_smith that will also be available if some INVITE .

You are looking for the alias_db module.
http://kamailio.org/docs/modules/stable/modules/alias_db.html
"1. Overview

The ALIAS_DB module can be used as an alternative for user aliases via
usrloc. The main feature is that it does not store all addiacent data as
for user location and always uses the database for search (no memory
caching). A common use case is to provide additional user aliases, i.e.
to supplement the registration in the location database. Users are this
way on a proxy reachable with several request URIs."

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Synonyms User Name

2016-08-02 Thread Nahum Nir
Thank you Daniel.
Will try.

On Tue, Aug 2, 2016 at 11:58 AM, Daniel Tryba  wrote:

> On Tue, Aug 02, 2016 at 11:38:27AM +0300, Nahum Nir wrote:
> > I wonder if there is a way to define synonyms. For example, I there is a
> > person by the name of John Smith with extention  I would like to
> have a
> > user john_smith that will also be available if some INVITE .
>
> You are looking for the alias_db module.
> http://kamailio.org/docs/modules/stable/modules/alias_db.html
> "1. Overview
>
> The ALIAS_DB module can be used as an alternative for user aliases via
> usrloc. The main feature is that it does not store all addiacent data as
> for user location and always uses the database for search (no memory
> caching). A common use case is to provide additional user aliases, i.e.
> to supplement the registration in the location database. Users are this
> way on a proxy reachable with several request URIs."
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users@lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio presence

2016-08-02 Thread Phil Lavin
I've done quite a bit with Kamailio BLF recently. I have a Yealink T41P on my 
desk here - I'll give it a whirl.


-Original Message-
From: Phil Lavin 
Sent: 02 August 2016 10:26
To: Kamailio (SER) - Users Mailing List 
Subject: RE: [SR-Users] Kamailio presence

I've done quite a bit with Kamailio BLF recently. I have a Yealink T41P on my 
desk here - I'll give it a whirl.


-Original Message-
From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Bill
Sent: 02 August 2016 01:07
To: sr-users@lists.sip-router.org
Subject: [SR-Users] Kamailio presence



I have asked this question before, but never really got an answer:

Has anybody been able to get BLF working with Yealink phones.


Bill



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list 
sr-users@lists.sip-router.org 
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio presence

2016-08-02 Thread Phil Lavin
This works fine. On the T41P I went to the DSSKey tab, configured Line Key4 as 
follows:

:: Type: BLF
:: Value: 44123456...@kamailio.domain.com
:: Label: Name of the user
:: Line 1

The value has 2 parts:

:: The phone number of the user to whom we are subscribing
:: The domain name that this user registers to. This bit is important in 
Kamailio. If you want BLF, all UAs need to use the same domain name

The line should be the line that is registered to the server you are 
subscribing too.

It should be noted that we are running a forked/patched version of Kamailio 
4.3.4. The relevant git commits are:

:: 2e99fe0
:: 56f3e25
:: b2843e5
:: a9ece27
:: d97f47c
:: fb2ede3
:: feef158
:: 19fce63
:: b5f9fb1

I think all but the last 4 are in 4.4. The last 4 are on Github as pull 
requests into master. Daniel is going to review when he has time... but we've 
been running in production for around a week now with no issues.

We're also running a fairly carefully crafted config to work around a number of 
other bugs with pua/presence which we didn't have the time to find a proper 
code solution for. Config is below:

phil@ua-proxy-dev:~$ grep 'pua\|presence' /etc/kamailio/kamailio.cfg
loadmodule "presence.so"
loadmodule "presence_xml.so"
loadmodule "presence_mwi.so"
loadmodule "presence_dialoginfo.so"
loadmodule "pua.so"
loadmodule "pua_dialoginfo.so"
# - presence params -
modparam("presence", "db_url", DBURL)
modparam("presence", "db_update_period", 20)
modparam("presence", "clean_period", 60)
modparam("presence", "local_log_facility", "LOG_LOCAL3")
modparam("presence", "max_expires", 14430) # PortaOne max call time (4 hours) 
plus a little
# - presence_xml params -
modparam("presence_xml", "db_url", DBURL)
modparam("presence_xml", "force_active", 1)
# - pua params -
modparam("pua", "db_url", DBURL)
modparam("pua", "db_mode", 0) # Memory only. Required due to the "multiple 
states for a single dialog" bug
modparam("pua", "update_period", 20)
modparam("pua", "outbound_proxy", MY_SIP_URL)
# - pua_dialoginfo params -
modparam("pua_dialoginfo", "send_publish_flag", FLT_DLGINFO)
modparam("pua_dialoginfo", "override_lifetime", 14420) # PortaOne max call time 
(4 hours) plus a little
modparam("pua_dialoginfo", "callee_trying", 1) # Implemented by Phil - 
submitted upstream to v4.4

pua db_mode can probably be changed to 2 following the recent fixes that are 
awaiting pull request review. We haven't tested this yet, though.


Cheers

Phil Lavin
Telecoms Systems Manager
CloudCall
www.cloudcall.com

T: +44 (0) 330 335  / +1 617 982 1600
D: +44 (0) 116 424 4790 / +1 716 242 6604
SM: LinkedIn 
READ OUR BLOG FOR SMARTER COMMUNICATIONS 

Confidentiality: This e-mail transmission, including any attachments, is 
intended only for the named recipient(s) and may contain information that is 
privileged, confidential and/or exempt from disclosure under applicable law. If 
you have received this transmission in error, or are not the named 
recipient(s), please notify the sender immediately by return e-mail and 
permanently delete this transmission, including any attachments.
Security: This e-mail and any attachments are believed to be free from any 
virus but it is the responsibility of the recipient to ensure this is so. 
E-mail is not a 100% secure communication.

-Original Message-
From: Phil Lavin 
Sent: 02 August 2016 10:29
To: Kamailio (SER) - Users Mailing List 
Subject: RE: [SR-Users] Kamailio presence

I've done quite a bit with Kamailio BLF recently. I have a Yealink T41P on my 
desk here - I'll give it a whirl.


-Original Message-
From: Phil Lavin 
Sent: 02 August 2016 10:26
To: Kamailio (SER) - Users Mailing List 
Subject: RE: [SR-Users] Kamailio presence

I've done quite a bit with Kamailio BLF recently. I have a Yealink T41P on my 
desk here - I'll give it a whirl.


-Original Message-
From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Bill
Sent: 02 August 2016 01:07
To: sr-users@lists.sip-router.org
Subject: [SR-Users] Kamailio presence



I have asked this question before, but never really got an answer:

Has anybody been able to get BLF working with Yealink phones.


Bill



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list 
sr-users@lists.sip-router.org 
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] SSL Certificate (Second Try)

2016-08-02 Thread Pavel Kasparek
Hello,

thanks for reporting. There are actually two problems: the certificate
was expired, and uses SHA1 which some browsers already started
considering obsolete. There is now renewed certificate (valid for one
year from now). But unfortunately we can't create it with newer
signature algorithm than SHA1 yet (as the software we use to manage
iptel CA does not support it yet, looks like the browsers started
considering SHA1 not valid too early), so for now please just add a
security exception. Note: we are considering moving to some real
certificate instead of our own CA soon anyway (as done already e.g. on
the main www.iptel.org site).

With regards
Pavel Kasparek


On 08/02/2016 05:58 AM, JCOT wrote:
> I'm not sure where to send this information so I hope it's okay to share it 
> with the mailing list, as well as the whois registrants:
> 
> I went to register for a new account at https://serweb.iptel.org/user/reg.
> 
> Firefox told me that the SSL certificate was bad. Specifically:
> 
> --
> serweb.iptel.org uses an invalid security certificate. The certificate is not 
> trusted because it was signed using a signature algorithm that was disabled 
> because that algorithm is not secure. The certificate expired on 10/22/2014 
> 12:39 AM. The current time is 08/01/2016 09:55 PM.
> --
> 
> Thank you.
> 


-- 
Pavel Kasparek




___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Kamailio presence

2016-08-02 Thread Phil Lavin
I've done quite a bit with Kamailio BLF recently. I have a Yealink T41P on my 
desk here - I'll give it a whirl.


-Original Message-
From: sr-users [mailto:sr-users-boun...@lists.sip-router.org] On Behalf Of Bill
Sent: 02 August 2016 01:07
To: sr-users@lists.sip-router.org
Subject: [SR-Users] Kamailio presence



I have asked this question before, but never really got an answer:

Has anybody been able to get BLF working with Yealink phones.


Bill



___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list 
sr-users@lists.sip-router.org 
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Fail to register at trunk through UAC

2016-08-02 Thread Yuriy Gorlichenko
Hi. Tried master branch

version: kamailio 5.0.0-dev5 (x86_64/linux) 1f7f96
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS,
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: 1f7f96
compiled on 19:27:54 Aug  1 2016 with gcc 4.9.2

Still same issue

Added debug=4 output

2016-08-01 15:53 GMT+03:00 Yuriy Gorlichenko :

> Hi Daniel. Thanks for answer.
> I will reinstall it today. Ping you ASAP about result
>
> 2016-08-01 13:19 GMT+03:00 Daniel-Constantin Mierla :
>
>> Hello,
>>
>> have you tried with latest master branch? It was a large pull request
>> merged lately, just to be sure you use current code...
>>
>> Cheers,
>> Daniel
>>
>> On 01/08/16 10:30, Yuriy Gorlichenko wrote:
>>
>> Hi.Unfortunattely Probles still exists.
>> Will be very grateful if someone will help me to understand what is wrong
>> there...
>> thnk you
>>
>>
>> 2016-07-29 15:23 GMT+03:00 Yuriy Gorlichenko :
>>
>>> Also checked all credentians 3 times.
>>> It worked on another platfoms
>>> I tried read sources uac_reg.c
>>> found that it takes form hash credentmans about this trunk but not found
>>> where and what it checks.
>>>
>>> So i suppose it is difference at MD5 but i can not check it.
>>>
>>> 2016-07-29 15:03 GMT+03:00 Yuriy Gorlichenko :
>>>
 Hi. All trunks works fine ony one not works

 Kamailio sends REGISTER with proxy auth
 provider answers with 407
 Kamailio not send any REGISTER
 Just answers in log

 uac_reg_tm_callback(): authentication failed for 

 At attachement kamialio debug 3 log and sip log

>>>
>>>
>>
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
>> listsr-us...@lists.sip-router.orghttp://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>> --
>> Daniel-Constantin Mierlahttp://www.asipto.com - 
>> http://www.kamailio.orghttp://twitter.com/#!/miconda - 
>> http://www.linkedin.com/in/miconda
>>
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>> sr-users@lists.sip-router.org
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>>
>>
>


trunble with reg.dump
Description: Binary data
___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Prepaid system using dialog and sqlops

2016-08-02 Thread Daniel-Constantin Mierla
Hello,


On 02/08/16 07:36, Infinicalls Infinicalls wrote:
> Hi,
>  I am still struggling to get a prepaid system for my service.
>
> After installing SIREMIS, I am able to get the CDRs updated. But even
> after adding the cron settings, the call duration doesn't get updated.
>
> And also in
>
> http://lists.sip-router.org/pipermail/sr-users/2012-January/071517.html
>
> it has been mentioned that
>
> "If it is the case of 1 call per user at a time, then practically can
> be done from kamailio config only. When call starts, compute the max
> duration for that call based on caller/destination (e.g., call a
> stored procedure via sqlops) and set the dialog timeout to that
> duration. When call ends (BYE in main route or timeout route) update
> the credit accordingly."
>
> Can somebody let me know if my understanding is correct.
>
> 1) Add a field called "credits" in the database. And topup that field.
>
> 2) First compute max permitted duration for that user by multiplying
> the cost for number prefix (say +91) and pulse.
>
> 3) And finally add this value to timeout of dialog. modparam("dialog",
> "default_timeout", 10)
> $dlg_ctx(timeout_bye) = 1;
>
> Will this work? Any help would be appreciated.
>
That should work, you also need to deduct the used credit when the call
is ended.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda


___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] Fail to register at trunk through UAC

2016-08-02 Thread Daniel-Constantin Mierla
Hello,

can you check that there is no whitespace around the password in the
database?

Cheers,
Daniel


On 02/08/16 19:02, Yuriy Gorlichenko wrote:
> Hi. Tried master branch
>
> version: kamailio 5.0.0-dev5 (x86_64/linux) 1f7f96
> flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS,
> USE_RAW_SOCKS, 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: 1f7f96
> compiled on 19:27:54 Aug  1 2016 with gcc 4.9.2
>
> Still same issue
>
> Added debug=4 output
>
> 2016-08-01 15:53 GMT+03:00 Yuriy Gorlichenko  >:
>
> Hi Daniel. Thanks for answer. 
> I will reinstall it today. Ping you ASAP about result
>
> 2016-08-01 13:19 GMT+03:00 Daniel-Constantin Mierla
> mailto:mico...@gmail.com>>:
>
> Hello,
>
> have you tried with latest master branch? It was a large pull
> request merged lately, just to be sure you use current code...
>
> Cheers,
> Daniel
>
>
> On 01/08/16 10:30, Yuriy Gorlichenko wrote:
>> Hi.Unfortunattely Probles still exists.
>> Will be very grateful if someone will help me to understand
>> what is wrong there...
>> thnk you
>>
>>
>> 2016-07-29 15:23 GMT+03:00 Yuriy Gorlichenko
>> mailto:ovoshl...@gmail.com>>:
>>
>> Also checked all credentians 3 times.
>> It worked on another platfoms
>> I tried read sources uac_reg.c
>> found that it takes form hash credentmans about this
>> trunk but not found where and what it checks.
>>
>> So i suppose it is difference at MD5 but i can not check it.
>>
>> 2016-07-29 15:03 GMT+03:00 Yuriy Gorlichenko
>> mailto:ovoshl...@gmail.com>>:
>>
>> Hi. All trunks works fine ony one not works
>>
>> Kamailio sends REGISTER with proxy auth
>> provider answers with 407
>> Kamailio not send any REGISTER
>> Just answers in log
>>
>> uac_reg_tm_callback(): authentication failed for
>> 
>>
>> At attachement kamialio debug 3 log and sip log
>>
>>
>>
>>
>>
>> ___
>> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing 
>> list
>> sr-users@lists.sip-router.org
>> 
>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
> -- 
> Daniel-Constantin Mierla
> http://www.asipto.com - http://www.kamailio.org
> http://twitter.com/#!/miconda  - 
> http://www.linkedin.com/in/miconda
>
>
> ___
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users
> mailing list
> sr-users@lists.sip-router.org
> 
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

___
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users