[asterisk-users] question on originate call - solved
Jerry Geis
geisj at pagestation.com
Wed Feb 4 18:15:08 CST 2009
Jerry Geis wrote:
> Jerry Geis wrote:
>> I have outgoing call files working. I am trying to get the manager to
>> originate a call.
>> My outgoing call file that works looks like:
>>
>> Channel: SIP/devcentos5x64_to_panel/mediaport
>> SetVar: MEETME_PLAYFILE=/home/silentm/record/pc.1725.wav
>> SetVar: agi_pa_recno=1725
>> Context: smvoice-dialout
>> Extension: smvoice_single_mediaport
>> Priority: 1
>> RetryTime: 2
>> WaitTime: 40
>> MaxRetries: 0
>> SetVar: SIPADDHEADER="Alert-Info: Ring Answer"
>> CallerID: Jerry Geis 204 <317>
>> SetVar: agi_port=
>> SetVar: agi_extension= TESTING
>> SetVar: agi_seconds_to_ring=40
>> SetVar: agi_dwc_record_num=43
>>
>>
>> The Manager API session looks like:
>> 04-Feb-09 08:22 am asterisk_command() Action: Login
>> 04-Feb-09 08:22 am asterisk_command() Username: MessageNet
>> 04-Feb-09 08:22 am asterisk_command() Secret: XXXXX
>> 04-Feb-09 08:22 am asterisk_command() Events: off
>> 04-Feb-09 08:22 am DEBUG: Response: Success[CR ][LF ]Message:
>> Authentication accepted[CR ][LF ][CR ][LF ]
>> Action: Originate[CR ][LF ]
>> Channel: SIP/devcentos5x64_to_panel/mediaport[CR ][LF ]
>> Variable: MEETME_PLAYFILE=/home/silentm/record/pc.1725.wav[CR ][LF ]
>> Variable: agi_pa_recno=1725[CR ][LF ]
>> Context: smvoice-dialout[CR ][LF ]
>> Exten: smvoice_single_mediaport[CR ][LF ]
>> Priority: 1[CR ][LF ]
>> Timeout: 40[CR ][LF ]
>> Variable: SIPADDHEADER="Alert-Info: Ring Answer"[CR ][LF ]
>> Variable: agi_port=3[CR ][LF ]
>> Variable: agi_extension= TESTING[CR ][LF ]
>> Variable: agi_seconds_to_ring=40[CR ][LF ]
>> Variable: agi_dwc_record_num=14[CR ][LF ]
>> [CR ][LF ]
>> 04-Feb-09 08:22 am DEBUG: Response: Error[CR ][LF ]Message: Originate
>> failed[CR ][LF ][CR ][LF ]
>>
>>
>> What am I missing to get the manager API to place the call instead of
>> a call file?
>> Thanks,
>>
>> Jerry
>>
>>
> Seems like the first call to Channel is being MADE successfully.
>
> Then it goes to do Context and Exten: I get failed...
>
> [smvoice-dialout]
> exten => smvoice_single_mediaport,1,agi(smvoice)
> exten => smvoice_single_mediaport,n,Hangup
>
> I am running an AGI at that point. Can the Mangager API not handle
> that????
> All the AGI is doing looking at the variables and playing a wave file
> (at this time).
> This works fine using a call file.
>
> Any thoughts?
>
> Jerry
>
>
>
>
Found it!!!! The timeout in a call file (which worked) is in seconds.
The timeout on the manager api is in milliseconds.
my timeout was kicking me!
Have a great evening!
jerry
More information about the asterisk-users
mailing list