[asterisk-users] hex b1 in CallerID sent by Asterisk On PRI

Bob Pierce pierceb at westmancom.com
Wed Oct 22 15:55:32 CDT 2008


On Wed, 2008-10-22 at 12:11 -0500, Bob Pierce wrote:
> On Tue, 2008-10-21 at 13:56 -0500, Bob Pierce wrote:
> > Does anyone know what the significance is of the b1 being sent here?
> > 
> > Or, is there a way to make Asterisk not send the b1 character as a
> > test?

As a further update to this, I've noticed the following in q931.c at
about line 1236:


static FUNC_SEND(transmit_display)
{
	int i;
	
	if ((pri->switchtype == PRI_SWITCH_QSIG) ||
	    ((pri->switchtype == PRI_SWITCH_EUROISDN_E1) && (pri->localtype ==
PRI_CPE)) ||
	    !call->callername[0])
		return 0;

	i = 0;
	if(pri->switchtype != PRI_SWITCH_EUROISDN_E1) {
		ie->data[0] = 0xb1;
		++i;
	}
	memcpy(ie->data + i, call->callername, strlen(call->callername));
	return 2 + i + strlen(call->callername);
}


So, I think this is where the b1 is being added.
My question then is, what is the significance of this character?
What's the best way to try sending caller name without this character?
Should I just try changing my switchtype to euroisdn at both sides of
the link?

Bob



More information about the asterisk-users mailing list