[SR-Users] Carrierroute, uac_*, failure_route.

2017-08-31 Thread yu

Hello.
Have a following task. Select carrier by carrierroute module from db, try to 
route (dial, relay, bridge - you name it) call there and if call is 
failed/rejected due to any reason, go to failure_route(?), perform carrierroute 
lookup again for  another carrier and route call there. Main problem is that 
different carriers require different From/To format. And Kamailio don't allow 
to use uac* functions in failure_route. How to resolve this? Maybe entire 
routing method is wrong for my task? Any advice?
--
sent from myMail for Android___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[SR-Users] Kamailio SIP protocol over WSS

2017-08-31 Thread Washington Costa
Hello,

I'm using kamailio 5.0.2 (x86_64/linux). And it works with WS.

Regards,
Washington Costa

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


Re: [SR-Users] Change on the fly logging verbosity - Kamailio v5.0.2

2017-08-31 Thread Sebastian Damm
Hi,

I think you are looking for cfg_rpc:
http://www.kamailio.net/docs/modules/5.0.x/modules/cfg_rpc.html

HTH
Sebastian

On Thu, Aug 31, 2017 at 12:53 PM, Karsten Horsmann  wrote:
> Hello,
>
>
> at this moment i try to figure out the best way to add an "switch" for
> debug/log output.
> I use many xlog, like everyone that starts with kamailio too.
>
> Then i go further and add #!ifdef cases around to switch this via #!define.
>
> Is there any other way to turn on/off my "debug"-logging on the fly, while
> kamailio is still running?
>
>
>
> #!define TESTBED_MODE
>
> request_route{
> ...
> #!ifdef TESTBED_MODE
> route(DEBUG);
> #!endif
>
> ...
> #!ifdef TESTBED_MODE
> xlog("L_INFO","---FIX_SIPS-after: ru:($ru)");
> #!endif
> ...
> }
>
> --
> Kind Regards
> *Karsten Horsmann*
>
> ___
> 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] Kamailio SIP protocol over WSS

2017-08-31 Thread Daniel-Constantin Mierla
Hello,

what version of kamailio do you use?

kamailio -v

Cheers,
Daniel


On 31.08.17 15:09, Washington Costa wrote:
> Hi.
>
> I'm trying use the JSSIP cliente and Kamailio with WSS.
>
> On these sites I generated my certificates: https://letsencrypt.org/
> and https://certbot.eff.org/
>
> My browser identify the certificates but SIP client just say: failed:
> WebSocket opening handshake was canceled
>
> Do you have any idea how to fix it? Do you can say a checklist with
> everything I need to do for use Kamailio with WSS?
>
> Here is my log on Kamailio:
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
>  [core/ip_addr.c:229]: print_ip(): tcpconn_new: new tcp
> connection: 187.41.60.10
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
>  [core/tcp_main.c:985]: tcpconn_new(): on port 44630, type 3
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
>  [core/tcp_main.c:1291]: tcpconn_add(): hashes: 3062:1194:1491,
> 2
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
>  [core/io_wait.h:380]: io_watch_add(): DBG:
> io_watch_add(0xa4ac60, 53, 2, 0x7f259df9cd80), fd_no=44
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
>  [core/io_wait.h:602]: io_watch_del(): DBG: io_watch_del
> (0xa4ac60, 53, -1, 0x0) fd_no=45 called
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
>  [core/tcp_main.c:4139]: handle_tcpconn_ev(): sending to child,
> events 1
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
>  [core/tcp_main.c:3818]: send2child(): selected tcp worker 1
> 26(13225) for activity on [tls:172.31.39.220:4443], 0x7f259df9cd80
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
>  [core/tcp_read.c:1574]: handle_io(): received n=8
> con=0x7f259df9cd80, fd=9
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG: tls
> [tls_server.c:197]: tls_complete_init(): completing tls connection
> initialization
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG: tls
> [tls_server.c:226]: tls_complete_init(): Using initial TLS domain
> TLSs (dom 0x7f259ddc4a80 ctx 0x7f259de03bc0 sn [])
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG: tls
> [tls_domain.c:715]: sr_ssl_ctx_info_callback(): SSL handshake started
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
>  [core/tcp_main.c:2430]: tcpconn_do_send(): sending...
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
>  [core/tcp_main.c:2464]: tcpconn_do_send(): after real write: c=
> 0x7f259df9cd80 n=2568 fd=9
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
>  [core/tcp_main.c:2465]: tcpconn_do_send(): buf=
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: #026#003#001
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
>  [core/io_wait.h:380]: io_watch_add(): DBG:
> io_watch_add(0xa93f00, 9, 2, 0x7f259df9cd80), fd_no=1
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
>  [core/tcp_read.c:195]: tcp_emit_closed_event(): TCP closed
> event creation triggered
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
>  [core/tcp_read.c:202]: tcp_emit_closed_event(): no callback
> registering for handling TCP closed event - dropping!
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
>  [core/tcp_read.c:305]: tcp_read_data(): EOF on 0x7f259df9cd80,
> FD 9 ([187.41.60.10]:44630 ->26(13225) DEBUG: 
> [core/tcp_read.c:306]: tcp_read_data(): -> [172.31.39.220]:4443)
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
>  [core/tcp_read.c:1341]: tcp_read_req(): EOF
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
>  [core/io_wait.h:602]: io_watch_del(): DBG: io_watch_del
> (0xa93f00, 9, -1, 0x10) fd_no=2 called
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
>  [core/tcp_read.c:1495]: release_tcpconn(): releasing con
> 0x7f259df9cd80, state -1, fd=9, id=2 ([187.41.60.10]:44630 ->
> [187.41.60.10]:4443)
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 26(13225) DEBUG:
>  [core/tcp_read.c:1499]: release_tcpconn(): extra_data
> 0x7f259dfb6488
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
>  [core/tcp_main.c:3250]: handle_tcp_child(): reader response=
> 7f259df9cd80, -1 from 1
> Aug 31 09:10:10 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG: tls
> [tls_server.c:665]: tls_h_close(): Closing SSL connection
> 0x7f259dfb6488
> Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
>  [core/ip_addr.c:229]: print_ip(): tcpconn_new: new tcp
> connection: 187.41.60.10
> Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
>  [core/tcp_main.c:985]: tcpconn_new(): on port 44692, type 3
> Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 33(13239) DEBUG:
>  [core/tcp_main.c:1291]: tcpconn_add(): hashes: 2869:1129:1296,
> 3
> Aug 31 09:10:17 ip-172-31-39-220 kamailio[13183]: 

[SR-Users] Change on the fly logging verbosity - Kamailio v5.0.2

2017-08-31 Thread Karsten Horsmann
Hello,


at this moment i try to figure out the best way to add an "switch" for
debug/log output.
I use many xlog, like everyone that starts with kamailio too.

Then i go further and add #!ifdef cases around to switch this via #!define.

Is there any other way to turn on/off my "debug"-logging on the fly, while
kamailio is still running?



#!define TESTBED_MODE

request_route{
...
#!ifdef TESTBED_MODE
route(DEBUG);
#!endif

...
#!ifdef TESTBED_MODE
xlog("L_INFO","---FIX_SIPS-after: ru:($ru)");
#!endif
...
}

-- 
Kind Regards
*Karsten Horsmann*
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] telcosuite3-crm sql

2017-08-31 Thread Kordován Szabolcs
Hi,

There is ims-mmtel. I think this is not what I need because of the
dependencies (asterisk).

Package: ims-mmtel
Priority: optional
Maintainer: Carsten Bock 
Architecture: all
Version: 1.0.1503306086
Depends: kamailio, kamailio-dbg, kamailio-extra-modules,
kamailio-ims-modules, kamailio-json-modules, kamailio-mysql-modules,
kamailio-presence-modules, kamailio-tls-modules, kamailio-utils-modules,
kamailio-xml-modules, monit, asterisk, asterisk-core-sounds-en,
asterisk-core-sounds-fr, asterisk-prompt-de, asterisk-voicemail
Filename: pool/trusty/stable/mmtel-1.0.1503306086.deb
Size: 616668

Regards,
Szabolcs


2017-08-31 9:48 GMT+02:00 Kordován Szabolcs :

> Hi,
>
> Sorry for my questions, I have a new one. The rest tries to connect to
> mmtel database but there is no mmtel creation in the *.sql. Could you help
> me where it is?
>
> Thanks,
> Szabolcs
>
> 2017-08-31 8:58 GMT+02:00 Carsten Bock :
>
>> Hi,
>>
>> the inital use is ad...@volte.guru with passwort "test1234".
>>
>> The Algorithm is described here:
>> http://php.net/manual/en/function.password-hash.php
>>
>> Thanks,
>> Carsten
>>
>> 2017-08-31 8:49 GMT+02:00 Kordován Szabolcs :
>> > Hi Carsten,
>> >
>> > Thanks for your fast reply.
>> > Now my question is that what is the demo admin's password? Or what is
>> the
>> > algorithm of the password generation (I see it is not a simple md5), I
>> can
>> > replace it in database.
>> >
>> > Regards,
>> > Szabolcs
>> >
>> > 2017-08-31 8:39 GMT+02:00 Carsten Bock :
>> >>
>> >> Hi,
>> >>
>> >> you find all the SQL files in /var/www/management and ./rest, as you
>> >> need the REST-API for the Management-Portal.
>> >>
>> >> Thanks,
>> >> Carsten
>> >>
>> >> 2017-08-31 8:17 GMT+02:00 Kordován Szabolcs :
>> >> > Hi,
>> >> >
>> >> > I would like to try the IMS according to the Kamailio World 2017:
>> >> > Kamailio
>> >> > For IMS And VoLTE presentation.
>> >> > Unfortunately I have problem with telcosuite, the sql structure is
>> >> > missing.
>> >> > Where can I find the whole create.sql?
>> >> >
>> >> > Thanks for help.
>> >> > Regards,
>> >> > Szabolcs
>> >> >
>> >> > ___
>> >> > Kamailio (SER) - Users Mailing List
>> >> > sr-users@lists.kamailio.org
>> >> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> 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/
>> >>
>> >> ___
>> >> 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
>> >
>>
>>
>>
>> --
>> 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/
>>
>> ___
>> 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] uac +kamailio + dispatcher + asterisk

2017-08-31 Thread Жан Базаров
Hello! provider trunks registration on kamailio UAC?! it's clear.
but how does asterisk find out through which trunk the call should be made?
I tried to set the header from asterisk dialplan.
for example:



 if (is_method("INVITE")) {
 #record_route_preset("109.195.102.122");




route(DIRECTION);


setflag(FLT_ACC); # do accounting
}



#-- LOADBALANCE ROUTE  #
if(!ds_is_from_list()) {
route(DISPATCH);
}

route[DISPATCH] {
#round robin dispatching on gateways group '1'
if(!ds_select_dst("1", "4"))
{






send_reply("404", "No destination");
exit;
}
xlog("L_DBG", "--- SCRIPT: going to <$ru> via <$du>\n");
t_on_failure("RTF_DISPATCH");

route(NATMANAGE);
route(DRELAY);
exit;
}


route[DIRECTION] {

 if ($hdr(x-trunk)  != $null) {

 if (!is_method("BYE")){
$fu="";
t_on_failure("MANAGE_FAILURE");
$dlg_ctx(timeout_route) =
"DIALOG_END";
$avp(i:10)=43200;
$dlg_ctx(timeout_bye) = 0;
sql_pvquery("ca", "select l_uuid, auth_username, auth_password,
realm, l_domain, r_domain  from uacreg where id='$hdr(x-trunk)'",
"$avp(uuid), $avp(uname), $avp(passwd), $avp(realm), $avp(src_ipaddr),
$avp(dst_ipaddr)");
t_on_failure("MANAGE_FAILURE");
$dlg_ctx(timeout_route) =
"DIALOG_END";
$avp(i:10)=43200;
$dlg_ctx(timeout_bye) = 0;

$fu="";
uac_replace_from("sip:$avp(uname)@$avp(dst_ipaddr)");
$tu="sip:"+$tU+"@"+$avp(dst_ipaddr);
$ru="sip:"+$tU+"@"+$avp(dst_ipaddr);
remove_hf("Contact");
$var(contact)="sip:"+$avp(uname)+"@10.49.9.2:5060";
insert_hf("Contact: <$var(contact)>\r\n");
#insert_hf("Contact:  ");
msg_apply_changes();
fix_nated_register();
xlog("L_INFO","Contact header $var(contact)
111 is $ct {$ct}\n");
route(RELAY);
 }   BYE

}   ### XTRUNK

But in this configuration I do not come bye
but when I register providers trunks on asterisk - problem with BYE not
visible.
but I can not register provider-trunks on all the asterisks, because
incoming invite arrives at the link + address, and all the asteriscs ring.
All my asterisk's behind nat
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] question for best way to remove sips uris - TLS and sips in $ru - get_send_socket2(): protocol/port mismatch

2017-08-31 Thread Karsten Horsmann
Hello List,

i answering myself - just for the records.

For my issues i found an solution.

1.) If sips from broken client, save "sip://" scheme to record-route (like
described before) and then reformat it to the old $ru
2.) Attach a FLT_Flag to this
3.) On my dispatcher route i force "transport=udp" to it, if my FLT_Flag
there is

The 60 second sound problem was an rfc4028 - session timer issue between
UAC and target B2BUA (FreeSWITCH).
I could solve this with 'param name="enable-timer" value="false"' within
FreeSWITCH sip-profile.


#!define FLT_SRCSIPS 19

request_route {
...
remove_hf("Route");
if (is_method("INVITE|SUBSCRIBE")) {
if ($ru =~ "^sips:") {
route(FIX_SIPS);
} else {
record_route();
}
}
...
}

route[FIX_SIPS] {
if ($ru =~ "^sips:") {
xlog("L_INFO","---FIX_SIPS-before: ru:($ru)");
$var(orig_uri) = $ru;
$ru = "sip:" + $rU + "@" + $td;
xlog("L_INFO","---FIX_SIPS-now: $rU $td ru:($ru)
orig_uri:($var(orig_uri))");
record_route();
$ru = $var(orig_uri);
xlog("L_INFO","---FIX_SIPS-after: ru:($ru)");
setflag(FLT_SRCSIPS);
}
}


route[DISPATCHIVR] {
...
if(isflagset(FLT_SRCSIPS)) {
$var(orig_du) = $du;
$du = "sip:" + $rd + ":" + $rp + ";transport=udp";
xlog("L_INFO","reformate ($var(orig_du)) to ($du)");
}
...
}


2017-08-18 13:54 GMT+02:00 Karsten Horsmann :

> Hello List,
>
>
> of course - best way is not to use sips: uri scheme. But i have to deal
> with that.
>
> I try to configure an multihomed kamailio (public/private IP) in front of
> my SIP-Servers.
> One of my softphones variants used TLS for connection but the INVITES of
> this softphone use the "sips" URI scheme.
>
> As i saw in other posts, this seems to be an issue for many people.
> In my case it breaks the routing to my internal sip-server (only plain
> udp).
>
> Most of my config is similar to havfos example + TLS.
> https://github.com/havfo/WEBRTC-to-SIP/blob/master/etc/
> kamailio/kamailio.cfg
>
> [...]
>



-- 
Kind Regards
*Karsten Horsmann*
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


Re: [SR-Users] sql_do_query_async(): the db driver module doesn't support async query

2017-08-31 Thread Daniel Tryba
On Thu, Aug 31, 2017 at 09:28:46AM +0300, Juha Heinanen wrote:
> > > Our solution was to switch to the mysql driver in kamailio and use the
> > > galera loadbalancer
> > 
> > In this solution, also loadbalancer must be made highly available,
> > using, for example, corosync/pacemaker.
> 
> Or run loadbalancer on each SIP proxy host.

We use the latter, glb is a lightweight process and use some supervistor
scripts to make sure it is running.

But it is an extra external process to babysit, having a async aware
cluster connector would be great. It is on my todo to take a look at
when I get around to start modifying kamailio, should be relatively
simple (in my mind) to call the async method from db_cluster instead of
just returning a not supported.


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


Re: [SR-Users] telcosuite3-crm sql

2017-08-31 Thread Kordován Szabolcs
Hi,

Sorry for my questions, I have a new one. The rest tries to connect to
mmtel database but there is no mmtel creation in the *.sql. Could you help
me where it is?

Thanks,
Szabolcs

2017-08-31 8:58 GMT+02:00 Carsten Bock :

> Hi,
>
> the inital use is ad...@volte.guru with passwort "test1234".
>
> The Algorithm is described here:
> http://php.net/manual/en/function.password-hash.php
>
> Thanks,
> Carsten
>
> 2017-08-31 8:49 GMT+02:00 Kordován Szabolcs :
> > Hi Carsten,
> >
> > Thanks for your fast reply.
> > Now my question is that what is the demo admin's password? Or what is the
> > algorithm of the password generation (I see it is not a simple md5), I
> can
> > replace it in database.
> >
> > Regards,
> > Szabolcs
> >
> > 2017-08-31 8:39 GMT+02:00 Carsten Bock :
> >>
> >> Hi,
> >>
> >> you find all the SQL files in /var/www/management and ./rest, as you
> >> need the REST-API for the Management-Portal.
> >>
> >> Thanks,
> >> Carsten
> >>
> >> 2017-08-31 8:17 GMT+02:00 Kordován Szabolcs :
> >> > Hi,
> >> >
> >> > I would like to try the IMS according to the Kamailio World 2017:
> >> > Kamailio
> >> > For IMS And VoLTE presentation.
> >> > Unfortunately I have problem with telcosuite, the sql structure is
> >> > missing.
> >> > Where can I find the whole create.sql?
> >> >
> >> > Thanks for help.
> >> > Regards,
> >> > Szabolcs
> >> >
> >> > ___
> >> > Kamailio (SER) - Users Mailing List
> >> > sr-users@lists.kamailio.org
> >> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> >> >
> >>
> >>
> >>
> >> --
> >> 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/
> >>
> >> ___
> >> 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
> >
>
>
>
> --
> 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/
>
> ___
> 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] Kamailio failover - dialog (transaction) that is available on different proxies

2017-08-31 Thread Donat Zenichev
So guys, I have nice news.
I made it working as expected, but with some editions of previous scheme.

I set NAPTR records for tcp/udp:
dig naptr sipnew.heremydomain.ua @ns2 +short
10 100 "S" "SIP+D2U" "" _sip._udp.sip.heremydomain.ua.
10 100 "S" "SIP+D2T" "" _sip._tcp.sip.heremydomain.ua.

I set SRV records for both types of transport:
dig srv _sip._udp.sip.heremydomain.wnet.ua +short @ns2
10 100 5060 kamailio1.heremydomain.ua.
10 100 5060 kamailio2.heremydomain.ua.

dig srv _sip._tcp.sip.heremydomain.ua +short @ns2
10 100 5060 kamailio1.heremydomain.ua.
10 100 5060 kamailio2.heremydomain.ua

And of course A records for both fqdn names:
dig kamailio1.heremydomain.ua @ns2 +short
10.10.10.1
dig kamailio2.heremydomain.ua @ns2 +short
10.10.10.2

Here I have to say, that I moved away from idea to set two IP addresses for
both fqdns.
As Sebastian has already said, indeed clients sent half requests to first
result of A records and half requests to second one.

So I decided to record route sip.heremydomain.ua, instead of direct fqdn
names of kamailio servers (kamailio1.heremydomain.ua /
kamailio2.heremydomain.ua).
And the result was excellent.

So the configuration of kamailio proxies was like that:
1. dialog module working with external database;
2. registrar module working with external database;
3. usrloc module working with external database;
4. both kamailio inserts data to the same db, config files are the same on
both kamailio (excepting the listening ifaces);
5. b2b user agent as routing server and media proxy at the same time;
6. Location records are visible from both kamailio proxies;

Here is the sequence of the call process (I used TCP transport to test the
environment):
1. Client sets up dialog through the first kamailio, so three-way-handshake
is done, media stream is up.
2. Then kamailio1 falls down, but dialog doesn't get down.
2.1 My client noticed, that 5060 port on first kamailio is unreachable and
suddenly re-registered itself on second one (he resolves the
sip.heremydomain.ua and gets kamailio2 host).
2.2 Media stream doesn't get down, because of external media-proxy.
3. Client decides to end up the call and sends BYE request, to kamailio2
host.
3.1 Kamailio2 knows anything about this client and dialog, so he process
this BYE as usual.
3.2 Session completely (properly) gets down.

In case of UDP transport, the result was a bit different, because in a few
cases srv record couldn't recognize that 5060 is unreachable on first
kamailio, so client tried to send BYE to first host.
But if first host was completely down, it worked in 100 % cases.

So I can say, that this topology is workable for me.



2017-08-27 12:37 GMT+03:00 Donat Zenichev :

> Hi Igor.
> Well, indeed I've already done the solutions with heartbeat, but the main
> idea now is to minimize the absense of SIP server.
> Heartbeat need time (that depends on your condigurations) to understand
> that primary is down, e.g. you have dead interval set to 10 seconds, so if
> no activity has noticed while this period, the node is considered as dead.
> But, if you will set this interval lower, e.g. 2-3 seconds, you get the
> risk to obtain flaps (e.g. there is a delay within ip route from slave to
> primary node, so slave brings up the shared ip and start to process calls,
> but real master works fine indeed and have possibility to communicate).
>
> So according to heartbeat, I decided to perform it only inside same
> physical domain, where ucast/bcast packets will reach other node without
> any problems.
>
> According to my actual question, I've moved further and now think
> following scheme will work fine:
> 1. NAPTR records for every transport protocol (e.g. " _sip._udp.domain.org
> ").
>
> 2. SRV records for every NAPTR record (e.g. kamailio1.domain.org, ka
> mailio2.domain.org ) with same
> priority/weight for both of them, to balance half invites to first one and
> half invites to second one.
>
> 3. A records for every domain name (e.g. kamailio1.domain.org - 10.0.0.1,
> 10.0.0.2, where actually second one is kamailio2;
> and the same for fqdn kamailio2.domain.org - 10.0.0.2, 10.0.0.1).
>
> So the sequence of dialog actions will be
>
> 1. Invite from uac is balanced to kamailio1;
> 2. Dialog is established and media stream is up;
> 3. Then kamailio1 goes down;
> 4. Bye message tries to achieve host that was set in rr hf (kamailio1),
> but kamailio1 (10.0.0.1) is down, so bye message will be sent to 10.0.0.2
> (kamailio2) and a cause of the behaviour is 10.0.0.2 ip assigned to
> kamailio1 fqdn as second ip.
> 5. The message will be processed by kamailio2, because of common
> dialog/usrloc db.
>
> I will make an effort to set up it next week.
> In case of success, I will write a short report here.
>
>
> 2017-08-25 17:26 GMT+03:00 Donat Zenichev :
>
>> I've searched through the sr users list and found a few discussions on
>> this count.
>>
>> So the way (as I 

Re: [SR-Users] telcosuite3-crm sql

2017-08-31 Thread Carsten Bock
Hi,

the inital use is ad...@volte.guru with passwort "test1234".

The Algorithm is described here:
http://php.net/manual/en/function.password-hash.php

Thanks,
Carsten

2017-08-31 8:49 GMT+02:00 Kordován Szabolcs :
> Hi Carsten,
>
> Thanks for your fast reply.
> Now my question is that what is the demo admin's password? Or what is the
> algorithm of the password generation (I see it is not a simple md5), I can
> replace it in database.
>
> Regards,
> Szabolcs
>
> 2017-08-31 8:39 GMT+02:00 Carsten Bock :
>>
>> Hi,
>>
>> you find all the SQL files in /var/www/management and ./rest, as you
>> need the REST-API for the Management-Portal.
>>
>> Thanks,
>> Carsten
>>
>> 2017-08-31 8:17 GMT+02:00 Kordován Szabolcs :
>> > Hi,
>> >
>> > I would like to try the IMS according to the Kamailio World 2017:
>> > Kamailio
>> > For IMS And VoLTE presentation.
>> > Unfortunately I have problem with telcosuite, the sql structure is
>> > missing.
>> > Where can I find the whole create.sql?
>> >
>> > Thanks for help.
>> > Regards,
>> > Szabolcs
>> >
>> > ___
>> > Kamailio (SER) - Users Mailing List
>> > sr-users@lists.kamailio.org
>> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> >
>>
>>
>>
>> --
>> 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/
>>
>> ___
>> 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
>



-- 
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/

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


Re: [SR-Users] telcosuite3-crm sql

2017-08-31 Thread Kordován Szabolcs
Hi Carsten,

Thanks for your fast reply.
Now my question is that what is the demo admin's password? Or what is the
algorithm of the password generation (I see it is not a simple md5), I can
replace it in database.

Regards,
Szabolcs

2017-08-31 8:39 GMT+02:00 Carsten Bock :

> Hi,
>
> you find all the SQL files in /var/www/management and ./rest, as you
> need the REST-API for the Management-Portal.
>
> Thanks,
> Carsten
>
> 2017-08-31 8:17 GMT+02:00 Kordován Szabolcs :
> > Hi,
> >
> > I would like to try the IMS according to the Kamailio World 2017:
> Kamailio
> > For IMS And VoLTE presentation.
> > Unfortunately I have problem with telcosuite, the sql structure is
> missing.
> > Where can I find the whole create.sql?
> >
> > Thanks for help.
> > Regards,
> > Szabolcs
> >
> > ___
> > Kamailio (SER) - Users Mailing List
> > sr-users@lists.kamailio.org
> > https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> >
>
>
>
> --
> 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/
>
> ___
> 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] telcosuite3-crm sql

2017-08-31 Thread Carsten Bock
Hi,

you find all the SQL files in /var/www/management and ./rest, as you
need the REST-API for the Management-Portal.

Thanks,
Carsten

2017-08-31 8:17 GMT+02:00 Kordován Szabolcs :
> Hi,
>
> I would like to try the IMS according to the Kamailio World 2017: Kamailio
> For IMS And VoLTE presentation.
> Unfortunately I have problem with telcosuite, the sql structure is missing.
> Where can I find the whole create.sql?
>
> Thanks for help.
> Regards,
> Szabolcs
>
> ___
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>



-- 
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/

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


Re: [SR-Users] sql_do_query_async(): the db driver module doesn't support async query

2017-08-31 Thread Juha Heinanen
Juha Heinanen writes:

> > Our solution was to switch to the mysql driver in kamailio and use the
> > galera loadbalancer
> > (http://galeracluster.com/documentation-webpages/glb.html) to implement
> > loadbalancing/failover to our mariadb galera master/master cluster.
> 
> In this solution, also loadbalancer must be made highly available,
> using, for example, corosync/pacemaker.

Or run loadbalancer on each SIP proxy host.

-- Juha

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


Re: [SR-Users] sql_do_query_async(): the db driver module doesn't support async query

2017-08-31 Thread Juha Heinanen
Daniel Tryba writes:

> Our solution was to switch to the mysql driver in kamailio and use the
> galera loadbalancer
> (http://galeracluster.com/documentation-webpages/glb.html) to implement
> loadbalancing/failover to our mariadb galera master/master cluster.

In this solution, also loadbalancer must be made highly available,
using, for example, corosync/pacemaker.

-- Juha

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


[SR-Users] 5.0 Version compiling gives warning

2017-08-31 Thread Yasin CANER

  
  
Hello,
    Compiling branch
5.0 gives error as below.
Thanks
  
Centos 6.5
Linux  
2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux
gcc (GCC) 4.4.7
20120313 (Red Hat 4.4.7-18)

WARNING:
  CC (gcc) [M xmlrpc.so]  xmlrpc.o
  xmlrpc.c: In function ‘set_fault’:
  xmlrpc.c:888: warning: implicit declaration of function
  ‘vsnprintf’
  xmlrpc.c: In function ‘print_value’:
  xmlrpc.c:1018: warning: implicit declaration of function
  ‘snprintf’
  xmlrpc.c:1018: warning: incompatible implicit declaration of
  built-in function ‘snprintf’
  
  -- 
  

  

  


  
  


  
  

  

  

  
  

  

  

  

  

  

  


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


[SR-Users] telcosuite3-crm sql

2017-08-31 Thread Kordován Szabolcs
Hi,

I would like to try the IMS according to the Kamailio World 2017: Kamailio
For IMS And VoLTE presentation.
Unfortunately I have problem with telcosuite, the sql structure is missing.
Where can I find the whole create.sql?

Thanks for help.
Regards,
Szabolcs
___
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users