On Thursday 18 June 2015 22:35:11 Asterisk wrote:
Could you show me some tutorials or reference websites?
It depends on your setup, but most likely you can do this source based, something like this:
route[AUTHENTICATE] { if($si=asteriskip) { if (!www_authenticate("$td", "asteriskrttable")) { www_challenge("$td", "1"); } } else { if (!www_authenticate("$td", "othertable")) { www_challenge("$td", "1"); } } }
route[LOCATION] { if (!lookup("asteriskrtlocation") && !lookup("otherlocation")) { ... } }
route[REGISTER] { if($si=asteriskip) { save("asteriskrtlocation"); } else { save("otherlocation"); } }