pjsip-android icon indicating copy to clipboard operation
pjsip-android copied to clipboard

i have a questen about register sip servicer

Open gaoruiqing187 opened this issue 2 years ago • 1 comments

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

gaoruiqing187 avatar Dec 07 '23 09:12 gaoruiqing187

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

aenonGit avatar Dec 11 '23 08:12 aenonGit

closing due to inactivity

aenonGit avatar Aug 06 '24 15:08 aenonGit