Unable register more than 8 accounts

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

 



Hello

I am unable to register more than 8 accounts with pjsip python. I increased PJSUA_MAX_ACC macros in source and recompiled it. But REGISTER requests have incorrect Proxy-Authorization header - it has username for 8th account, not for the desired one. Are there any other constants that should be modified? My goal is to create simple test suite for our b2bua application, so I need to create 1K accounts at least.

For example, these headers are from incorrect request (user is 9th, but auth is for 7th):
From: <sip:31110005009@xxxxxxxxxxx>;tag=ovvGO5RYKXcM.cqU.MrRMuDqkXIoDpnA
Proxy-Authorization: Digest username=\"31110005007\", realm=\"BREDBAND\", nonce=\"MTMzOTU4Mjg2NTq5X/u7qXexlk7tysJ2g1fp\", uri=\"sip:multifon.ru\", response=\"9df4d4a7c82ad3065b083a41af35adcb\", algorithm=md5, cnonce=\"P3pJe6AbT5tSNmg3A6aOH8mwL4u-ADFw\", opaque=\"MTMzOTU4Mjg2NTq5X/u7qXexlk7tysJ2g1fp\", qop=auth, nc=00000001

And these headers are from correct request(user is second and auth is for second as well):
From: <sip:31110005002@xxxxxxxxxxx>;tag=QkI8huxrIXoNVc8U412p1tiXEFFvbhl7
Proxy-Authorization: Digest username=\"31110005002\", realm=\"BREDBAND\", nonce=\"MTMzOTU4Mjg2OTqyygjASxryNZHat+GB2aEv\", uri=\"sip:multifon.ru\", response=\"be3bc87a9d49e9a3ab1cc77d3f9fcd1e\", algorithm=md5, cnonce=\"hi.kkzgVb99KDuTcDEA-W8.frAWBjo6v\", opaque=\"MTMzOTU4Mjg2OTqyygjASxryNZHat+GB2aEv\", qop=auth, nc=00000001


And I have another one question - how should I create accounts to prevent "Object is busy (PJSIP_EBUSY) [status=171001]" error on registration? I'm trying to use "pj.Lib.instance().auto_lock()" on creating account, but it doesn't help unfortunately. The only way I've found is to create accounts in groups (about 10-20 in size) and then sleep for some timeout

Thanks in advance



[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