hi
I use originate in php for new call like this:
fputs($socket, "Action: Originate\r\n");
fputs($socket, "channel: SIP/shatel/$phone\r\n");
fputs($socket, "dst: $phone\r\n");
fputs($socket, "dstchannel: SIP/shatel/$phone\r\n");
fputs($socket, "Context: AutoDial\r\n");
fputs($socket, "Exten: 1090\r\n");
fputs($socket, "Priority: 1\r\n");
fputs($socket, "ActionID: 96854\r\n");
but when callee reject the call , cdr not registered dstchannel and channel in cdr db,
I want $phonenumber that it was shown in the code inserted in cdr db