I'm running trixbox 2.2.4 and it's working like a charm except incoming caller ID.
The incoming caller ID should be displayed in my country is as followers:
1)local caller ID has seven or eight digits : ex. [2-8]XXXXXX or [2-8]XXXXXXX
2)long distance caller ID has ten digits leading with 0 : ex. 0[2-8]XXXXXXXX or 0[2-8]XXXXXXX
3)cell phone caller ID also has ten digits leading with 0 : ex. 09XXXXXXXX
4)international caller ID has fourteen digits : ex. 00XXXXXXXXXXXX or whatever.
The incoming caller ID including 1)local and 4)international displays properly except
2)long distance and 3)cell phone.
My problem is the incoming caller ID including 2)long distance and 3)cell phone only
displays nine digits without the leading digit "0". Why the leading digit "0" is stripped
off? I cannot not do a proper callback if the leading digit "0" is missing.
I have followed the documentation provided by FreePBX:
http://www.freepbx.org/support/documentation/howtos/how-to-change...
Edit etc/asterisk/extensions_custom.conf and add the following at the bottom of the file:
[from-trunk-custom]
exten => _X.,1,Set(CALLERID(num)=0${CALLERID(num)})
exten => _X.,n,Goto(from-trunk,${EXTEN},1)
In that event all the incoming caller ID will be added the leading digit "0" to 1)2)3)4)
mentioned above. Although It will work for 2)long distance caller ID and 3)cell phone caller
ID, it will cause another problem because it is not necessary for me to add leading digit "0"
to 1)local callerID and 4)international caller ID.
How can I change this? Would you please help me to solve it step by step?
I deeply appreciate your kindness.
Jack
Member Since:
2006-09-14