[asterisk-users] Limit to the length of string ?

Gordon Henderson gordon+asterisk at drogon.net
Tue Aug 26 06:49:54 CDT 2008


Had an issue recently and it looked like there is a limit to the length of 
a string... I built up a string dynamically and it seemed to get 
truncated... Below is 2 lines of console output:

I've split this line to make sense:

     -- Executing NoOp("IAX2/inco1-10969", "About to dial
 	IAX2/106200&SIP/106200&
 	IAX2/106201&SIP/106201&
 	IAX2/106202&SIP/106202&
 	IAX2/106203&SIP/106203&
 	IAX2/106204&SIP/106204&
 	IAX2/106205&SIP/106205&
 	IAX2/106206&SIP/106206&
 	IAX2/106207&SIP/106207&
 	IAX2/106208&SIP/106208&
 	IAX2/106209&SIP/106209&
 	IAX2/106210&SIP/106210&
 	IA") in new stack


     -- Executing Dial("IAX2/inco1-10969","
 	IAX2/106200&SIP/106200&
 	IAX2/106201&SIP/106201&
 	IAX2/106202&SIP/106202&
 	IAX2/106203&SIP/106203&
 	IAX2/106204&SIP/106204&
 	IAX2/106205&SIP/106205&
 	IAX2/106206&SIP/106206&
 	IAX2/106207&SIP/106207&
 	IAX2/106208&SIP/106208&
 	IAX2/106209&SIP/106209&
 	IAX2/106210&SIP/106210&
 	IA||wton") in new stack

So you can see where it got upset )-: There should have been 2 more lines 
(for accounts 106211 and 106212) in there.

A-Ha... That string is 256 characters long... Now there's a fishy number 
if ever there was one.

So, if this a real limitation? This is 1.2.30 if that makes a 
difference...

Did this limit go away in 1.4 ?

Gordon



More information about the asterisk-users mailing list