Problem with stun server

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

 



Samuel Vinson wrote:
> Hi Benny,
> 
> I localize the (first) problem:
>     ice_test
>     ->perform_ice_test
>        ->pj_ice_strans_create (ice_strans.c)
>           ->pj_pool_create (XXX abort)
> 
> I don't understand why.

As pool seems to be working in other part of the program, the only 
thing I can think of is probably malloc() failed? When this happens, 
pjlib will emit PJ_NO_MEMORY_EXCEPTION, and if this exception is not 
handled by application, pjlib will intentionally crash the 
application (yes it's a nice feature ;-) ).

Have a look at default_pool_callback() function in 
pool_policy_malloc.c. Perhaps you can replace the code that throw 
the exception with something else (maybe print something to the log 
and then call exit(1)).

cheers,
  -benny


> Samuel
> 
> Benny Prijono a ?crit :
>> Samuel Vinson wrote:
>>   
>>> Hi Benny,
>>>
>>> Thanks for your answer.
>>>
>>> I test your code, and I think it works because I obtain this message :
>>> 23:57:21.000         test.c Mapped address is XX.XX.XX.XX
>>> where XX.XX.XX.XX is my static IP from my provider.
>>>
>>> I ran pjnath-test, and the results are bad. I join the log file of 
>>> INCLUDE_STUN_TEST.
>>>     
>> Okay, so at least both STUN implementations look okay.
>>
>>   
>>> When I run INCLUDE_ICE_TEST, test aborts. Tomorrow, I will try test one 
>>> after another.
>>>     
>> So it looks like the problem was in ICE. Looking forward to hear 
>> what you'll find.
>>
>> cheers,
>>   -benny
>>
>>
>>   
>>> Samuel
>>>     
>>
>>
>> _______________________________________________
>> 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


-- 
Benny Prijono
http://www.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