Not quite sure if cpled is sending the message. Can you ngrep the sip message? If it sends from localhost, need to use option "-d lo". A good cpl-c register log is like this, (mime found 3, 4, not 0, 0)
DEBUG:cpl_process_register: Content-Type mime found 3, 4 DEBUG:cpl_process_register: carrying CPL -> look at Content-Disposition *** Disposition type=<script>[6] *** DIsposition param: <action>[6]=<store>[5] is_quoted=0 DEBUG:cpl-c:get_dest_user: tring to get user from new_uri DEBUG:cpl-c:get_dest_user: tring to get user from R_uri DEBUG:cpl-c:get_dest_user: tring to get user from To parse_headers: flags=-1 DEBUG:cpl:write_to_db:User 123@test.org already in CPL database -> update parse_headers: flags=-1 check_via_address(66.1.2.3, 127.0.0.1, 0)
--- ser die serdiehard@yahoo.com wrote:
hello richard
still it gives the fial cpl registering
the total log is
********************************************************
6(17988) SIP Request: 6(17988) method: <REGISTER> 6(17988) uri: sip:xxx.xxx.net:5060 6(17988) version: <SIP/2.0> 6(17988) parse_headers: flags=1 6(17988) end of header reached, state=5 6(17988) parse_headers: Via found, flags=1 6(17988) parse_headers: this is the first via 6(17988) After parse_msg... 6(17988) preparing to run routing scripts... 6(17988) DEBUG : is_maxfwd_present: searching for max_forwards header 6(17988) parse_headers: flags=128 6(17988) end of header reached, state=9 6(17988) DEBUG: get_hdr_field: <To> [32]; uri=[sip:214103@xxx.xxx.net] 6(17988) DEBUG: to body [sip:214103@xxx.xxx.net] 6(17988) get_hdr_field: cseq <CSeq>: <1> <REGISTER> 6(17988) DEBUG: get_hdr_body : content_length=0 6(17988) found end of header 6(17988) DEBUG: is_maxfwd_present: max_forwards header not found! 6(17988) check_via_address(202.*.*.84, 202.*.*.84, 0) 6(17988) parse_headers: flags=256 6(17988) find_first_route(): No Route headers found 6(17988) loose_route(): There is no Route HF 6(17988) check_self - checking if host==us: 17==9 && [xxx.xxx.net] == [127.0.0.1] 6(17988) check_self - checking if port 5060 matches port 5060 6(17988) check_self - checking if host==us: 17==13 && [xxx.xxx.net] == [202.*.*.19] 6(17988) check_self - checking if port 5060 matches port 5060 6(17988) check_self - checking if host==us: 17==9 && [xxx.xxx.net] == [127.0.0.1] 6(17988) check_self - checking if port 5060 matches port 5060 6(17988) check_self - checking if host==us: 17==13 && [xxx.xxx.net] == [202.*.*.19] 6(17988) check_self - checking if port 5060 matches port 5060 6(17988) parse_headers: flags=4096 6(17988) pre_auth(): Credentials with given realm not found 6(17988) build_auth_hf(): 'WWW-Authenticate: Digest realm="xxx.xxx.net", nonce="411b3c2eeb0cedfb65da5f5a2fd9dc5a849c920b" ' 6(17988) parse_headers: flags=-1 6(17988) check_via_address(202.*.*.84, 202.*.*.84, 0) 6(17988) receive_msg: cleaning up 7(17994) SIP Request: 7(17994) method: <REGISTER> 7(17994) uri: sip:xxx.xxx.net:5060 7(17994) version: <SIP/2.0> 7(17994) parse_headers: flags=1 7(17994) end of header reached, state=5 7(17994) parse_headers: Via found, flags=1 7(17994) parse_headers: this is the first via 7(17994) After parse_msg... 7(17994) preparing to run routing scripts... 7(17994) DEBUG : is_maxfwd_present: searching for max_forwards header 7(17994) parse_headers: flags=128 7(17994) end of header reached, state=9 7(17994) DEBUG: get_hdr_field: <To> [32]; uri=[sip:215104@xxx.xxx.net] 7(17994) DEBUG: to body [sip:215104@xxx.xxx.net] 7(17994) get_hdr_field: cseq <CSeq>: <2> <REGISTER> 7(17994) DEBUG: get_hdr_body : content_length=0 7(17994) found end of header 7(17994) DEBUG: is_maxfwd_present: max_forwards header not found! 7(17994) check_via_address(202.*.*.84, 202.*.*.84, 0) 7(17994) parse_headers: flags=256 7(17994) find_first_route(): No Route headers found 7(17994) loose_route(): There is no Route HF 7(17994) check_self - checking if host==us: 17==9 && [xxx.xxx.net] == [127.0.0.1] 7(17994) check_self - checking if port 5060 matches port 5060 7(17994) check_self - checking if host==us: 17==13 && [xxx.xxx.net] == [202.*.*.19] 7(17994) check_self - checking if port 5060 matches port 5060 7(17994) check_self - checking if host==us: 17==9 && [xxx.xxx.net] == [127.0.0.1] 7(17994) check_self - checking if port 5060 matches port 5060 7(17994) check_self - checking if host==us: 17==13 && [xxx.xxx.net] == [202.*.*.19] 7(17994) check_self - checking if port 5060 matches port 5060 7(17994) parse_headers: flags=4096 7(17994) pre_auth(): Credentials with given realm not found 7(17994) build_auth_hf(): 'WWW-Authenticate: Digest realm="xxx.xxx.net", nonce="411b3c2eeb0cedfb65da5f5a2fd9dc5a849c920b" ' 7(17994) parse_headers: flags=-1 7(17994) check_via_address(202.*.*.84, 202.*.*.84, 0) 7(17994) receive_msg: cleaning up 5(17981) SIP Request: 5(17981) method: <REGISTER> 5(17981) uri: sip:xxx.xxx.net:5060 5(17981) version: <SIP/2.0> 5(17981) parse_headers: flags=1 5(17981) end of header reached, state=5 5(17981) parse_headers: Via found, flags=1 5(17981) parse_headers: this is the first via 5(17981) After parse_msg... 5(17981) preparing to run routing scripts... 5(17981) DEBUG : is_maxfwd_present: searching for max_forwards header 5(17981) parse_headers: flags=128 5(17981) end of header reached, state=9 5(17981) DEBUG: get_hdr_field: <To> [32]; uri=[sip:214103@xxx.xxx.net] 5(17981) DEBUG: to body [sip:214103@xxx.xxx.net] 5(17981) get_hdr_field: cseq <CSeq>: <3> <REGISTER> 5(17981) DEBUG: get_hdr_body : content_length=0 5(17981) found end of header 5(17981) DEBUG: is_maxfwd_present: max_forwards header not found! 5(17981) check_via_address(202.*.*.84, 202.*.*.84, 0) 5(17981) parse_headers: flags=256 5(17981) find_first_route(): No Route headers found 5(17981) loose_route(): There is no Route HF 5(17981) check_self - checking if host==us: 17==9 && [xxx.xxx.net] == [127.0.0.1] 5(17981) check_self - checking if port 5060 matches port 5060 5(17981) check_self - checking if host==us: 17==13 && [xxx.xxx.net] == [202.*.*.19] 5(17981) check_self - checking if port 5060 matches port 5060 5(17981) check_self - checking if host==us: 17==9 && [xxx.xxx.net] == [127.0.0.1] 5(17981) check_self - checking if port 5060 matches port 5060 5(17981) check_self - checking if host==us: 17==13 && [xxx.xxx.net] == [202.*.*.19] 5(17981) check_self - checking if port 5060 matches port 5060 5(17981) check_nonce(): comparing [411b3c2eeb0cedfb65da5f5a2fd9dc5a849c920b] and [411b3c2eeb0cedfb65da5f5a2fd9dc5a849c920b] 5(17981) query="select password from subscriber where username='214103' AND domain='xxx.xxx.net'" 5(17981) HA1 string calculated: 0984246f25855fa6513a3125ab956f58 5(17981) check_response(): Our result = '8bdb1022aada3388b8b2ef0f6b0cd150' 5(17981) check_response(): Authorization is OK 5(17981) save_rpid(): rpid value is '' 5(17981) parse_headers: flags=1024 5(17981) DEBUG:parse_content_type_hdr: missing Content-Typeheader 5(17981) DEBUG:cpl_process_register: Content-Type mime found 0, 0 5(17981) parse_headers: flags=1048576 5(17981) DEBUG:parse_accept_hdr: missing Accept header 5(17981) XLOG: xl_print_log: final buffer length 29 5(17981) Error: fail cpl registering 5(17981) receive_msg: cleaning up
*******************************************************
with regards serdiehard
=== message truncated ===
__________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail