[asterisk-users] call file question

Jeff LaCoursiere jeff at sunfone.com
Thu Jul 1 08:42:40 CDT 2010


On Wed, 30 Jun 2010, Steve Edwards wrote:

>> Now I whipped up a C program to create a call file to do the same thing
>> from the command line:
>>
>> [snip]
>>         fprintf(callfile, "Channel: Local/*71 at custom-callfwd/n\n");
>
> I don't see exten "*71" in custom-callfwd.

Doh!  That was the problem.  In FreePBX I made *71 the "feature code" to 
access that context, and it was still in my head when I made the callfile.

>
> Why are you using a local channel in your call file?
>

That was the meat of the question, actually.  I want to create a single 
leg with a callfile - just the outbound call.  All other times I have used 
callfiles I was creating two legs and bridging them.  Is there a better 
way to do what I am attempting?


>> 	fprintf(callfile, "Application: Playback\n");
>> 	fprintf(callfile, "Data: hello-world\n");
>> [snip]
>>
>> When I run this it creates the call file and I see this in the console:
>>
>>     -- Attempting call on Local/*71 at custom-callfwd/n for application
>> Playback(hello-world) (Retry 1)
>
> What does the call file look like before you mv it to the spool directory?
>

Exactly the above fprintf lines...

Thanks,

j



More information about the asterisk-users mailing list