<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi guys,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have a problem w/ the DUV 1000 ( <A
href="http://corp.deltathree.com/productsandservices/dialup.html">http://corp.deltathree.com/productsandservices/dialup.html</A> ) </FONT></DIV>
<DIV><FONT face=Arial size=2>hardware device. I'm using www_authorize in my
ser.cfg on every </FONT><FONT face=Arial size=2>call forward (pstn) to prevent
</FONT></DIV>
<DIV><FONT face=Arial size=2>other sip proxies to forwad traffic to me:
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM> if
(uri=~"^sip:00") {<BR> log(0,
"\n\n************ B2BUA ***********\n");</EM></FONT></DIV>
<DIV><FONT face=Arial size=2><EM></EM></FONT> </DIV>
<DIV><FONT face=Arial size=2><EM>
if((!src_ip=="12.34.56.78")||(!src_ip=="1.2.3.4")){<BR>#
if (!proxy_authorize("12.34.56.78", "subscriber"))
{<BR>#
proxy_challenge("12.34.56.78",
"1");<BR>#
};<BR>
if (!www_authorize("12.34.56.78", "subscriber"))
{<BR>
www_challenge("12.34.56.78",
"1");<BR>
break;<BR>
};<BR>
};<BR>strip(0);<BR>
rewritehostport("1.2.3.4:11234");<BR>
append_branch("1.2.3.4");<BR>
t_relay();<BR> t_relay_to_udp("1.2.3.4",
"11234");<BR> append_hf("P-hint:
VoipSwitch GATEWAY\r\n");<BR> log(0,
"********************************************\n\n\n");<BR>
break;<BR> };</EM><BR></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG>When I try to call 00xxxxxx the DUV device
doesn't authorize to the ser and the call fails. The same happens when
proxy_authorize is used. </STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><STRONG>Here is the sniffer log:
</STRONG></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2><EM>#<BR>U 34.56.87.12:5060 ->
12.34.56.78:5060<BR>INVITE sip:00359123456@12.34.56.78 SIP/2.0.<BR>Via:
SIP/2.0/UDP 34.56.87.12:5060.<BR>From: 6789
<sip:6789@12.34.56.78>;tag=10311.<BR>To:
sip:00359123456@12.34.56.78.<BR>Call-ID: </EM><A
href="mailto:20495@34.56.87.12"><EM>20495@34.56.87.12</EM></A><EM>.<BR>Contact:
sip:6789@34.56.87.12:5060.<BR>CSeq: 8112 INVITE.<BR>Max-Forwards:
70.<BR>Content-Length: 119.<BR>User-Agent: DUV1000
(dlk2.62)6789.<BR>Content-Type: application/sdp.<BR>.<BR>v=0.<BR>o=dlink 4526
9013 IN IP4 34.56.87.12.<BR>s=Session SDP.<BR>c=IN IP4 34.56.87.12.<BR>t=0
0.<BR>m=audio 6868 RTP/AVP 4 4 4.<BR>.</EM></FONT></FONT></DIV>
<DIV><EM></EM> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2><EM>#<BR>U 12.34.56.78:5060 ->
34.56.87.12:5060<BR>SIP/2.0 401 Unauthorized.<BR>Via: SIP/2.0/UDP
34.56.87.12:5060.<BR>From: 6789 <sip:6789@12.34.56.78>;tag=10311.<BR>To:
sip:00359123456@12.34.56.78;tag=89fc68a3caf42d7e2d6038f5511e0f83.d0d2.<BR>Call-ID:
</EM><A
href="mailto:20495@34.56.87.12"><EM>20495@34.56.87.12</EM></A><EM>.<BR>CSeq:
8112 INVITE.<BR>WWW-Authenticate: Digest realm="12.34.56.78",
nonce="423ab89f16ace6d2361b2f280fbcc0a1e55f06e1", qop="auth".<BR>Server: Sip
EXpress router (0.9.0 (i386/linux)).<BR>Content-Length: 0.<BR>Warning: 392
12.34.56.78:5060 "Noisy feedback tells: pid=29694 req_src_ip=34.56.87.12
req_src_port=5060 in_uri=sip:00359123456@12.34.56.78
out_uri=sip:00359123456@12.34.56.78 via_cnt==1".<BR>.</EM></FONT></FONT></DIV>
<DIV><EM></EM> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2><EM>#<BR>U 34.56.87.12:5060 ->
12.34.56.78:5060<BR>ACK sip:00359123456@12.34.56.78 SIP/2.0.<BR>Via: SIP/2.0/UDP
34.56.87.12:5060.<BR>From: 6789 <sip:6789@12.34.56.78>;tag=10311.<BR>To:
sip:00359123456@12.34.56.78.<BR>Call-ID: </EM><A
href="mailto:20495@34.56.87.12"><EM>20495@34.56.87.12</EM></A><EM>.<BR>Contact:
sip:6789@34.56.87.12:5060.<BR>CSeq: 8112 ACK.<BR>Max-Forwards:
70.<BR>Content-Length: 0.<BR>User-Agent: DUV1000
(dlk2.62)6789.<BR>.</EM></FONT></FONT></DIV>
<DIV><EM></EM> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2><EM>#<BR>U 34.56.87.12:5060 ->
12.34.56.78:5060<BR>INVITE sip:00359123456@12.34.56.78 SIP/2.0.<BR>Via:
SIP/2.0/UDP 34.56.87.12:5060.<BR>From: 6789
<sip:6789@12.34.56.78>;tag=17031.<BR>To:
sip:00359123456@12.34.56.78.<BR>Call-ID: </EM><A
href="mailto:30054@34.56.87.12"><EM>30054@34.56.87.12</EM></A><EM>.<BR>Contact:
sip:6789@34.56.87.12:5060.<BR>CSeq: 8288 INVITE.<BR>Max-Forwards:
70.<BR>Content-Length: 119.<BR>Authorization: Digest
username="6789",realm="12.34.56.78",nonce="423ab89f16ace6d2361b2f280fbcc0a1e55f06e1",uri="sip:00359123456@12.34.56.78",algorithm=MD5,qop="auth",nc=00000006,cnonce="11367",response="ef6972dc5229d88060a952c10bdb2789".<BR>User-Agent:
DUV1000 (dlk2.62)6789.<BR>Content-Type: application/sdp.<BR>.<BR>v=0.<BR>o=dlink
4526 9013 IN IP4 34.56.87.12.<BR>s=Session SDP.<BR>c=IN IP4 34.56.87.12.<BR>t=0
0.<BR>m=audio 7044 RTP/AVP 4 4 4.</EM></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2>It seems that DUV sends authorization
information ... but not correct maybe. Without www_autorize and proxy_authorize
the device is able to place calls. </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT size=2>Thanks in advance,</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT
size=2>Pavel</DIV></FONT></FONT></BODY></HTML>