Hi to all.
I am using phpAgi to originate some outbound call with AMI. Lets say this php file is makecall.php
Then according to context, the dialplan in extension.conf runs another phpAgi script. Lets say this php file is test.php.
With this structure I can make any outbound call, but the problem is that I can not take dialstatus or CDR disposition correctly in test.php or makecall.php . Because if the called one doesnt answer or make it busy, I can not take these values correctly.
While I was investigating this situation in web, I saw it is said that with “Originate” function, it is not possible to take these values. They were suggesting to use local channels firstly.
So, what should I do? Are you going to suggest the local channels too? If so, please show me the proper way of it.
Thank you very much.
what is your originate parameters ? Do you dial Dahdi or sip/iax channel directly or are you using local channel ?
I have the same scenario without any problem . If for example you dial Dahdi channels directly channel will answer first and then sends it dialplan so you should not have any problem .
you can log your calls details in database as well . some how generating your own CDR .
[quote=“omid_mohajerani”]what is your originate parameters ? Do you dial Dahdi or sip/iax channel directly or are you using local channel ?
I have the same scenario without any problem . If for example you dial Dahdi channels directly channel will answer first and then sends it dialplan so you should not have any problem .
you can log your calls details in database as well . some how generating your own CDR .[/quote]
Well, originally I was directly making outdial call with SIP channel. But now, I try to dial local channel and then make the dialplan to make a SIP call. Is it a correct way? Can you show me an example?
Thank you.