[asterisk-bugs] [JIRA] (ASTERISK-29169) res_stir_shaken: Wrong CID used when looking up certificates

Jared Smith (JIRA) noreply at issues.asterisk.org
Wed Nov 18 14:51:16 CST 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-29169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=252789#comment-252789 ] 

Jared Smith edited comment on ASTERISK-29169 at 11/18/20 2:49 PM:
------------------------------------------------------------------

Correct, my dialplan looks like:
{code}
  exten => 507,1,Set(CALLERID(num)=442081254195)
  exten => 507,n,Set(CALLERID(name)=Jared Smith)
  exten => 507,n,Dial(PJSIP/simwood-endpoint/sip:07734629999 at out.simwood.com\;transport=tcp,10)
{code}
And in stir_shaken.conf, I have:
{code}
  caller_id_number=442081254195
{code}
And yet, when I dial extension 507, I get the following messages on the console:
{code}
[Nov 18 15:22:27] ERROR[177564]: res_stir_shaken.c:1069 ast_stir_shaken_sign: Failed to retrieve certificate for caller ID '507'
[Nov 18 15:22:27] ERROR[177564]: res_pjsip_stir_shaken.c:239 add_identity_header: Failed to allocate memory for STIR/SHAKEN payload
{code}






was (Author: jsmith):
Correct, my dialplan looks like:

  exten => 507,1,Set(CALLERID(num)=442081254195)
  exten => 507,n,Set(CALLERID(name)=Jared Smith)
  exten => 507,n,Dial(PJSIP/simwood-endpoint/sip:07734629999 at out.simwood.com\;transport=tcp,10)

And in stir_shaken.conf, I have:

  caller_id_number=442081254195

And yet, when I dial extension 507, I get the following messages on the console:

[Nov 18 15:22:27] ERROR[177564]: res_stir_shaken.c:1069 ast_stir_shaken_sign: Failed to retrieve certificate for caller ID '507'
[Nov 18 15:22:27] ERROR[177564]: res_pjsip_stir_shaken.c:239 add_identity_header: Failed to allocate memory for STIR/SHAKEN payload






> res_stir_shaken: Wrong CID used when looking up certificates
> ------------------------------------------------------------
>
>                 Key: ASTERISK-29169
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29169
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_stir_shaken
>    Affects Versions: 16.14.1, 18.0.1
>            Reporter: Benjamin Keith Ford
>            Severity: Minor
>
> [~jsmith] brought this up in IRC while testing STIR/SHAKEN operations. Seems like the wrong CID is being used when looking up the certificate. Should be a simple fix.
> {code}
> exten => 507,1,Set(CALLERID(num)=442081254195)
> {code}
> 507 is the extension, 442081254195 is the Caller ID number (network number)
> caller_id_number: 442081254195



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list