What is the error you’re getting?

 

Regards,

Kaufman

 

 

From: Blake Ivey via sr-users <sr-users@lists.kamailio.org>
Sent: Thursday, June 20, 2024 3:14 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Cc: Blake Ivey <uga5324@gmail.com>
Subject: [SR-Users] SecSIPID Assistance

 

CAUTION: This email originated from outside the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.

 

Hi everyone. Wanting to see if someone could point me in the right direction. Still very knew to Kamailio but I am beginning to understand it better. I'm making an outbound proxy and have everything working well besides stir/shaken. I'm looking at the module page and have went back and forth with chatGPT and can't seem to figure this part out. I keep getting errors on the modparam lines. 

 

Obviously this is a self signed cert because I'm just testing. I am able to reach and download the cert from the Web server. 

 

Thank you for any assistance. 

 

# SECSIPID for Stir/Shaken 

modparam("secsipid", "private_key", "/etc/kamailio/secsipid/private.key") 

modparam("secsipid", "certificate", "/etc/kamailio/secsipid/cert.crt") 

modparam("secsipid", "authority_cert", "/etc/kamailio/secsipid/ca.crt")

modparam("secsipid", "expire", 600) modparam("secsipid", "timeout", 2)

 

route[STIRSHAKEN] {

    if (is_method("INVITE")) {

        if (!secsipid_add_identity("$fU", "$rU", "A", "", "http://myIPaddress.com/stir_shaken_cert.crt", "/etc/kamailio/secsipid/private.key")) {

            xlog("L_ERR", "Failed to sign call with ID: $ci - From: $fU\n");

            send_reply("500", "Internal Server Error");

            exit;

        } else {

            xlog("L_INFO", "Successfully signed call with ID: $ci - From: $fU\n");

        }

    }

 

    # Relay the call after signing

    route(RELAY);

}