[asterisk-bugs] [JIRA] (ASTERISK-25137) endpoint stasis messages are delivered twice

Richard Mudgett (JIRA) noreply at issues.asterisk.org
Wed May 27 10:49:33 CDT 2015


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

Richard Mudgett updated ASTERISK-25137:
---------------------------------------

    Description: 
If I subscribe topic ast_endpoint_topic_all_cached I receive all ami endpoint messages twice.

In function endpoint_internal_create called from ast_endpoint_create single endpoint topic is created and forwarded to  ast_endpoint_all topic by calling
 
stasis_cp_single_create(ast_endpoint_cache_all(), endpoint->id);

After that same single topic is forwared to tech_topic which is also forwarded to ast_endpoint_all topic. 

Example of resulting topic tree is

SIP/8888 -> SIP -> ast_endpoint_all
SIP/8888 -----------------^

and subscriber who subscribes ast_endpoint_all or higher level topic receives endpoint messages twice.

I think direct forwarding from single topic to ast_endpoint_all can be deleted from tree (not created at all) and I can prepare patch if somebody comfirms that it is correct way how to fix the problem


  was:
If I subscribe topic ast_endpoint_topic_all_cached I receive all amdpoint messages twice.

In function endpoint_internal_create called from ast_endpoint_create single endpoint topic is created and forwarded to  ast_endpoint_all topic by calling
 
stasis_cp_single_create(ast_endpoint_cache_all(), endpoint->id);

After that same single topic is forwared to tech_topic which is also forwarded to ast_endpoint_all topic. 

Example of resulted topis tree is

SIP/8888 -> SIP -> ast_endpoint_all
SIP/8888 -----------------^

and subscriber who subsribes ast_endpoint_all or higher level topic receives ednpoit messages twice.

I think direct forwarding from single topic to ast_endpoint_all can be deleted from tree (not created at all) and I can prepare patch if somebody comfirms that it is correct way how to fix the problem









> endpoint stasis messages are delivered twice
> --------------------------------------------
>
>                 Key: ASTERISK-25137
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25137
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/Stasis
>    Affects Versions: 13.3.0
>            Reporter: Vitezslav Novy
>            Assignee: George Joseph
>            Severity: Minor
>
> If I subscribe topic ast_endpoint_topic_all_cached I receive all ami endpoint messages twice.
> In function endpoint_internal_create called from ast_endpoint_create single endpoint topic is created and forwarded to  ast_endpoint_all topic by calling
>  
> stasis_cp_single_create(ast_endpoint_cache_all(), endpoint->id);
> After that same single topic is forwared to tech_topic which is also forwarded to ast_endpoint_all topic. 
> Example of resulting topic tree is
> SIP/8888 -> SIP -> ast_endpoint_all
> SIP/8888 -----------------^
> and subscriber who subscribes ast_endpoint_all or higher level topic receives endpoint messages twice.
> I think direct forwarding from single topic to ast_endpoint_all can be deleted from tree (not created at all) and I can prepare patch if somebody comfirms that it is correct way how to fix the problem



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



More information about the asterisk-bugs mailing list