got it, need to remove ^.*=>profile3 on mmap
working now. thanks stefan.

i think the $m needs to be added to the documentation
Kelvin Chua


On Fri, Sep 26, 2014 at 7:15 PM, Kelvin Chua <[email protected]> wrote:
> the matching are working individually, how do i combine them?
>
> what i have is this:
> active_profile=$M($m=>src_mmap),$M($si=>src_ipmap)
> and combined, it's not working.
>
> src_mmap:
> REGISTER=>profile1
> ^.*=>profile3
>
> src_ipmap:
> 192.168.1.163=>profile2
> ^.*=>profile3
>
>
>
> the logic I wanted to do is:
> if method is REGISTER and not from 192.168.1.163, go to profile1
> if src is 192.168.1.163 regardless of method, go to profile2
> else go to profile3
>
> Kelvin Chua
>
>
> On Fri, Sep 26, 2014 at 6:18 PM, Stefan Sayer <[email protected]> wrote:
>> Kelvin Chua wrote on 09/26/2014 12:09 PM:
>>> how do we match by method, kamailio's $rm doesn't seem to be recognized
>> $m ?
>>
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to