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.
Thanks for your help.
Best regards
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@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers