Hi,
I tried to use SIP register method to upload cpl script. However I got a result "bad request". The algorithm used in cpled is set as null. I thought normally that it should be md5. The ser's debug message says "Credentials received are not filled properly".
Can someone help me please?
Thanks, Richard
P.S. Has anyone used cpl extensively? Is it reasonably stable?
__________________________________ Do you Yahoo!? SBC Yahoo! - Internet access at a great low price. http://promo.yahoo.com/sbc/
REGISTER sip:example.org SIP/2.0. Via: SIP/2.0/UDP 41.222.132.128:8700. From: sip:888@example.org. To: sip:888@example.org. Call-ID: 14tg4341-1084525599016-295028-32961147@41.222.132.128. CSeq: 1 REGISTER. Contact: sip:41.222.132.128:8700. Content-Type: application/cpl+xml. Content-Disposition: script;action=store. Content-Length: 1044. . <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cpl PUBLIC '-//IETF//DTD RFCxxxx CPL 1.0//EN' 'cpl.dtd'>
<cpl> <subaction id="trash" /> <subaction id="voicemail"> <location url="sip:55592@example.org" priority="0.0" clear="yes"> <redirect /> </location> </subaction> <incoming> <address-switch field="destination" subfield="user"> <address is="user@host"> <location url="sip:55592@example.org"> <proxy> <busy> <time-switch tzid="HST -10"> <time dtstart="20040510T151502" duration="P28DT00H00M00S" freq="weekly" interval="001" byday="MO,WE,FR" bymonthday="1-5,8-10" byyearday="10-20" bymonth="1,4,7,10" /> </time-switch> </busy> <noanswer> <sub ref="voicemail" /> </noanswer> <failure> <lookup source="gost.com" /> </failure> </proxy> </location> </address> <otherwise /> </address-switch> </incoming> </cpl>
# U +0.003535 41.222.132.128:5060 -> 41.222.132.128:8700 SIP/2.0 401 Unauthorized. Via: SIP/2.0/UDP 41.222.132.128:8700. From: sip:888@example.org. To: sip:888@example.org;tag=b756ea191e1a1705f44b2100b0983a34.0f1f. Call-ID: 14tg4341-1084525599016-295028-32961147@41.222.132.128. CSeq: 1 REGISTER. WWW-Authenticate: Digest realm="example.org", nonce="40a48d4ba435a6dff240e5ceabc9fc5296089728", qop="auth". Server: Sip EXpress router (0.8.13-dev-28 (i386/linux)). Content-Length: 0. Warning: 392 41.222.132.128:5060 "Noisy feedback tells: pid=26138 req_src_ip=41.222.132.128 req_src_port=33739 in_uri=sip:example.org out_uri=sip:example.org via_cnt==1". .
# U +0.002629 41.222.132.128:33739 -> 41.222.132.128:5060 REGISTER sip:example.org SIP/2.0. Via: SIP/2.0/UDP 41.222.132.128:8700. From: sip:888@example.org. To: sip:888@example.org. Call-ID: 14tg4341-1084525599016-295028-32961147@41.222.132.128. CSeq: 2 REGISTER. Authorization: Digest username="888", realm="example.org", uri="sip:example.org", algorithm=null, nonce="40a48d4ba435a6dff240e5ceabc9fc5296089728", qop="auth", cnonce="fc82c359317018651a99347", response="f0ad5bb30d3d1f11fc31bb69bd54bbab". Contact: sip:41.222.132.128:8700. Content-Type: application/cpl+xml. Content-Disposition: script;action=store. Content-Length: 1044. . <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE cpl PUBLIC '-//IETF//DTD RFCxxxx CPL 1.0//EN' 'cpl.dtd'>
<cpl> <subaction id="trash" /> <subaction id="voicemail"> <location url="sip:55592@example.org" priority="0.0" clear="yes"> <redirect /> </location> </subaction> <incoming> <address-switch field="destination" subfield="user"> <address is="user@host"> <location url="sip:55592@example.org"> <proxy> <busy> <time-switch tzid="HST -10"> <time dtstart="20040510T151502" duration="P28DT00H00M00S" freq="weekly" interval="001" byday="MO,WE,FR" bymonthday="1-5,8-10" byyearday="10-20" bymonth="1,4,7,10" /> </time-switch> </busy> <noanswer> <sub ref="voicemail" /> </noanswer> <failure> <lookup source="gost.com" /> </failure> </proxy> </location> </address> <otherwise /> </address-switch> </incoming> </cpl>
# U +0.002369 41.222.132.128:5060 -> 41.222.132.128:8700 SIP/2.0 400 Bad Request. Via: SIP/2.0/UDP 41.222.132.128:8700. From: sip:888@example.org. To: sip:888@example.org;tag=b756ea191e1a1705f44b2100b0983a34.0f1f. Call-ID: 14tg4341-1084525599016-295028-32961147@41.222.132.128. CSeq: 2 REGISTER. Server: Sip EXpress router (0.8.13-dev-28 (i386/linux)). Content-Length: 0. Warning: 392 41.222.132.128:5060 "Noisy feedback tells: pid=26138 req_src_ip=41.222.132.128 req_src_port=33739 in_uri=sip:example.org out_uri=sip:example.org via_cnt==1". .
# U +0.001366 41.222.132.128:5060 -> 41.222.132.128:8700 SIP/2.0 400 Bad Request. Via: SIP/2.0/UDP 41.222.132.128:8700. From: sip:888@example.org. To: sip:888@example.org;tag=b756ea191e1a1705f44b2100b0983a34.0f1f. Call-ID: 14tg4341-1084525599016-295028-32961147@41.222.132.128. CSeq: 2 REGISTER. Server: Sip EXpress router (0.8.13-dev-28 (i386/linux)). Content-Length: 0. Warning: 392 41.222.132.128:5060 "Noisy feedback tells: pid=26138 req_src_ip=41.222.132.128 req_src_port=33739 in_uri=sip:example.org out_uri=sip:example.org via_cnt==1". .
# I +0.000035 41.222.132.128 -> 41.222.132.128 3:3 ....E.....@.@...B...B.....!...#.SIP/2.0 400 Bad Request. Via: SIP/2.0/UDP 41.222.132.128:8700. From: sip:888@example.org. To: sip:888@example.org;tag=b756ea191e1a1705f44b2100b0983a34.0f1f. Call-ID: 14tg4341-1084525599016-295028-32961147@41.222.132.128. CSeq: 2 REGISTER. Server: Sip EXpress router (0.8.13-dev-28 (i386/linux)). Content-Length: 0. Warning: 392 41.222.132.128:5060 "Noisy feedback tells: pid=26138 req_src_ip=41.222.132.128 req_src_port=33739 in_uri=sip:example.org out_uri=sip:example.org via_cnt==1". .
## U +0.002265 41.222.132.128:5060 -> 41.222.132.128:8700 SIP/2.0 400 Bad Request. Via: SIP/2.0/UDP 41.222.132.128:8700. From: sip:888@example.org. To: sip:888@example.org;tag=b756ea191e1a1705f44b2100b0983a34.0f1f. Call-ID: 14tg4341-1084525599016-295028-32961147@41.222.132.128. CSeq: 2 REGISTER. Server: Sip EXpress router (0.8.13-dev-28 (i386/linux)). Content-Length: 0. Warning: 392 41.222.132.128:5060 "Noisy feedback tells: pid=26138 req_src_ip=41.222.132.128 req_src_port=33739 in_uri=sip:example.org out_uri=sip:example.org via_cnt==1". .
# I +0.000024 41.222.132.128 -> 41.222.132.128 3:3 ....E.....@.@...B...B.....!...#.SIP/2.0 400 Bad Request. Via: SIP/2.0/UDP 41.222.132.128:8700. From: sip:888@example.org. To: sip:888@example.org;tag=b756ea191e1a1705f44b2100b0983a34.0f1f. Call-ID: 14tg4341-1084525599016-295028-32961147@41.222.132.128. CSeq: 2 REGISTER. Server: Sip EXpress router (0.8.13-dev-28 (i386/linux)). Content-Length: 0. Warning: 392 41.222.132.128:5060 "Noisy feedback tells: pid=26138 req_src_ip=41.222.132.128 req_src_port=33739 in_uri=sip:example.org out_uri=sip:example.org via_cnt==1". .
######################################################