On 15.06.2021 16:51, HS wrote:
I still have no clue what to do next :D
Here is an example of tricking OpenSIPS and calling do_routing() from a
non-allowed event_route in order to achieve a DID checking logic. This
is just an educational example, of course, because this entire
functionality is already available via the "dr_number_routing" MI command:
event_route [E_CHECK_DID] {
if (route(CHECK_DID, $param(did)))
xlog("DID is valid: $param(did)\n");
else
xlog("no such DID: $param(did)\n");
}
route [CHECK_DID] {
if (do_routing($param(1), "C", , , , , "dids")))
return -1;
else
return 1;
}
--
Liviu Chircu
www.twitter.com/liviuchircu | www.opensips-solutions.com
OpenSIPS Summit 2021 Distributed | www.opensips.org/events
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users