On Mon, Jul 14, 2008 at 10:45 AM, Zahed Emon <ena2413 at gmail.com> wrote: > Hi, > > yes, I also think that the INVITE will be send directly. BUt I am not > providing any URI which has that IP. In my network that IP is not > available. I dont know from where it is getting the IP. > Have you look at the log? > is this any default stun/turn server's IP? > > No. SIP requests are sent to the target URI or Route URI, and that's just about it. Cheers Benny > BR > > Zahed > > On Mon, Jul 14, 2008 at 11:00 AM, Benny Prijono <bennylp at pjsip.org> wrote: > > On Sat, Jul 12, 2008 at 9:11 PM, Zahed Emon <ena2413 at gmail.com> wrote: > >> > >> Hi, > >> > >> I have created my small app which just register with SIP server and > >> makes call to other client. > >> > >> now the sip registration works fine. but I when tried to call other > >> registered user I saw not SIP invite is going to SIP server rather > >> they goes to some IP like 68.44.244.60. eventually it does not get any > >> response and dies. > >> > >> I dont know why it is sending invite to the IP address? I tried with > >> the pjsua_app application that comes with the distribution and still > >> have the same problem. > >> > > > > Since there's no route set, the INVITE will be sent to the target URI > (the > > "URI" variable in your snippet). Is this not the case? > > > > -benny > > > > > >> > >> I am using UDP transport for SIP. I am behind a firewall that stops > >> every UDP packet send outside and coming inside. > >> > >> please help me solve this problem. > >> > >> here is some snap of the code > >> > >> //Emon > >> > >> //add UDP tranport > >> > >> pjsua_transport_config trans_cfg_UDP; > >> pjsua_transport_config_default(&trans_cfg_UDP); > >> trans_cfg.public_addr = pj_str("xxx.yyy.zzz.146"); > >> > >> status = pjsua_transport_create(PJSIP_TRANSPORT_UDP, > &trans_cfg_UDP, > >> &trans_id_UDP); > >> if(status != PJ_SUCCESS) > >> { > >> error_exit("Error in creating UDP transport", status); > >> } > >> > >> > >> acc_cfg.id = pj_str(uri); > >> acc_cfg.reg_uri = pj_str ("sip:"MYdomain); > >> acc_cfg.cred_count = 1; > >> acc_cfg.cred_info[0].realm = pj_str("*"); > >> acc_cfg.cred_info[0].scheme = pj_str("digest"); > >> acc_cfg.cred_info[0].username = pj_str(user); > >> acc_cfg.cred_info[0].data_type = > >> PJSIP_CRED_DATA_PLAIN_PASSWD; > >> acc_cfg.cred_info[0].data = pj_str(pass); > >> } > >> > >> > >> status = pjsua_acc_add(&acc_cfg,PJ_TRUE,&acc_id); > >> if(status != PJ_SUCCESS) > >> { > >> error_exit("Error in registration", status); > >> } > >> > >> pj_str_t uri = pj_str(URI); > >> > >> status = pjsua_call_make_call(acc_id,&uri,0,NULL,NULL,NULL); > >> if(status != PJ_SUCCESS) > >> { > >> error_exit("Error in Making call", status); > >> } > >> > >> _______________________________________________ > >> 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 > > > > > > _______________________________________________ > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080714/dbbe1915/attachment.html