Cdr not inserted dstchannel in cdr db when use originate

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

Perhaps you should review this: because you have things in your Originate action that aren’t actual settings namely these two lines:

thanks for your response ,yes of course these setting not exist in originate action ,but when i remove these, $phonenumber value still not inserted in cdr db in dstchannel field

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.