DAHDI stripes 0... and 00... on incoming callerid


when I get a incoming ring via dahdi (E1 or IDSN), the first 0 and 00 is striped away.

017212345 ringing on dahdi --> 17212345 is ringing

This is not a Problem, because I can add a 0 to the callerid(num).
But when an international call is coming

004124212345 ringing on dahdi --> 4124212345 is ringing

The length is from 9 to 15 digits … not possible to assign a logic.

My providers (Telekom for ISDN and Vodafone for E1/S2M) are sending 0… and 00… in the incoming callerid.

Where can I stop the sriping the first 0 / 00??



Are you sure your provider isn’t stripping. It is fairly common for them to send TON (type of number) = national or international, which means they must strip the national/international access digits.

exten => _X!,1,Set(CALLERID(num)=0${CALLERID(num)})

freepbx.org/support/document … g-callerid