Android Question i can not hear remote ring using Sip library

Discussion in 'Android Questions' started by RobertG ChuriónR, Apr 30, 2019.

  1. RobertG ChuriónR

    RobertG ChuriónR New Member Licensed User

    Hi, I'm using your example to create a sip-client, I have a problem, I do not hear the remote ring or the operator's messages before sending to voicemail, but if the person answers the call, the audio is full, i ear the other person and i can to talk without problems. How can I get the audio before the call is answered? Thanks you.

    Robert G.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Try to start the audio after calling MakeCall:
    Code:
    CurrentCall = Sip.MakeCall(...)
    Sleep(
    1000'maybe needed and maybe not.
    CurrentCall.StartAudio 'Start the audio
       CurrentCall.SpeakerMode = True
     
  3. RobertG ChuriónR

    RobertG ChuriónR New Member Licensed User

    Thanks for answering, I already tried that option and I get the following error:

    CallError, ErrorCode=-4, ErrorMessage=mPeerSd = null

    Then, the app stops working but the call continues until the other party hangs up.
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    I've checked the documentation. It does say that you need to call StartAudio after the call is established. I don't think that you can do anything before.
     
  5. RobertG ChuriónR

    RobertG ChuriónR New Member Licensed User

    I downloaded your example and replace the following:

    'Register with the VOIP service
    Sip.Initialize2("SIP", "sip:zzz@iptel.org", "xxx")

    by: Sip.Initialize2("SIP", "sip:5003@192.168.10.110", "Rg123456")

    and..

    CurrentCall = Sip.MakeCall("sip:8355@ideasip.com", 30)

    by: CurrentCall = Sip.MakeCall("sip:573108712160@192.168.10.110", 30)

    and Runs, touch "Make Call", in few seconds my mobile phone rings, but in app not hear, then, if i don't answer my mobile, in the app NO hear "voice mail system, will have cost from this moment, please Leave your message after the tone" only hear when call is stablished (the tone has been played) and minute is billed and voice mail operator's play a message for i record a message.
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    This is how the native SIP SDK works.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice