inge wrote:
Hi all,
What sort of if structure can I use to test the Calling ID ?
(ie : my calling id are member of subscriber table).
For the moment I do something like this : "if(uri=~"^sip:119@") {"
for
the destination number, but I want to do the same for the calling ID.
With older versions you could do:
<<
if search("^Call-ID: 119.*") {
...
}
>
With the newest version you can also do:
<<
if @msg["Call-ID"] =~ "119.*" {
...
}
>
; you could use some AVP or another select
instead of the regexp to
identify a subscriber, but I wouldn't recommend building any logic upon
the call ID, at all.
Bogdan.
Thanks for your help.
Best regards
_______________________________________________
Serusers mailing list
Serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
--
Bogdan Pintea
iptego GmbH - VoIP Security
http://www.iptego.de