New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dummy feature to check location on localhost #56

Closed
johnnyAnd opened this Issue Jul 20, 2016 · 10 comments

Comments

Projects
None yet
5 participants
@johnnyAnd

johnnyAnd commented Jul 20, 2016

I am configuring OPENGMLC on my localhost , when I do /restomm with an msisdn , it shows empty response which is ok, there needs to be some simulator or dummy msisdn that I can pass to it and it can send me response.

Thanks
#53

@deruelle

This comment has been minimized.

Member

deruelle commented Jul 20, 2016

@JohnTet do you want to contribute that example ?

@deruelle deruelle added this to the 2.0.0 milestone Jul 20, 2016

@johnnyAnd

This comment has been minimized.

johnnyAnd commented Jul 20, 2016

@deruelle I would love to ofcourse but I am struggling myself to run it on localhost.

@angrygreenfrogs

This comment has been minimized.

Collaborator

angrygreenfrogs commented Jul 20, 2016

@JohnTet Recommend to check out the updated README file here: https://github.com/RestComm/gmlc/blob/issue45/README.md

That may help if you're having any install/run problems, and has details about how to setup a dev environment.

In general also you'll see a little bit of a better immediate test response (even though it'll be an error) if you send a MLP POST request instead of a GET

@FerUy

This comment has been minimized.

Contributor

FerUy commented Jul 20, 2016

@JohnTet I'm back :)

I'm reviewing @angrygreenfrogs PR and will provide further feedback on this hopefully today. Thanks!

@angrygreenfrogs

This comment has been minimized.

Collaborator

angrygreenfrogs commented Jul 21, 2016

@JohnTet @FerUy Oh, on this subject, I should say there's already a little bit of test code in the GMLC for this.

It'd be nicer if there was a "dummy" mode configuration variable to turn it on... but in any case you can set this to true in core/slee/services/sbbs/src/main/java/org/mobicents/gmlc/slee/MobileCoreNetworkInterfaceSbb.java

private boolean useFakeLocation = false;

And it'll return a fake location from POST or GET rather than trying to do a real request.

@johnnyAnd

This comment has been minimized.

johnnyAnd commented Jul 25, 2016

@angrygreenfrogs and then I have to compile it from scratch ? creating snapshot etc. just asking ..

@Vanit

This comment has been minimized.

Collaborator

Vanit commented Jul 29, 2016

Maybe an easy solution would be for there to be a dummy mobile number that will always return a successful fake location?

@deruelle

This comment has been minimized.

Member

deruelle commented Jul 29, 2016

@monix that's an option. We need to make sure it's a non valid mobile number or enable that only when fake is enabled through configuration

@Vanit

This comment has been minimized.

Collaborator

Vanit commented Jul 29, 2016

@deruelle Maybe a fictional 555 number?

@deruelle

This comment has been minimized.

Member

deruelle commented Jul 29, 2016

yeah sounds good to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment