bueno señores de nuevo me he armado de algo básico de kamailio , los usuarios registrados en mysql (registrar, location), pero sigo sin poder sacar las llamadas a la pstn en la misma pc donde tengo asterisk y mi TDM , es posible integrar asterisk+kamailio en la misma pc , sin tener que setearlo atraves de realtime?.. me tiene mareado desde hace días...
siempre tengo problemas con el INVITE entre asterisk y kamailio
he leido que después de autenticar le pase el invite a asterisk , aun así no lo logro
route [3] { ##### INVITE MessageE Handler
if (!proxy_authorize("", "subscriber")) { proxy_challenge("", "0"); exit; } else if (!check_from()) { sl_send_reply("403", "Use FROM=ID"); exit; };
consume_credentials(); lookup("aliases"); if (!uri==myself) { append_hf("P-hint: outbound alias\r\n"); route(1);
}; if (uri=~"^sip:[29][0-9]{7}@.*") { rewritehostport("192.168.10.1:5070"); xlog(" ---> forwarded to Asterisk ---> "); t_relay(); route(1); }; if (!lookup("location")) { sl_send_reply("404", "User Not Found"); };
route(1); }
##### Traza sip ########
U +2.583674 192.168.10.28:5060 -> 192.168.10.1:5060 INVITE sip:2685249@192.168.10.1 SIP/2.0 Via: SIP/2.0/UDP 192.168.10.28:5060;branch=z9hG4bK7313e5a441e08546 From: sip:119@192.168.10.1;tag=21933ce432465177 To: sip:2685249@192.168.10.1 Contact: sip:119@192.168.10.28:5060 Supported: replaces, timer, path Call-ID: 8f2154247fa59236@192.168.10.28 CSeq: 3292 INVITE User-Agent: Grandstream GXV3000 1.1.3.14 Max-Forwards: 70 Allow: INVITE,ACK,CANCEL,BYE,NOTIFY,REFER,OPTIONS,INFO,SUBSCRIBE,UPDATE,PRACK Content-Type: application/sdp Content-Length: 545
U +0.001404 192.168.10.1:5060 -> 192.168.10.28:5060 SIP/2.0 407 Proxy Authentication Required Via: SIP/2.0/UDP 192.168.10.28:5060;branch=z9hG4bK7313e5a441e08546 From: sip:119@192.168.10.1;tag=21933ce432465177 To: sip:2685249@192.168.10.1;tag=d7e793d797690be5ce5420203095040f.9334 Call-ID: 8f2154247fa59236@192.168.10.28 CSeq: 3292 INVITE Proxy-Authenticate: Digest realm="192.168.10.1", nonce="48aa3ca3939e1491a10ec8fe1af89b3a98d5bcc1" Server: OpenSER (1.3.2-notls (i386/linux)) Content-Length: 0
necesito una ayuda en esta oscuridad ..
saludoss