Hello,
I try to add a Remote-Party-ID to call detinated to PSTN with append_rpid_hf() but the id is not added to the Invite request.
I see in the documentation of the auth module that the function does nothing if no saved SIP URI exists. Can you say me how the SIP URI is saved.
if (!(method==ACK | method=="CANCEL" | method=="BYE")) {
if (!proxy_authorize("eivd.ch", "subscriber")) { proxy_challenge( "eivd.ch","0"); break; } append_rpid_hf();
if (method=="INVITE" & !check_from()) { log(1, "LOG: Spoofed from attempt\n"); sl_send_reply("403", "Use From=id next time"); break; }; };
Subscriber table contains rpid column which must contain a number. The number is then used by append_rpid_hf function. The function does nothing if the column is empty.
Jan.
On 16-02 12:59, laurent Schweizer wrote:
Hello,
I try to add a Remote-Party-ID to call detinated to PSTN with append_rpid_hf() but the id is not added to the Invite request.
I see in the documentation of the auth module that the function does nothing if no saved SIP URI exists. Can you say me how the SIP URI is saved.
if (!(method==ACK | method=="CANCEL" | method=="BYE")) {
if (!proxy_authorize("eivd.ch", "subscriber")) { proxy_challenge( "eivd.ch","0"); break; } append_rpid_hf(); if (method=="INVITE" & !check_from()) { log(1, "LOG: Spoofed from attempt\n"); sl_send_reply("403", "Use From=id next time"); break; }; };
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers