VoiSmart / pjsip-android

SIP Service for Android based on PJSIP
http://www.pjsip.org/
Apache License 2.0
290 stars 140 forks source link

i have a questen about register sip servicer #202

Closed gaoruiqing187 closed 2 months ago

gaoruiqing187 commented 10 months ago

mSipAccount = new SipAccountData(); mSipAccount.setHost("ctr1.diankongcloud.cn") .setPort(8089) .setTransport(SipAccountTransport.UDP) .setRealm("ctr1.diankongcloud.cn:8089") .setUsername("700000011321001") .setPassword("12345678");

    SipServiceCommand.setAccount(this,mSipAccount);
    SipServiceCommand.getCodecPriorities(this);

this is my code ,in onRegistration callback registrationStateCode is 502, in log info,i found the message is Sip Reg Info - Code: 502, Reason: gethostbyname() has returned error (PJ_ERESOLVE), Exp: 300, Status: 0 i don’t understand how to fix that,can you help me ?

My purpose is to get sip signaling information, is there any way to get it,the signaling information looks like the information in this picture 3a064b0a247db65b4980f24d0014f2fb

aenonGit commented 10 months ago

502 means pjsip cannot communicate with server (bad gateway). You should check server side if you should add anything more, eg: a proxy

aenonGit commented 2 months ago

closing due to inactivity