[Asterisk-code-review] res pjsip: Added "subscribe context" to endpoint (asterisk[13])

Alexei Gradinari asteriskteam at digium.com
Tue Jul 5 10:33:36 CDT 2016


Alexei Gradinari has posted comments on this change.

Change subject: res_pjsip: Added "subscribe_context" to endpoint
......................................................................


Patch Set 1:

(3 comments)

https://gerrit.asterisk.org/#/c/3145/1/include/asterisk/res_pjsip.h
File include/asterisk/res_pjsip.h:

Line 502: 		AST_STRING_FIELD(context);
> Contexts have a fixed maximum size so I don't think this needs to have the 
I couldn't find any fixed size string in res_pjsip.h.
So I did it similar to the context in ast_sip_endpoint.


https://gerrit.asterisk.org/#/c/3145/1/res/res_pjsip_exten_state.c
File res/res_pjsip_exten_state.c:

Line 355: 	const char *context=(ast_strlen_zero(endpoint->subscription.context)?endpoint->context:endpoint->subscription.context);
> This should use S_OR:
Done


Line 377: 	ast_copy_string(exten_state_sub->context,
> Same here.
Done


-- 
To view, visit https://gerrit.asterisk.org/3145
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I3fb7a15f5bc154079bd348c08b7ad1cdd2d5e514
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-Reviewer: Alexei Gradinari <alex2grad at gmail.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-HasComments: Yes



More information about the asterisk-code-review mailing list