Hi again,
I have only UID0 and UID1 and GKorProxy and use Sip, nothing in gateway. I'm not sure where to set my domain in ser. My hostname in /etc/sysconfig/network is set to sip.coptalk.com. Should I change it just to sip? I have several aliases I have placed trying to get things working in ser.cfg,
alias="coptalk.com" alias="sip" alias="sip.coptalk.com
Besides that the only other place which has my domain in ser.cfg is the if (uri==myself) { if (method=="REGISTER") { # digest authentication log(1,"request for registration"); # if (!www_authorize("coptalk.com", "subscriber")) { # www_challenge("coptalk.com", "0"); # break; # }; save("location"); break; };
As you see I have commented out the www_authorize because if I don't Xten lite cannot login. It and the ata just get the 401 unauthorized error. Currently, I can dial out to a number, immediately the display on the xten phone says error 404 user not found and just plays fast busy. Then phone I was dialing out to, rings and if you pick it up there is nothing there. I have to use the Xten for testing because with sip reg on, the ata does not even get a dial tone. :p
I would like to think, with the call actually being passed to my gateway and a return SIP/2.0 200 OK..Via: SIP/2.0/UDP, I must be getting close...
Thanks again for all your help,
Rick
At 12:45 PM 12/15/2003 +0100, Jesus Rodriguez wrote:
On Fri, 12 Dec 2003, Rick Gocher wrote:
Hello,
I'm not sure how to change the way the ata sends it credentials. I have my name Rick listed for the UID:0 and UID:1 and the password for that user. I filled in the gateway as both an IP and FQDN with neither changing the actual problem. I tried placing @coptalk.com and @sip.coptalk.com behind my UID: i.e. Rick@sip.coptalk.com but then the ngrep reports Unauthorized. etc. sip:Rick@sip.coptalk.com@sip.coptalk.com.... If I can't change the ata perhaps I can change the way ser challenges?
With Cisco ATA you don't need the gateway field. You have to fill:
UID0 PWD0 GkOrProxy UseSIP
(and others, but these are required).
For example, you have:
UID0 = Rick PWD0 = password GkOrProxy = sip.coptalk.com UseSIP = 1
Then, in SER you have to set you domain as sip.coptalk.com and NOT coptalk.com. You MUST use the same domain in SER and ATA. If you set GkOrPRoxy in ATA as coptalk.com then SER must challenge coptalk.com.
Regards.
At 12:42 AM 12/12/2003 +0100, Jesus Rodriguez wrote:
On Thu, 11 Dec 2003, Rick Gocher wrote:
Hello,
Just me, still trying to get authentication working... I have found by placing a high debug value and starting ser I received some errors
I never
saw before as I had no ata box plugged in during the startup. I'm
not sure
if this points to why I can't authenticate. When the output says
there is
no routing headers, is that the fault of my ATA?
I think was Jan who gave you the answer. SER is trying to challenge with domain sip.coptalk.com but you are sending credentials as coptalk.com
Dec 11 16:07:19 sip ser: 8(4583) SIP Request: Dec 11 16:07:19 sip ser: 8(4583) method: <REGISTER> Dec 11 16:07:19 sip ser: 8(4583) uri: sip:sip.coptalk.com Dec 11 16:07:19 sip ser: 8(4583) version: <SIP/2.0> Dec 11 16:07:19 sip ser: 8(4583) parse_headers: flags=1 Dec 11 16:07:19 sip ser: 8(4583) end of header reached, state=5 Dec 11 16:07:19 sip ser: 8(4583) parse_headers: Via found, flags=1 Dec 11 16:07:19 sip ser: 8(4583) parse_headers: this is the first via Dec 11 16:07:19 sip ser: 8(4583) After parse_msg... Dec 11 16:07:19 sip ser: 8(4583) preparing to run routing scripts... Dec 11 16:07:19 sip ser: 8(4583) entering main route 8(4583) DEBUG : is_maxfwd_present: searching for max_forwards header Dec 11 16:07:19 sip ser: 8(4583) parse_headers: flags=128 Dec 11 16:07:19 sip ser: 8(4583) end of header reached, state=8 Dec 11 16:07:19 sip ser: 8(4583) DEBUG: get_hdr_field: <To> [27]; uri=[sip:Rick@sip.coptalk.com] Dec 11 16:07:19 sip ser: Dec 11 16:07:19 sip ser: ] Dec 11 16:07:19 sip ser: 8(4583) get_hdr_field: cseq <CSeq>: <7>
<REGISTER> > Dec 11 16:07:19 sip ser: 8(4583) DEBUG: get_hdr_body :
content_length=0
Dec 11 16:07:19 sip ser: 8(4583) found end of header Dec 11 16:07:19 sip ser: 8(4583) DEBUG: is_maxfwd_present:
max_forwards
header not found! Dec 11 16:07:19 sip ser: 8(4583) DEBUG: add_param: tag=1804086518 Dec 11 16:07:19 sip ser: 8(4583) end of header reached, state=29 Dec 11 16:07:19 sip ser: 8(4583) parse_headers: flags=256 Dec 11 16:07:19 sip ser: 8(4583) find_first_route(): No Route headers
found
Dec 11 16:07:19 sip ser: 8(4583) loose_route(): There is no Route HF Dec 11 16:07:19 sip ser: 8(4583) check_self - checking if
host==us: 16==9
&& [sip.coptalk.com] == [127.0.0.1] Dec 11 16:07:19 sip ser: 8(4583) check_self - checking if port 5060 matches port 5060 Dec 11 16:07:19 sip ser: 8(4583) check_self - checking if
host==us: 16==13
&& [sip.coptalk.com] == [64.189.165.205] Dec 11 16:07:19 sip ser: 8(4583) check_self - checking if port 5060 matches port 5060 Dec 11 16:07:19 sip ser: 8(4583) request for registration 8(4583) check_nonce(): comparing [3fd907c2aa2d6c72cd666f9109e45155055b2d36] and [3fd907c23a57f75133a55828041f2c9ee7b081c2] Dec 11 16:07:19 sip ser: 8(4583) pre_auth(): Invalid nonce value
received,
very suspicious ! Dec 11 16:07:19 sip ser: Dec 11 16:07:19 sip ser: ' Dec 11 16:07:19 sip ser: 8(4583) parse_headers: flags=-1 Dec 11 16:07:19 sip ser: 8(4583) check_via_address(64.189.165.206, 64.189.165.206, 0) Dec 11 16:07:19 sip ser: 8(4583) receive_msg: cleaning up Dec 11 16:07:19 sip ser: 6(4581) SIP Request: Dec 11 16:07:19 sip ser: 6(4581) method: <REGISTER> Dec 11 16:07:19 sip ser: 6(4581) uri: sip:sip.coptalk.com Dec 11 16:07:19 sip ser: 6(4581) version: <SIP/2.0> Dec 11 16:07:19 sip ser: 6(4581) parse_headers: flags=1 Dec 11 16:07:19 sip ser: 6(4581) end of header reached, state=5 Dec 11 16:07:19 sip ser: 6(4581) parse_headers: Via found, flags=1 Dec 11 16:07:19 sip ser: 6(4581) parse_headers: this is the first via Dec 11 16:07:19 sip ser: 6(4581) After parse_msg... Dec 11 16:07:19 sip ser: 6(4581) preparing to run routing scripts... Dec 11 16:07:19 sip ser: 6(4581) entering main route 6(4581) DEBUG : is_maxfwd_present: searching for max_forwards header Dec 11 16:07:19 sip ser: 6(4581) parse_headers: flags=128 Dec 11 16:07:19 sip ser: 6(4581) end of header reached, state=8 Dec 11 16:07:19 sip ser: 6(4581) DEBUG: get_hdr_field: <To> [27]; uri=[sip:Rick@sip.coptalk.com] Dec 11 16:07:19 sip ser: Dec 11 16:07:19 sip ser: ] Dec 11 16:07:19 sip ser: 6(4581) get_hdr_field: cseq <CSeq>: <8>
<REGISTER> > Dec 11 16:07:19 sip ser: 6(4581) DEBUG: get_hdr_body :
content_length=0
Dec 11 16:07:19 sip ser: 6(4581) found end of header Dec 11 16:07:19 sip ser: 6(4581) DEBUG: is_maxfwd_present:
max_forwards
header not found! Dec 11 16:07:19 sip ser: 6(4581) DEBUG: add_param: tag=1804086518 Dec 11 16:07:19 sip ser: 6(4581) end of header reached, state=29 Dec 11 16:07:19 sip ser: 6(4581) parse_headers: flags=256 Dec 11 16:07:19 sip ser: 6(4581) find_first_route(): No Route headers
found
Dec 11 16:07:19 sip ser: 6(4581) loose_route(): There is no Route HF Dec 11 16:07:19 sip ser: 6(4581) check_self - checking if
host==us: 16==9
&& [sip.coptalk.com] == [127.0.0.1] Dec 11 16:07:19 sip ser: 6(4581) check_self - checking if port 5060 matches port 5060 Dec 11 16:07:19 sip ser: 6(4581) check_self - checking if
host==us: 16==13
&& [sip.coptalk.com] == [64.189.165.205] Dec 11 16:07:19 sip ser: 6(4581) check_self - checking if port 5060 matches port 5060 Dec 11 16:07:20 sip ser: 6(4581) request for registration 6(4581) check_nonce(): comparing [3fd907e3929aea9bad25fbd47b3ea062d9215574] and [3fd907e3929aea9bad25fbd47b3ea062d9215574] Dec 11 16:07:20 sip ser: 6(4581) get_ha1(): no result for user 'Rick@coptalk.com' Dec 11 16:07:20 sip ser: Dec 11 16:07:20 sip ser: ' Dec 11 16:07:20 sip ser: 6(4581) parse_headers: flags=-1 Dec 11 16:07:20 sip ser: 6(4581) check_via_address(64.189.165.206, 64.189.165.206, 0) Dec 11 16:07:20 sip ser: 6(4581) receive_msg: cleaning up
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
Saludos JesusR.
Jesus Rodriguez VozTelecom Sistemas, S.L. jesusr@voztele.com http://www.voztele.com Tel. 902360305
Saludos JesusR.
Jesus Rodriguez VozTelecom Sistemas, S.L. jesusr@voztele.com http://www.voztele.com Tel. 902360305