|
####### Routing Logic ######## # main request routing logic route{ # if (!pike_check_req()) { exit; }; if (!mf_process_maxfwd_header("10")) { sl_send_reply("483","Too Many Hops"); exit; } if(!sanity_check("1511", "7")) { xlog("Malformed SIP message from $si:$sp\n"); exit; } topoh_required("1"); /* in order to test my function*/ route(NAT); if (has_totag()) { # sequential request withing a dialog should # take the path determined by record-routing if (loose_route()) { if (is_method("BYE")) { setflag(1); # do accounting ... setflag(3); # ... even if the transaction fails } route(RELAY); } else { if (is_method("SUBSCRIBE") && uri == myself) { # in-dialog subscribe requests route(PRESENCE); exit; } if ( is_method("ACK") ) { if ( t_check_trans() ) { # non loose-route, but stateful ACK; must be an ACK after a 487 or e.g. 404 from upstream server t_relay(); exit; } else { # ACK without matching transaction ... ignore and discard.\n"); exit; } } sl_send_reply("404","Not here"); } exit; } .... I try with {"topoh_required", (cmd_function)m_topoh, 1, fixup_uint_null , ANY_ROUTE} no change ! :( always the same error Jérôme marius zbihlei a écrit : [email protected] wrote: --
![]() MARCHET Jerome RD-CORE-LAN LAN/CORE/M2V Tel : +33 296052479 Email: [email protected] R&D Lannion 2, avenue Pierre Marzin 22307 LANNION Cedex - France Mailer ThunderBird sous YourDev Linux Installez simplement votre poste de travail Linux avec http://web2000.rd.francetelecom.fr ![]() |
_______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


