[asterisk-bugs] [JIRA] (ASTERISK-27298) Problem with expires on pjsip / outbound-publish

Cyrille Demaret (JIRA) noreply at issues.asterisk.org
Wed Sep 27 08:43:07 CDT 2017


     [ https://issues.asterisk.org/jira/browse/ASTERISK-27298?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cyrille Demaret updated ASTERISK-27298:
---------------------------------------

    Description: 
Hi,

There's a typo in res_pjsip_outbound_publish.c which cause Asterisk to always send an expires of 1 on PUBLISH.

around the line 987 :

{code}
if (pjsip_publishc_init(publisher->client, &event, &server_uri, &from_uri, &to_uri,
        publish->expiration != PJ_SUCCESS)) {
{code}

it should be :

{code}
if (pjsip_publishc_init(publisher->client, &event, &server_uri, &from_uri, &to_uri,
        publish->expiration) != PJ_SUCCESS) {
{code}

Regards,

Cyrille

  was:
Hi,

There's a typo in res_pjsip_outbound_publish.c which cause Asterisk to always send an expires of 1 on PUBLISH.

around the line 987 :

if (pjsip_publishc_init(publisher->client, &event, &server_uri, &from_uri, &to_uri,
        publish->expiration != PJ_SUCCESS)) {

it should be :

if (pjsip_publishc_init(publisher->client, &event, &server_uri, &from_uri, &to_uri,
        publish->expiration) != PJ_SUCCESS) {

Regards,

Cyrille


> Problem with expires on pjsip / outbound-publish
> ------------------------------------------------
>
>                 Key: ASTERISK-27298
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27298
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_pjsip_outbound_publish
>    Affects Versions: 14.6.2
>            Reporter: Cyrille Demaret
>
> Hi,
> There's a typo in res_pjsip_outbound_publish.c which cause Asterisk to always send an expires of 1 on PUBLISH.
> around the line 987 :
> {code}
> if (pjsip_publishc_init(publisher->client, &event, &server_uri, &from_uri, &to_uri,
>         publish->expiration != PJ_SUCCESS)) {
> {code}
> it should be :
> {code}
> if (pjsip_publishc_init(publisher->client, &event, &server_uri, &from_uri, &to_uri,
>         publish->expiration) != PJ_SUCCESS) {
> {code}
> Regards,
> Cyrille



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



More information about the asterisk-bugs mailing list