simple_pjsua tls message server url issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Is there anybody can help? I am new to the pjsip. Thanks in advanced.
 


From: leeygang@xxxxxxxxxxx
To: pjsip at lists.pjsip.org
CC: leeygang at hotmail.com; eaf at oyatel.com
Subject: simple_pjsua tls message server url issue
Date: Tue, 7 Dec 2010 01:56:10 +0800





I try to use simple_pjsue to send a tls register request, with the help of Even, the message can be sent out with the following code change:
 
update the simple_pjsua.c : from
> status = pjsua_transport_create(PJSIP_TRANSPORT_UDP, &cfg, NULL);
 to:
> status = pjsua_transport_create(PJSIP_TRANSPORT_TLS, &cfg, NULL);
  
>  cfg.reg_uri = pj_str("sip:" SIP_DOMAIN ";transport=tls");
 
 
but the message server url seems weird:
the method params server url becomes: "sip:test.com;transport=tls" instead of "sip:test.com", which is different with other tls register example.
is it correct? 


==========================================

REGISTER sip:test.com;transport=tls SIP/2.0
Via: SIP/2.0/TLS 10.0.0.3:59663;rport;branch=z9hG4bKPjwED-u8fd-eMsjXJDACvwIvmcJ9s8-owL
Max-Forwards: 70
From: <sip:yonggli@xxxxxxxx>;tag=.beU1WV3sxmx2e0jKt82ohtnzX1cVRK0
To: <sip:yonggli at test.com>
Call-ID: KDDq10N0Y.fduMRsSzeenHIH.1Jt8DWn
CSeq: 36732 REGISTER
Contact: <sip:yonggli at 10.0.0.3:5060;transport=TLS>
Expires: 300
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length:  0
====================================================== 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20101208/face7b14/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux