Skip to content
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

Dial JSON body ignored/not parsed #34

Closed
matko238 opened this issue Feb 6, 2021 · 2 comments
Closed

Dial JSON body ignored/not parsed #34

matko238 opened this issue Feb 6, 2021 · 2 comments

Comments

@matko238
Copy link

matko238 commented Feb 6, 2021

Hi,

when you try to POST to /dial following JSON

{
"uri":"sip:100@192.168.4.193",
"account":"101@192.168.4.193"
}

input isn't parsed and following error occurs:

(2021-02-06 21:51:41) [INFO    ] Request: 127.0.0.1:45210 01732580 HTTP/1.1 POST /dial
(2021-02-06 21:51:41) [INFO    ] Dial Request to {"uri":"sip:100@192.168.4.193","account":"101@192.168.4.193"}
(2021-02-06 21:51:41) [ERROR   ] Exception catched : Invalid Request URI (PJSIP_EINVALIDREQURI)
(2021-02-06 21:51:41) [INFO    ] Response: 01732580 /dial 500 0

It attempts to dial wrong:

2021-02-06 21:51:41.397   pjsua_call.c !Making call with acc #1 to {"uri":"sip:100@192.168.4.193","account":"101@192.168.4.193"};transport=tcp

but when you post only sip:100@192.168.4.193 to /dial, it works.

@kingster
Copy link
Member

kingster commented Feb 6, 2021

It seems that you are running an old version which didn't have this feature. What is the version that you are running? Can you try with the latest version from the ci builds? https://ci.appveyor.com/project/kingster/tinyphone/build/artifacts

@matko238
Copy link
Author

matko238 commented Feb 6, 2021

Issue solved with 36.0.0.80 version, thank you!

@matko238 matko238 closed this as completed Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants