Please check contact header of remote peer, just in case it didn't contain URI param 'transport=tls'. BR, nanang On Thu, Oct 22, 2009 at 2:15 PM, towhid islam <towhid2000bd at yahoo.com> wrote: > > hi nanang, > > File: sip_util.c > > In the method: > > > /* Fill-up destination information from a target URI */ > > static > > pj_status_t get_dest_info(const pjsip_uri *target_uri, > > pj_pool_t *pool, > pjsip_host_info *dest_info) > when?trying to get uri info by calling > > > > const pjsip_sip_uri *url=(const pjsip_sip_uri*)pjsip_uri_get_uri(uri); > > > is getting ip address only not type and port address. > > i?feel good to?if i can provide full?solution, but i am not familier > with pjsip structure so it could have a bad side effect. > > i only need TLS so i fixed up the type and port in this method: > and result is: > ---------------------------------ACK message------------------------------------- > ?07:36:04.811?????? endpoint? towhid->pjsip_process_route_set > ?07:36:04.816?????? endpoint? towhid->else if (PJSIP_URI_SCHEME_IS_SIP(target_uri)) > ?07:36:04.821?????? endpoint? Towhid-> 'xx.xx.xx.xx:5071' type=TLS resolved to > ?07:36:04.821? sip_resolve.c? Target 'xx.xx.xx.xx:5071' type=TLS resolved to 'xx.xx.xx.xx:5071' type=TLS (TLS transport) > ?07:36:04.821?? pjsua_core.c? TX 336 bytes Request msg ACK/cseq=5242 (tdta0x244535c8) to tls xx.xx.xx.xx:5071: > ?07:36:04.806? dlg0x24440900? Received Response msg 200/INVITE/cseq=5242 (rdata0x2443fe3c) > ?07:36:04.811? inv0x24440900? Received Response msg 200/INVITE/cseq=5242 (rdata0x2443fe3c), sending ACK > ?07:36:04.811? dlg0x24440900? Sending Request msg ACK/cseq=5242 (tdta0x244535c8) > ?07:36:04.811?????? endpoint? towhid->pjsip_process_route_set > ?07:36:04.816?????? endpoint? towhid->else if (PJSIP_URI_SCHEME_IS_SIP(target_uri)) > ?07:36:04.821?????? endpoint? Towhid-> 'xx.xx.xx.xx:5071' type=TLS resolved to > ?07:36:04.821? sip_resolve.c? Target 'xx.xx.xx.xx:5071' type=TLS resolved to 'xx.xx.xx.xx:5071' type=TLS (TLS transport) > ?07:36:04.821?? pjsua_core.c? TX 336 bytes Request msg ACK/cseq=5242 (tdta0x244535c8) to tls xx.xx.xx.xx:5071: > ACK sip:1111 at xx.xx.xx.xx SIP/2.0 > Via: SIP/2.0/TLS 192.168.30.3:1949;rport;branch=z9hG4bKPjIz0qQRjQ2bAbafjdndcNEgLLJi.eat4x > Max-Forwards: 70 > From: sip:2001@xxxxxxxxxxx;tag=rnf8-COG9j0ml-Ke2b4pFqiFvu0uaIlf > To: sip:1111 at xx.xx.xx.xx;tag=as233c61e2 > Call-ID: l9o4.au4EKQMzbmpU-GpYgjxN.fH0QA5 > CSeq: 5242 ACK > Content-Length:? 0 > ---------------------------------ACK message------------------------------------- > > ---------------------------------BYE message------------------------------------- > ?07:36:05.826?????? endpoint? Request msg BYE/cseq=5244 (tdta0x2445db30) created. > ?07:36:05.826? inv0x24440900? Sending Request msg BYE/cseq=5244 (tdta0x2445db30) > ?07:36:05.826? dlg0x24440900? Sending Request msg BYE/cseq=5244 (tdta0x2445db30) > ?07:36:05.826?????? endpoint? towhid->pjsip_get_request_dest > ?07:36:05.831?????? endpoint? towhid->else if (PJSIP_URI_SCHEME_IS_SIP(target_uri)) > ?07:36:05.831?????? endpoint? Towhid-> 'xx.xx.xx.xx:5071' type=TLS resolved to > ?07:36:05.831? tsx0x24415f48? Transaction created for Request msg BYE/cseq=5243 (tdta0x2445db30) > ?07:36:05.831? tsx0x24415f48? Sending Request msg BYE/cseq=5243 (tdta0x2445db30) in state Null > ?07:36:05.831?????? endpoint? towhid->pjsip_process_route_set > ?07:36:05.836?????? endpoint? towhid->else if (PJSIP_URI_SCHEME_IS_SIP(target_uri)) > ?07:36:05.841?????? endpoint? Towhid-> 'xx.xx.xx.xx:5071' type=TLS resolved to > ?07:36:05.841? sip_resolve.c? Target 'xx.xx.xx.xx:5071' type=TLS resolved to 'xx.xx.xx.xx:5071' type=TLS (TLS transport) > ?07:36:05.841?? pjsua_core.c? TX 368 bytes Request msg BYE/cseq=5243 (tdta0x2445db30) to tls xx.xx.xx.xx:5071: > BYE sip:1111 at xx.xx.xx..xx SIP/2.0 > Via: SIP/2.0/TLS 192.168.30.3:1949;rport;branch=z9hG4bKPj4QVKK74UlwA3Nc0A6ONa9qMLSnXeEfoi > Max-Forwards: 70 > From: sip:2001@xxxxxxxxxxxx;tag=rnf8-COG9j0ml-Ke2b4pFqiFvu0uaIlf > To: sip:1111 at xx.xx.xx.xx;tag=as233c61e2 > Call-ID: l9o4.au4EKQMzbmpU-GpYgjxN.fH0QA5 > CSeq: 5243 BYE > XYZ-code:00000 > Content-Length:? 0 > ---------------------------------BYE message------------------------------------- > > so?please check where you set target url for bye and ack message. > > any suggation is appriciated. > > thanks, > towhid > > hi nanang, > thanks for the reply. yes i did #define ENABLE_SIP_TLS??? 1, and the proxy thing. > ? > i was the one who reported you that the symbian-tls is working ok.? > when?i try to see calllog i saw a error. i?dig it because on other side?asterisk?receive and playing a demo?file so i was worried.? > ? > i can tell?little bit more about the problem: > ? > NORMAS MASAGE: > ----------------------------INVITE massage---------------------- > 05:46:46.372? tsx0x2444e7fc? Sending Request msg INVITE/cseq=10270 (tdta0x2444db80) in state Null > ?05:46:46.372 sip_transactio? towhid->pjsip_tsx_send_msg2:...... > ?05:46:46.372? sip_resolve.c? Target 'xx.xx.xx.xx:5071' type=TLS resolved to 'xx.xx.xx.xx:5071' type=TLS (TLS transport) > ?05:46:46.372?? pjsua_core.c? TX 969 bytes Request msg INVITE/cseq=10270 (tdta0x2444db80) to tls xx.xx.xx.xx:5071: > ----------------------------INVITE massage---------------------- > ? > ? > PROBLEM MASSAGE: > ----------------------------ACK massage---------------------- > ? > ?05:46:23.890? dlg0x2444b808? Sending Request msg ACK/cseq=2247 (tdta0x24454974) > ?05:46:23.890? sip_resolve.c? Target 'xx.xx.xx.xx:0' type=Unspecified resolved to 'xx.xx.xx.xx:5060' type=UDP (UDP transport) > ?05:46:23.895? tsx0x2444e7fc? Timeout timer event > ? > ----------------------------ACK massage---------------------- > ? > ----------------------------BYE massage---------------------- > 05:46:49.810?????? endpoint? Request msg BYE/cseq=10272 (tdta0x2444ebb0) created. > ?05:46:49.810? inv0x2444b808? Sending Request msg BYE/cseq=10272 (tdta0x2444ebb0) > ?05:46:49.810? dlg0x2444b808? Sending Request msg BYE/cseq=10272 (tdta0x2444ebb0) > ?05:46:49.810? tsx0x2443e9cc? Transaction created for Request msg BYE/cseq=10271 (tdta0x2444ebb0) > ?05:46:49.810? tsx0x2443e9cc? Sending Request msg BYE/cseq=10271 (tdta0x2444ebb0) in state Null > ?05:46:49.810 sip_transactio? towhid->pjsip_tsx_send_msg2:...... > ?05:46:49.815? sip_resolve.c? Target 'xx.xx.xx.xx:0'? type=Unspecified resolved to 'xx.xx.xx.xx:5060' type=UDP (UDP transport) > ?05:46:49.815? tsx0x2443e9cc? Failed to send Request msg BYE/cseq=10271 (tdta0x2444ebb0)! err=171060 (Unsupported transport (PJSIP_EUNSUPTRANSPORT)) > ? > ? > ?----------------------------BYE massage---------------------- > ? > i think when the BYE/ACK message comes to sip_resolve.c its not finding its port and its type. > ? > any suggation is appriciated. > ? > thanks > TOWHID > > > Just FYI, > > In the SVN trunk, symbian_ua sample app has already support for TLS > (on Symbian platforms it is implemented using CSecureSocket), perhaps > this could be a starting point for testing or reference purpose. Here > are few steps to configure it: > 1. Build PJSIP with TLS support, see > http://trac.pjsip.org/repos/wiki/TLS#BuildPJSIPwithTLSSupport. > 2. Edit ENABLE_SIP_TLS setting in ua.cpp of symbian_ua to enable SIP TLS: > --- > #define ENABLE_SIP_TLS??? 1 > --- > 3. Don't forget to put URI param "transport=tls" in proxy or target > settings, e.g: <sip:a.b.c;transport=tls> > > BR, > nanang > > > On Sun, Oct 18, 2009 at 12:17 PM, towhid islam <towhid2000bd at yahoo.com> wrote: > > > > hi, > > > > 1. pjsip tls Error > > 2. pjsip-symbian tls Error > > > > which one is better understanding that the problem related to symbian ? > > > > anyway , i will try to be more attantive. > > > > TLS setup: > > > > > > > > pjsua_transport_config tcfg; > > > > pjsua_transport_id tid; > > > > > > > > pjsua_transport_config_default(&tcfg); > > > > tcfg. > > > > port = SIP_PORT; > > > > tcfg. > > > > tls_setting.method=PJSIP_TLSV1_METHOD; > > > > tcfg. > > > > tls_setting.server_name=pj_str(TLS_SERVER_NAME); > > > > status = > > > > pjsua_transport_create(PJSIP_TRANSPORT_TLS, &tcfg, &tid); > > > > > > > > thanks > > > > towhid > > > > > > > > Yeah, like Benny said, just send the mail once, we will hear it and if > > someone knows the answer they'll reply. > > > > Can you paste the code that sets up the TLS transport please? (Just > > once!) > > > > Shayne. > > > > On 14/10/2009, at 5:34 PM, towhid islam wrote: > > > > > hi, > > > > > > pjsip-symbian tls cant send BYE, > > > > > > log file: > > > > > > 07:55:06.241?? Master/sound? Underflow, buf_cnt=0, will generate 1 > > > frame > > > ?07:55:06.241?? Master/sound? Underflow, buf_cnt=0, will generate 1 > > > frame > > > ?07:55:06.281? tsx0x2456b2d0? Failed to send Request msg BYE/ > > > cseq=29613 (tdta0x2456f880)! err=171060 (Unsupported transport > > > (PJSIP_EUNSUPTRANSPORT)) > > > ?07:55:06.346? pjsua_media.c? Media session for call 0 is destroyed > > > ?07:55:06.346?? pjsua_call.c? Failed to send end session message: > > > Unsupported transport (PJSIP_EUNSUPTRANSPORT) [status=171060] > > > > > > why unsupported transport is occurring. > > > > > > thanks > > > > > > > > > > > > _______________________________________________ > > > Visit our blog: http://blog.pjsip.org > > > > > > pjsip mailing list > > > pjsip at lists.pjsip.org > > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > =================================== > > Shayne O'Neill Development > > Mobile, Web and Business process integration. > > shayne.oneill at gmail.com 0400247091 > > Ask me about how Alfresco can help your business grow. > > > > _______________________________________________ > > Visit our blog: http://blog.pjsip.org > > > > pjsip mailing list > > pjsip at lists.pjsip.org > > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >