pjsua2 doesn't answer invite challenge

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I found out that when I register using IP (177.66.XXX.XXX) I can make 
outgoing calls, but when I register using domain (mydomain.com) the 
server responds UNAUTHORIZED and pjsua2 doesn't understands this and 
doesn't resend INVITE with the challenge answer.

I captured the sip trace on the device and pjsua2 received UNAUTHORIZED 
and sent only ACK.

Aduilio

Em 29-05-2014 10:21, Adu?lio escreveu:
> I'm using pjsua2, version 2.2.1, built for Android.
>
> It's registering correctly but when it makes outgoing calls the server 
> responds UNAUTHORIZED and pjsua2 doesn't understands this and doesn't 
> resend INVITE with the challenge answer.
>
> My server must authenticate the INVITE.
>
> accCfg.setIdUri("sip:" + user + "@" + domain + ":" + port);
> accCfg.getNatConfig().setIceEnabled(true);
> accCfg.getRegConfig().setRegistrarUri("sip:" + domain + ":" + port);
> accCfg.getRegConfig().setTimeoutSec(timeout);
> AuthCredInfoVector creds = accCfg.getSipConfig().getAuthCreds();
> creds.clear();
> creds.add(new AuthCredInfo("Digest", "*", user, 0, password));
> try {
>     account.modify(accCfg);
> } catch (Exception e) {
>     e.printStackTrace();
> }
>
> MyCall call = new MyCall(account, -1);
> CallOpParam prm = new CallOpParam(true);
> CallSetting opt = prm.getOpt();
> opt.setAudioCount(1);
> opt.setVideoCount(0);
> try {
>     call.makeCall("sip:" + dialedNumber + "@" + domain, prm);
> } catch (Exception e) {
>     e.printStackTrace();
>     call.delete();
>     return;
> }
>
> Aduilio
>
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>

-- 
Leucotron Telecom
*Atenciosamente.*
*Adu?lio Eduardo da Silva*
/Analista de Software Jr./
Skypeleucotron.aduilio <skype:leucotron.aduilio?chat>
Tel +55 (35) 3471-9595
www.leucotron.com.br <http://www.leucotron.com.br/>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140602/2cb6ab9a/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux