|
yes
i put this lines on db_phone_config.sh
LINESSQL="$LINESSQL INSERT INTO $DB_Extensions_Table (context,exten,priority,app,appdata) VALUES \ ('$context','$phonenumber','1','Set','__FROM_DID=\${EXTEN}'), \ ('$context','$phonenumber','2','Set','PAI=\$(SIP_HEADER(P-Asserted-Identify)}'), \ ('$context','$phonenumber','3','Set','tmpcid=\${CUT(PAI,:,2)}'), \ ('$context','$phonenumber','4','Set','tmpcid=\${CUT(tmpcid,@,1)}'), \ ('$context','$phonenumber','5','Set','CALLERID(number)=\${tmpcid}'), \ ('$context','$phonenumber','6','Noop','Incoming call from \${CALLERID(number)}'), \ ('$context','$phonenumber','7','Set','FAX_RX='), \ ('$context','$phonenumber','8','Goto','custom-linuxmce,$line,1');"
i will suggest a check box on page to add line to use p-asserted-if or caller id
|