[Serusers] cpl is not registering with ser

ser die serdiehard at yahoo.com
Thu Aug 12 09:38:42 CEST 2004


hello friends,

i could not able to register my cpl script with the
ser

iam using latest cvs head of 

in my log this is what iam getting
the total log is


********************************************************

5(3375) SIP Request:
 5(3375)  method:  <REGISTER>
 5(3375)  uri:     <sip:xxx.xxx.net:5060>
 5(3375)  version: <SIP/2.0>
 5(3375) parse_headers: flags=1
 5(3375) end of header reached, state=5
 5(3375) parse_headers: Via found, flags=1
 5(3375) parse_headers: this is the first via
 5(3375) After parse_msg...
 5(3375) preparing to run routing scripts...
 5(3375) DEBUG : is_maxfwd_present: searching for
max_forwards header
 5(3375) parse_headers: flags=128
 5(3375) end of header reached, state=9
 5(3375) DEBUG: get_hdr_field: <To> [32];
uri=[sip:214103 at xxx.xxx.net]
 5(3375) DEBUG: to body [<sip:214103 at xxx.xxx.net>
]
 5(3375) get_hdr_field: cseq <CSeq>: <1> <REGISTER>
 5(3375) DEBUG: get_hdr_body : content_length=0
 5(3375) found end of header
 5(3375) DEBUG: is_maxfwd_present: max_forwards header
not found!
 5(3375) check_via_address(202.*.*.84, 202.*.*.84, 0)
 5(3375) parse_headers: flags=256
 5(3375) find_first_route(): No Route headers found
 5(3375) loose_route(): There is no Route HF
 5(3375) check_self - checking if host==us: 17==9 && 
[xxx.xxx.net] == [127.0.0.1]
 5(3375) check_self - checking if port 5060 matches
port 5060
 5(3375) check_self - checking if host==us: 17==13 && 
[xxx.xxx.net] == [202.*.*.19]
 5(3375) check_self - checking if port 5060 matches
port 5060
 5(3375) check_self - checking if host==us: 17==9 && 
[xxx.xxx.net] == [127.0.0.1]
 5(3375) check_self - checking if port 5060 matches
port 5060
 5(3375) check_self - checking if host==us: 17==13 && 
[xxx.xxx.net] == [202.*.*.19]
 5(3375) check_self - checking if port 5060 matches
port 5060
 5(3375) parse_headers: flags=4096
 5(3375) pre_auth(): Credentials with given realm not
found
 5(3375) build_auth_hf(): 'WWW-Authenticate: Digest
realm="xxx.xxx.net",
nonce="4119fb5a9c239d786a3f9d297a6131008372c39b"
'
 5(3375) parse_headers: flags=-1
 5(3375) check_via_address(202.*.*.84, 202.*.*.84, 0)
 5(3375) receive_msg: cleaning up
 6(3382) SIP Request:
 6(3382)  method:  <REGISTER>
 6(3382)  uri:     <sip:xxx.xxx.net:5060>
 6(3382)  version: <SIP/2.0>
 6(3382) parse_headers: flags=1
 6(3382) end of header reached, state=5
 6(3382) parse_headers: Via found, flags=1
 6(3382) parse_headers: this is the first via
 6(3382) After parse_msg...
 6(3382) preparing to run routing scripts...
 6(3382) DEBUG : is_maxfwd_present: searching for
max_forwards header
 6(3382) parse_headers: flags=128
 6(3382) end of header reached, state=9
 6(3382) DEBUG: get_hdr_field: <To> [32];
uri=[sip:215104 at xxx.xxx.net]
 6(3382) DEBUG: to body [<sip:215104 at xxx.xxx.net>
]
 6(3382) get_hdr_field: cseq <CSeq>: <2> <REGISTER>
 6(3382) DEBUG: get_hdr_body : content_length=0
 6(3382) found end of header
 6(3382) DEBUG: is_maxfwd_present: max_forwards header
not found!
 6(3382) check_via_address(202.*.*.84, 202.*.*.84, 0)
 6(3382) parse_headers: flags=256
 6(3382) find_first_route(): No Route headers found
 6(3382) loose_route(): There is no Route HF
 6(3382) check_self - checking if host==us: 17==9 && 
[xxx.xxx.net] == [127.0.0.1]
 6(3382) check_self - checking if port 5060 matches
port 5060
 6(3382) check_self - checking if host==us: 17==13 && 
[xxx.xxx.net] == [202.*.*.19]
 6(3382) check_self - checking if port 5060 matches
port 5060
 6(3382) check_self - checking if host==us: 17==9 && 
[xxx.xxx.net] == [127.0.0.1]
 6(3382) check_self - checking if port 5060 matches
port 5060
 6(3382) check_self - checking if host==us: 17==13 && 
[xxx.xxx.net] == [202.*.*.19]
 6(3382) check_self - checking if port 5060 matches
port 5060
 6(3382) parse_headers: flags=4096
 6(3382) pre_auth(): Credentials with given realm not
found
 6(3382) build_auth_hf(): 'WWW-Authenticate: Digest
realm="xxx.xxx.net",
nonce="4119fb5a9c239d786a3f9d297a6131008372c39b"
'
 6(3382) parse_headers: flags=-1
 6(3382) check_via_address(202.*.*.84, 202.*.*.84, 0)
 6(3382) receive_msg: cleaning up
 8(3394) SIP Request:
 8(3394)  method:  <REGISTER>
 8(3394)  uri:     <sip:xxx.xxx.net:5060>
 8(3394)  version: <SIP/2.0>
 8(3394) parse_headers: flags=1
 8(3394) end of header reached, state=5
 8(3394) parse_headers: Via found, flags=1
 8(3394) parse_headers: this is the first via
 8(3394) After parse_msg...
 8(3394) preparing to run routing scripts...
 8(3394) DEBUG : is_maxfwd_present: searching for
max_forwards header
 8(3394) parse_headers: flags=128
 8(3394) end of header reached, state=9
 8(3394) DEBUG: get_hdr_field: <To> [32];
uri=[sip:214103 at xxx.xxx.net]
 8(3394) DEBUG: to body [<sip:214103 at xxx.xxx.net>
]
 8(3394) get_hdr_field: cseq <CSeq>: <3> <REGISTER>
 8(3394) DEBUG: get_hdr_body : content_length=0
 8(3394) found end of header
 8(3394) DEBUG: is_maxfwd_present: max_forwards header
not found!
 8(3394) check_via_address(202.*.*.84, 202.*.*.84, 0)
 8(3394) parse_headers: flags=256
 8(3394) find_first_route(): No Route headers found
 8(3394) loose_route(): There is no Route HF
 8(3394) check_self - checking if host==us: 17==9 && 
[xxx.xxx.net] == [127.0.0.1]
 8(3394) check_self - checking if port 5060 matches
port 5060
 8(3394) check_self - checking if host==us: 17==13 && 
[xxx.xxx.net] == [202.*.*.19]
 8(3394) check_self - checking if port 5060 matches
port 5060
 8(3394) check_self - checking if host==us: 17==9 && 
[xxx.xxx.net] == [127.0.0.1]
 8(3394) check_self - checking if port 5060 matches
port 5060
 8(3394) check_self - checking if host==us: 17==13 && 
[xxx.xxx.net] == [202.*.*.19]
 8(3394) check_self - checking if port 5060 matches
port 5060
 8(3394) check_nonce(): comparing
[4119fb5a9c239d786a3f9d297a6131008372c39b] and
[4119fb5a9c239d786a3f9d297a6131008372c39b]
 8(3394) query="select password from subscriber where
username='214103' AND domain='xxx.xxx.net'"
 8(3394) HA1 string calculated:
0984246f25855fa6513a3125ab956f58
 8(3394) check_response(): Our result =
'2bf74cdbd9ffab55b541c4cdc0b07bf5'
 8(3394) check_response(): Authorization is OK
 8(3394) save_rpid(): rpid value is ''
 8(3394) parse_headers: flags=1024
 8(3394) DEBUG:parse_content_type_hdr: missing
Content-Typeheader
 8(3394) DEBUG:cpl_process_register: Content-Type mime
found 0, 0
 8(3394) parse_headers: flags=1048576
 8(3394) DEBUG:parse_accept_hdr: missing Accept header
 8(3394) XLOG: xl_print_log: final buffer length 29
 8(3394) Error: fail cpl registering
 8(3394) receive_msg: cleaning up

*******************************************************
in mysql ser database in cpl table i have like this

*******************************************************
mysql> select * from cpl;
+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
| user                     | cpl_xml                  
                                                      
                                                      
                                                      
                                                      
                                                      
                                                      
                                        | cpl_bin     
                                                      
                                                      
                    |
+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+
| 214103 at xxx.xxx.net | <?xml version="1.0"
encoding="UTF-8"?>

<!DOCTYPE cpl PUBLIC '-//IETF//DTD RFCxxxx CPL
1.0//EN' 'cpl.dtd'>

<cpl>
  <outgoing>
    <location url="sip:234102 at xxx.xxx.net">
      <reject status="reject" reason="you donot have
the rights" />
    </location>
  </outgoing>
  <incoming>
    <location url="sip:215104 at xxx.xxx.net">
      <redirect />
    </location>
  </incoming>
</cpl>

 |                                                    
                                                      
                                  |
+--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------+


in the ser.cfg i have like this

*******************************************************
# -- cpl-c module --
modparam("cpl-c","cpl_db","mysql://ser:heslo@localhost:3306/ser")
modparam("cpl-c","cpl_table","cpl")
modparam("cpl-c","cpl_dtd_file","/usr/local/etc/ser/cpl-06.dtd")
modparam("cpl-c","log_dir","/var/log/")
modparam("cpl-c","proxy_recurse",0)


if(method=="REGISTER")
                                        {
                                        
if(!www_authorize("xxx.xxx.net", "subscriber")) {
                                         
www_challenge("xxx.xxx.net", "0");
                                        break;
                                        };
                               
if(cpl_process_register()){
                                xlog("L_ERR","Error:
fail cpl registering \n");
                                break;
                                };
                                save("location");
                                break;
                        };

*******************************************************

so where am i going wrong 

what are the manual fifo commands which i need to
write 

in the ser.cfg to upload the cpl scripts to ser.


with regards
serdie hard





		
__________________________________
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
http://promotions.yahoo.com/new_mail




More information about the sr-users mailing list