Error in "pjsua_acc_config_default(&acc_cfg); " with newly compiled libraries

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

 



Hello Marco,
? ? ? I believe the acc_cfg is declared properly, as it works with the pjsip libraries that comes with the Siphone app.
However, just after the call to?pjsua_acc_config_default(&acc_cfg);?I see that pool is no more a proper value. Any clue as to why this might be happening?

And here is how the acc_cfg is configured (the code is based on the one available in the below link for Siphon)
https://code.google.com/p/siphon/source/browse/trunk/Siphon2/Classes/SiphonApplication.h?r=636

Here is a code extract that I believe is causing the problem.?

pj_status_tsip_connect(pj_pool_t*pool, pjsua_acc_id*acc_id)
{
? ? pj_status_t status;
? ? pjsua_acc_configacc_cfg;
? ? const char *uname;
? ? const char *authname;
? ? const char *contactname;
? ? const char *passwd;
? ? const char *server;
?? ?
? ? AppDelegate*app = (AppDelegate*)[[UIApplicationsharedApplication]delegate];
?? ?
? ? uname? = [[Utils getUserIdentifier] UTF8String];
? ? authname = NULL;
? ? contactname=NULL;
? ? passwd=[[Utils getPassWord] UTF8String];
? ? server = [serverName UTF8String];
?? ?
? ? pjsua_acc_config_default(&acc_cfg); //before this pool is pointing to a proper location
?? ?
? ? // ID
? ? acc_cfg.id.ptr = (char*) pj_pool_alloc(pool, PJSIP_MAX_URL_SIZE); //pool is now corrupt and not pointing //to a location



On Tuesday, 11 March 2014 2:00 PM, Marco Feltmann <feltmann at eosnewmedia.de> wrote:
 
Hi Jyotirmoy,

This seems to be an runtime exception since I?m developing one for iOS as well and it works fine.
How do you declare acc_cfg in your code?

Von:  jyotirmoy banerjee <iamjyotirmoy at yahoo.co.in>
Antworten an:  jyotirmoy banerjee <iamjyotirmoy at yahoo.co.in>, pjsip list <pjsip at lists.pjsip.org>
Datum:  Dienstag, 11. M?rz 2014 09:17
An:  "pjsip at lists.pjsip.org" <pjsip at lists.pjsip.org>
Betreff:  [pjsip] Error in "pjsua_acc_config_default(&acc_cfg); " with newly compiled libraries


Hello,
>??? I am trying to develop an iOS application that supports VOIP call and for that I am using PJSIP.?? 
>I have downloaded the pjsip 2.2 and successfully complied them as per the given instructions, there were no errors reported. I have compiled the source for proper libraries as required, however, when I try to do this call it gives me EXC_BAD_ACCESS
>The line of code that gives me the problems is as below:
>pjsua_acc_config_default(&acc_cfg);
>
>The mysterious thing is, I managed to download a pre-compiled sipon app, and when I use the libraries that comes with it, the code works! 
>
>Can you please provide an insight as to what might be the issue here? Is it some error during compilation?
>When I try to run the app with
 XCode, it doesnot report any error. 
>
>Regards
>Jyotirmoy
>
>
>_______________________________________________
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 




________________________________
 
Marco Feltmann
Software-Entwickler

eos?new media GmbH & Co. KG
Schanzenstra?e 70 / 20357 Hamburg

T +49 (0) 40 609 46 85 - 421
F +49 (0) 40 609 46 85 - 100

mailto:feltmann at eosnewmedia.de
http://www.eosnewmedia.de
 

________________________________
 
AG Hamburg HR A 112932 ? Pers?nlich haftender Gesellschafter
tnm Beteiligungsgesellschaft mbH, AG Hamburg HR B 117703
Gesch?ftsf?hrer: Frank W. Tag ? USTID DE276540007
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20140312/b7405242/attachment-0001.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