[Serdev] ETSI Enum plugtests - this time Radius problem

Juha Heinanen jh at tutpro.com
Wed Jun 1 09:25:48 UTC 2005


Adrian Georgescu writes:

 > We removed the leading spaces for the sip: URI and we have no errors on  
 > parsing the URI. Where is the best place to remove possible spaces, in  
 > the ENUM client or the parser?

nowhere.  the spaces simply should not be there.  it is the same as the
resulting uri be bogus in some other way, for example contains two @
chars.  space removal would be ok in user interface, but not in dns
records, which simply have to correct or else query will fail.

 > We run into a new problem after striping the spaces, the Radius  
 > accounting packet could not be sent to the server:

 > Jun  1 11:00:00 ns3 ser[18991]: ERROR: acc_rad_request: rc_avpaid_add  
 > failed for number <2> attr <Sip-Translated-Request-URI>

perhaps you could add printing of also the value that it tried to add.
it would go something like this:

	LOG(L_ERR, "ERROR: acc_rad_request: rc_avpaid_add "
	    "failed for %s '%.*s'\n", attrs[rad_attr[i]].n,
		val_arr[i]->len, val_arr[i]->s);

-- juha




More information about the Serdev mailing list