[ previous ] [ next ] [ threads ]
 To :  yate@v...:
 From :  "martin A." <acevedoma@h...>
 Subject :  How to reject calls
 Date :  Tue, 27 Dec 2005 11:14:50 +0000
I need to reject calls that come from a non authenticated user, I've put 
${username}^$=-;error=noauth this but it generates an infinite loop sending 
unauthorized message


 Sending code 401 0x80b3158 to 10.0.0.124:1110
------
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 10.0.0.124:1110;received=10.0.0.124;rport=1110
From: "HHHH" 
;tag=bb873e16-baf4-1810-9229-00e07df2c0d5
To: 
Call-ID: bb873e16-baf4-1810-9228-00e07df2c0d5@PC04
CSeq: 51 INVITE
WWW-Authenticate: Digest realm="realm", 
nonce="ed7f0d47a95190220bbe24b1be66150d.1135681609", stale=FALSE, 
algorithm=MD5
Contact: 
Server: proxy_sip
Allow: ACK, INVITE, BYE, CANCEL, REGISTER
Content-Length: 0




I used a regfile to authenticate users.... I think that ${username} is 
always empty,  is  there another manner to do this?

the client is an opal end point....

thanks