Local channel in asterisk is usually use to connect two or more call legs. It is usually done via Manager API, AGI or thru a call file dumped on /var/spool/asterisk/outgoing/
If you're going to call Local channel and want to monitor its call durations use the '/n' flag.
Here it is
Local/extension@context[/n]
Here is an example, a snippet of a script
fputs($socket, "Channel: Local/1$number@wakeout/n\r\n");
fputs($socket, "Context: wakeout\r\n");
fputs($socket, "Exten: waketest\r\n");
fputs($socket, "Priority: 1\r\n");
This is important most especially for billing purposes.
Hope you find this helpful. Thanks, CHeers and God Bless!!!
No comments:
Post a Comment