SIP outbound status for account is not active (iOS App)

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

 



Hi Alberto,

I was thinking, to help you out, you could check the account is valid 
just before you add it.
This should also give an indication if the account is ready for making 
calls.

Does the status on account add return with PJ_SUCCESS ?

With kind regards,
Cav Edwards



Alberto Bitto wrote:
> Hi,
>
> I'm having problems making calls with the iOS app I'm developing and I 
> can't understand what's wrong.
>
> So far I've configured an account that successfully registers on a 
> Kamailio server using TLS transport and receives calls but can't make 
> them.
>
> When the account configuration runs, I noticed this debug message (is 
> not marked as error):
> *
> pjsua_acc.c  ....SIP outbound status for acc 0 is not active*
>
> I guess this means I can't send messages and calls? How do I make it 
> active?
>
> This is how I'm configuring the account:
>
>             pjsua_acc_config cfg;
>             pjsua_acc_config_default(&cfg);
>
>             cfg.id = pj_str("sip:" SIP_USER "@" SIP_URL);
>             cfg.reg_uri = pj_str("sip:" SIP_URL ";transport=tls");
>             
>             cfg.cred_count = 1;
>             cfg.cred_info[0].realm = pj_str(SIP_REALM);
>             cfg.cred_info[0].scheme = pj_str("digest");
>             cfg.cred_info[0].username = pj_str(SIP_USER);
>             cfg.cred_info[0].data_type = PJSIP_CRED_DATA_PLAIN_PASSWD;
>             cfg.cred_info[0].data = pj_str(SIP_PASSWD);
>
>             cfg.use_srtp = PJMEDIA_SRTP_OPTIONAL;
>             cfg.srtp_secure_signaling = 1;
>
>             cfg.proxy_cnt = 1;
>             cfg.proxy[0] = pj_str("sip:" SIP_URL ":" SIP_PORT 
> ";transport=tls");
>
>             cfg.reg_use_proxy = 1;
>
>             status = pjsua_acc_add(&cfg, PJ_TRUE, &acc_id);
>
> What am I missing?
>
> Thanks,
>
> Alberto
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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/20150203/a2d99273/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