Closed pranavjain closed 8 years ago
@saghul what do you think of this latest revision? It is much easier to read.
I have updated all the files. Please check @saghul @dpocock
Left some minor comments, other than that it LGTM.
@saghul @dpocock I have done all the suggested changes. Please review.
LGTM with a couple of style nits and a question.
@saghul @dpocock Done all the changes!
Final LGTM, good work @pranavjain!
@pranavjain why did you remove the try
/ catch
block and md = MessageDigest.getInstance("MD5");
as part of your last commit? Without that, it crashes the app.
@pranavjain @saghul the username is not always a full SIP URI and for some accounts I see it setting From
and To
incorrectly. Please look at the target_url
parameter in RegisterAgent.java, please add the same parameter to the PublishAgent
constructor and use it in the necessary places
I also notice that it is sending multiple PUBLISH requests to the same account very quickly at startup. Please look at how to avoid duplicate PUBLISH requests. Look at how RegisterAction keeps track of its state (UNREGISTERED / REGISTERING / REGISTERED / DEREGISTERING). You could do similar state with an enum type, in this case the enum could be part of the same source file / class.
Changes pending in PublishAgent.java