[SR-Users] blocking call in between two kamailio proxy

Daniel-Constantin Mierla miconda at gmail.com
Tue Sep 1 08:58:30 CEST 2015


Hello,

first be sure you enable use_domain parameter to relevant modules (e.g.,
usrloc, auth_db, ...) -- in this way you ensure that x at domain1 is
different that x at domain2.

Then testing if the domain of the callee is the same as the domain of
the caller can be done with:

if($rd!=$fd) {
    send_reply("403", "Call outside the domain");
    exit;
}

Cheers,
Daniel

On 01/09/15 07:35, sscc wrote:
> i have configered kamailio with two domains sscc1.tk and sscc2.tk. it listen
> on both domains. each domain has users registered with it. user in domain
> sscc1 1 can call to user in domain sscc2. i want to allow call in between
> users of same domai. and block call between user of domain sscc1 to domain
> sscc2. please help
>
>
>
> --
> View this message in context: http://sip-router.1086192.n5.nabble.com/blocking-call-in-between-two-kamailio-proxy-tp140893.html
> Sent from the Users mailing list archive at Nabble.com.
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Book: SIP Routing With Kamailio - http://www.asipto.com




More information about the sr-users mailing list