yate icon indicating copy to clipboard operation
yate copied to clipboard

Yate can't connect to SIP provider

Open styleex opened this issue 9 years ago • 2 comments

REGISTER sip:permngn.usi.ru:5060 SIP/2.0
Contact: <sip:[email protected]:5160>
Expires: 600
To: <sip:[email protected]:5060>
Via: SIP/2.0/UDP 192.168.10.97:5160;rport;branch=z9hG4bK814382474
From: <sip:[email protected]:5060>;tag=533209016
Call-ID: [email protected]:5060
CSeq: 127 REGISTER
User-Agent: YATE/4.1.0
Max-Forwards: 70
Allow: ACK, INVITE, BYE, CANCEL, REGISTER, REFER, OPTIONS, INFO
Content-Length: 0

SIP/2.0 100 Trying
From: <sip:[email protected]:5060>;tag=533209016
To: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 127 REGISTER
Via: SIP/2.0/UDP 192.168.10.97:5160;rport=5160;branch=z9hG4bK814382474
Content-Length: 0

SIP/2.0 407 Proxy Authentication Required
From: <sip:[email protected]:5060>;tag=533209016
To: <sip:[email protected]:5060>;tag=1824228324
Call-ID: [email protected]:5060
CSeq: 127 REGISTER
Via: SIP/2.0/UDP 192.168.10.97:5160;rport=5160;branch=z9hG4bK814382474
supported: com.nortelnetworks.firewall,p-3rdpartycontrol,nosec,join
proxy-authenticate: Digest realm="Realm",nonce="MTQzOTg4MTk5Mjk2MGZkYTBiMzRmM2E1M2JhZmU0YjhhYWY3MjAwZDhmM2Fh",stale=false,algorithm=MD5,qop="auth,auth-int"
Content-Length: 0

REGISTER sip:permngn.usi.ru:5060 SIP/2.0
Contact: <sip:[email protected]:5160>
Expires: 600
To: <sip:[email protected]:5060>
Via: SIP/2.0/UDP 192.168.10.97:5160;rport;branch=z9hG4bK1260412158
From: <sip:[email protected]:5060>;tag=533209016
Call-ID: [email protected]:5060
User-Agent: YATE/4.1.0
Max-Forwards: 70
Allow: ACK, INVITE, BYE, CANCEL, REGISTER, REFER, OPTIONS, INFO
CSeq: 128 REGISTER
Content-Length: 0

SIP/2.0 100 Trying
From: <sip:[email protected]:5060>;tag=533209016
To: <sip:[email protected]:5060>
Call-ID: [email protected]:5060
CSeq: 128 REGISTER
Via: SIP/2.0/UDP 192.168.10.97:5160;rport=5160;branch=z9hG4bK1260412158
Content-Length: 0

SIP/2.0 407 Proxy Authentication Required
From: <sip:[email protected]:5060>;tag=533209016
To: <sip:[email protected]:5060>;tag=368007154
Call-ID: [email protected]:5060
CSeq: 128 REGISTER
Via: SIP/2.0/UDP 192.168.10.97:5160;rport=5160;branch=z9hG4bK1260412158
supported: com.nortelnetworks.firewall,p-3rdpartycontrol,nosec,join
proxy-authenticate: Digest realm="Realm",nonce="MTQzOTg4MTk5Mjk2MGZkYTBiMzRmM2E1M2JhZmU0YjhhYWY3MjAwZDhmM2Fh",stale=false,algorithm=MD5,qop="auth,auth-int"
Content-Length: 0

\

styleex avatar Aug 18 '15 14:08 styleex

Yate only supports qop="auth" currently.

Кстати, если запускать yate с -vvv, она честно в этом сознается: https://github.com/vir/yate/blob/master/libs/ysip/engine.cpp#L493

На самом деле qop вообще не поддерживался, но я в своё время уговорил его добавить. Рекомендую попинать на эту тему авторов, конкретно Пола. В принципе, я мог бы добавить поддержку этого qop="auth,auth-int" в соём форке, но сейчас категорически некогда, да и правильнее это делать в upstream.

vir avatar Aug 19 '15 07:08 vir

О! Спасибо большое! Сейчас хоть знаю куда копать. Чтож, буду тоже писать разработчикам

styleex avatar Aug 19 '15 09:08 styleex