Hello,

I can suggest that you run with debug=3 in kamailio.cfg and watch the
logs printed by kamailio in syslog to see what happens.

If you need to look at the traffic sent over the tls connection, load
sipdump module and enable it to write traffic in a file.

Cheers,
Daniel

On 07.07.20 16:11, Роман С. wrote:
> OK, spent some time around tls configuration. OpenSSL shows no error
> now, but dispatcher continues to show me IP or AX.
>
> openssl s_client -showcerts -debug -connect servername.com:5061
> <http://servername.com:5061> -no_ssl2 -bugs -servername 
> servername.com <http://servername.com> -CAfile /root/intermediate.crt
> <goodgoodgoodnoerrors>
>
> kamalio.cfg
> ....
> ####### Routing Logic ########
>
> event_route[tm:local-request] {
>
>         if(is_method("OPTIONS") && $ru =~ "pstnhub.microsoft.com
> <http://pstnhub.microsoft.com>") {
>                append_hf("Contact:
> <sip:servername.com:5061;transport=tls>\r\n");
>         }
>         xlog("L_INFO", "Sent out tm request: $mb\n");
> }
>
> request_route {
> ...
>         if (is_method("INVITE|SUBSCRIBE")) {
>                
> record_route_preset("servername.com:5061;transport=tls", "my_ip:5060");
>                 #record_route();
>         }
> ...
> }
>
> route[WITHINDLG] {
>         if (!has_totag()) return;
>
>         # sequential request withing a dialog should
>         # take the path determined by record-routing
>         if (loose_route()) {
>                 route(DLGURI);
>                 if (is_method("BYE")) {
>                         setflag(FLT_ACC); # do accounting ...
>                         setflag(FLT_ACCFAILED); # ... even if the
> transaction fails
>                 } else if ( is_method("ACK") ) {
>                         # ACK is forwarded statelessly
>                         route(NATMANAGE);
>                 } else if ( is_method("NOTIFY") ) {
>                         # Add Record-Route for in-dialog NOTIFY as per
> RFC 6665.
>                
> record_route_preset("servername.com:5061;transport=tls", "my_ip:5060");
>                         #record_route();
>                 }
>                 route(RELAY);
>                 exit;
>         }
>
> Teams web-interface shows inactive. Kamcmd's same as previous output.
> What do I do :(?
>
> вт, 7 июл. 2020 г. в 12:43, Роман С. <[email protected]
> <mailto:[email protected]>>:
>
>     Hello.
>     I'm trying to set up Kamailio as SBC for Teams using
>     https://skalatan.de/en/blog/kamailio-sbc-teams.
>     Setup is completely default (except things mentioned at article),
>     but I use wildcard certificate for TLS. Well, I can't even pass
>     dispatcher:
>
>     kamcmd dispatcher.list | egrep "RI|FLAG"
>                                             URI:
>     sip:sip.pstnhub.microsoft.com
>     <http://sip.pstnhub.microsoft.com>;transport=tls
>                                             FLAGS: IP
>                                             PRIORITY: 3
>                                             URI:
>     sip:sip2.pstnhub.microsoft.com
>     <http://sip2.pstnhub.microsoft.com>;transport=tls
>                                             FLAGS: IP
>                                             PRIORITY: 2
>                                             URI:
>     sip:sip3.pstnhub.microsoft.com
>     <http://sip3.pstnhub.microsoft.com>;transport=tls
>                                             FLAGS: IP
>                                             PRIORITY: 1
>
>     Where do I start to dig?
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> [email protected]
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Funding: https://www.paypal.me/dcmierla

_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to