[OpenSER-Users-ES] llamada asterisk a openser, ruri modificado?
Iñaki Baz Castillo
ibc at aliax.net
Sat Feb 2 17:04:08 CET 2008
El 2/02/08, David Villasmil <david.villasmil.work at gmail.com> escribió:
> Iñaki,
>
> Efectivamente, eran dos cosas juntas. Estuve en el IRC de openser, resulta
> que el asterisk, como tu bien dices, se registra como s at .... no hay problema
> con eso, PERO, como hacía el lookup DOS VECES fallaba al intentar mandar la
> llamada al asterisk... Qué tonto soy...
>
> De los errores se aprende.. jeje
De los errores se aprende muchísimo ;)
> pero claro, eso significa que la llamada nunca pasa por el route(1), cierto?
> eso quiere decir que no detecta y arregla el nat? debería ser más bien así?:
>
>
>
> route{
> if (method=="INVITE") {
> # CUSTOMER-CUSTOMER CALL
> if($si=="ip1"){
> xlog("L_ERR", "\n************** CUSTOMER");
> if (uri=~"^sip:8888"){
> strip(4);
> }
> if (!lookup("location")) {
> sl_send_reply("404", "Not Found");
> exit;
> };
> route(1);
> }
> append_hf("P-hint: usrloc applied\r\n");
> };
> }
> route[1] {
> if (subst_uri('/(sip:.*);nat=yes/\1/')){
> setbflag(6);
> };
> if (isflagset(5)||isbflagset(6)) {
> route(3);
> }
> if (!t_relay()) {
> sl_reply_error();
> };
> exit;
> }
Sí, mejor así.
Saludos.
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the Users-es
mailing list