Any pseudo variable should work. I don't exactly know how your business work, but I'd suggest that instead of using from header domain, use the domain part of the request-uri, $rd.
Regards, Carlos On Fri, May 16, 2014 at 4:28 PM, Rahul MathuR <[email protected]>wrote: > Thank you very much Carlos ! > > One last thing, can I use $fd in cnxcc_set_max_channels as below - > cnxcc_set_max_channels("$fd", "$var(max_chan)"); > to restrict the simultaneous calls hitting a particular domain ? > > > > > On Sat, May 17, 2014 at 2:03 AM, Carlos Ruiz Díaz < > [email protected]> wrote: > >> Create a profile [1], and count the number of calls of that profile [2]. >> >> Alternatively, you can use cnxcc module [3]. >> >> [1] >> http://kamailio.org/docs/modules/stable/modules/dialog.html#idp1919576 >> [2] >> http://kamailio.org/docs/modules/stable/modules/dialog.html#idp1964064 >> [3] http://kamailio.org/docs/modules/stable/modules/cnxcc.html#idp132608 >> >> >> On Fri, May 16, 2014 at 3:28 PM, Rahul MathuR >> <[email protected]>wrote: >> >>> *Hello,* >>> >>> *Please accept my apologies for asking a simple question - Is there any >>> example which shows how can I create the dialog profile **value based on >>> the SIP domain or SIP Server IP (IP like- 112.23.134.5). I** need to >>> control many SIP Server IPs with limited channels to each with my** >>> Kamailio Proxy.* >>> >>> *I am a newbie to kamailio world.* >>> >>> >>> >>> *-- Warm Regds.MathuRahul* >>> >>> >>> >>> _______________________________________________ >>> sr-dev mailing list >>> [email protected] >>> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev >>> >>> >> >> >> -- >> Carlos >> http://caruizdiaz.com >> http://ngvoice.com >> +52 55 3048 3303 >> >> _______________________________________________ >> sr-dev mailing list >> [email protected] >> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev >> >> > > > -- > Warm Regds. > MathuRahul > > _______________________________________________ > sr-dev mailing list > [email protected] > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev > > -- Carlos http://caruizdiaz.com http://ngvoice.com +52 55 3048 3303
_______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
