esp32-baresip-client
esp32-baresip-client copied to clipboard
Failing to connect to sip:[email protected]
Hey guys,
I'm trying this code, I actually made a few tweaks so it would work with only c code, no arduino and no pub/sub for now. Using your esp32 branch of baresip though.
I can get it all to build, and the baresip sipphone task runs, but it prints the following when I try to use
ua_connect(uag_current(), NULL, NULL, "sip:[email protected]", VIDMODE_OFF);
in the task main loop.
Sometimes the errors show 'sipphone: call: sipsess_connect: Invalid argument'
other times they show 'sipphone: call: sipsess_connect: Unknown protocol'
Wondering if you have any ideas. Below are two sets of logs showing these. Thanks
call: alloc with params laddr=10.27.99.135, af=AF_INET, use_rtp=1
.[0;32mI (4498) sipphone: call: alloc with params laddr=10.27.99.135, af=AF_INET, use_rtp=1
.[0m
call: use_video=0
.[0;32mI (4518) sipphone: call: use_video=0
.[0m
call: connecting to 'sip:[email protected]'..
.[0;32mI (4518) sipphone: call: connecting to 'sip:[email protected]'..
.[0m
.[31mcall: sipsess_connect: Invalid argument
.[;m.[0;32mI (4538) sipphone: call: sipsess_connect: Invalid argument
.[0m
audio: destroyed (started=0)
.[0;32mI (4538) sipphone: audio: destroyed (started=0)
.[0m
call: alloc with params laddr=10.27.99.135, af=AF_INET, use_rtp=1
.[0;32mI (4558) sipphone: call: alloc with params laddr=10.27.99.135, af=AF_INET, use_rtp=1
.[0m
call: use_video=0
.[0;32mI (4578) sipphone: call: use_video=0
.[0m
call: connecting to 'sip:[email protected]'..
.[0;32mI (4578) sipphone: call: connecting to 'sip:[email protected]'..
.[0m
.[31mcall: sipsess_connect: Invalid argument
.[;m.[0;32mI (4598) sipphone: call: sipsess_connect: Invalid argument
.[0m
audio: destroyed (started=0)
.[0;32mI (4598) sipphone: audio: destroyed (started=0)
.[0m
And this
call: alloc with params laddr=0.0.0.0, af=AF_INET, use_rtp=1
.[0;32mI (4518) sipphone: call: alloc with params laddr=0.0.0.0, af=AF_INET, use_rtp=1
.[0m
call: use_video=0
.[0;32mI (4528) sipphone: call: use_video=0
.[0m
call: connecting to 'sip:[email protected]'..
.[0;32mI (4528) sipphone: call: connecting to 'sip:[email protected]'..
.[0m
.[31mcall: sipsess_connect: Unknown protocol
.[;m.[0;32mI (4548) sipphone: call: sipsess_connect: Unknown protocol
.[0m
audio: destroyed (started=0)
.[0;32mI (4558) sipphone: audio: destroyed (started=0)
.[0m
call: alloc with params laddr=0.0.0.0, af=AF_INET, use_rtp=1
.[0;32mI (4558) sipphone: call: alloc with params laddr=0.0.0.0, af=AF_INET, use_rtp=1
.[0m
call: use_video=0
.[0;32mI (4578) sipphone: call: use_video=0
.[0m