[Serusers] has any body got success with ser-0.8.12 with cpl-c module

ser die serdiehard at yahoo.com
Wed Aug 11 13:15:04 CEST 2004


thanks richard

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;
                        };

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

with regards
serdiehard




--- Richard <mypop3mail at yahoo.com> wrote:

> Hi,
> 
> The log you gave is not complete. If you can provide
> one full log of a cpl upload message, that would be
> helpful for me to figure out.
> 
> Cheers,
> Richard
> 
> --- ser die <serdiehard at yahoo.com> wrote:
> 
> > hello richard,
> > 
> >  8(2941) DEBUG:parse_accept_hdr: missing Accept
> > header
> >  8(2941) XLOG: xl_print_log: final buffer length
> 29
> >  8(2941) Error: fail cpl registering
> >  8(2941) receive_msg: cleaning up
> > 
> > this error it is giveing
> > and the server is not up its continuosly try to 
> > register the cpl but it s not registering 
> > 
> > when i save it , it has been saved in the database
> > 
> > so where i most be doing wrong
> > 
> > please guide me
> > with regards
> > voipser
> > --- Richard <mypop3mail at yahoo.com> wrote:
> > 
> > > Hi,
> > > 
> > > Can you use the follow code and check log to see
> > > where
> > > it fails?
> > > 
> > > xlog("L_INFO", "About to register cpl
> script\n");
> > > # register cpl
> > > if(!cpl_process_register()) {
> > >     xlog("L_ERR", "Error: fail cpl
> > registering\n");
> > >     break;
> > > }
> > > 
> > > --- ser die <serdiehard at yahoo.com> wrote:
> > > 
> > > > i have uploded the script to the database via
> > sip 
> > > > using CPLED but i have not seen any binary
> > version
> > > > of
> > > > the data in the cpl table only user name and
> the
> > 
> > > > xml have been there in that table
> > > > 
> > > > i have the cpl related instruction in the
> > ser.cfg 
> > > > as follows 
> > > > 
> > > >
> > *************************************************
> > > > 
> > > > #cpl
> > > >
> > >
> >
>
modparam("cpl-c","cpl_dtd_file","/usr/local/etc/ser/cpl-06.dtd")
> > > >
> > >
> >
>
modparam("cpl-c","cpl_db","mysql://ser:heslo@localhost/ser")
> > > > modparam("cpl-c","cpl_table","cpl")
> > > > modparam("cpl-c","lookup_domain","location")
> > > > 
> > > > 
> > > >   if (uri==myself)
> > > >                         {
> > > > 
> > > >                                 if
> > > > (method=="REGISTER")
> > > >                                         {
> > > >                                          if
> > > > (!www_authorize("xxx.xx.net",
> > > "subscriber"))
> > > > {
> > > >                                        
> > > > www_challenge("xx.xx.net", "0");
> > > >                                         break;
> > > >                                         };
> > > >                                
> > > > cpl_process_register();
> > > >                                
> > save("location");
> > > >                                 break;
> > > >                         };
> > > > 
> > > > 
> > > > 
> > > >
> > >
> >
>
*******************************************************
> > > > 
> > > > 
> > > > --- Richard <mypop3mail at yahoo.com> wrote:
> > > > 
> > > > > Did you upload the cpl?
> > > > > 
> > > > > cpl_bin needs to have the compiled version
> of
> > > the
> > > > > xml
> > > > > script. You can use CPLED to upload it via
> > SIP.
> > > > Then
> > > > > use cpl_process_register() in the script to
> > > accept
> > > > > it.
> > > > > 
> > > > > Cheers,
> > > > > Richard
> > > > 
> > > > 
> > > > 
> > > > 	
> > > > 		
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > New and Improved Yahoo! Mail - 100MB free
> > storage!
> > > > http://promotions.yahoo.com/new_mail 
> > > > 
> > > 
> > > 
> > > 
> > > 		
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail - 50x more storage than other
> > providers!
> > > http://promotions.yahoo.com/new_mail
> > > 
> > 
> > 
> > 
> > 		
> > __________________________________
> > Do you Yahoo!?
> > Take Yahoo! Mail with you! Get it on your mobile
> > phone.
> > http://mobile.yahoo.com/maildemo 
> > 
> 
> 
> 
> 		
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - 50x more storage than other providers!
> http://promotions.yahoo.com/new_mail
> 



	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 




More information about the sr-users mailing list