[Serusers] append_rpid_hf() and search()

Alexander Mayrhofer axelm at nic.at
Mon Oct 27 15:32:57 CET 2003


Hi,

i'm adding remote party id information to certain SIP messages (to those
destined to the PSTN gateway). After doing that, i try to search() the
"Remote-Party-ID" header field for a specific string, and it seems to me
that search() only works on the initial (received) SIP message rather
than on the "current" modified message.

Is that assumption correct? (i hope it's not :)

If yes, is there another way to search SER's rpid information 
for a specific string?

config snippet:

if (!is_rpid_user_e164()) {
        append_rpid_hf();
        xlog("L_INFO", "rpid added");
        if (search("Remote-Party-ID:.*@1005")) {
            xlog("L_INFO", "rpid search succeeded");
        };

    ...

thanx 

axelm




More information about the sr-users mailing list