problem in making call with pjsua (invite sent to unknown IP even with pjsua_app application)

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

 



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.

is this any default stun/turn server's IP?

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



[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