Hello again,
Thanks for the previous detail Lloyd.
I have succeeded to dial with CLI originate command through AMI command
"command" but I am facing problem with originate AMI still. I have a form which
submits values for $x $y and $z and this is to dial to $x and then connect to
context [testphp] and dial to $y:
$attack = array('Channel' => "SIP/testTrunk/$x",
'Context' => 'testphp',
'Exten' => $y,
'Priority' => 1,
'Callerid' => $z
);
$sampleapi->request("Originate", $attack);
In context [testphp] within extensions_custom.conf I have this:
[testphp]
exten => _x.,1,Answer()
exten => _x.,n,Dial(SIP/testTrunk/${EXTEN})
exten => _x.,n,Hangup()
I put $x=14164444444 $y=14165555555 $z=14166666666. For event output I get:
LOGGED OUT! -- Additional events: 0Extension Dialed: 14164444444
And no calls are ever placed to either of $x or $z.
Any feedback will be extremely appreciated.
-Bruce
> Date: Sun, 6 Dec 2009 22:08:47 -0500
> From: [email protected]
> To: [email protected]
> CC: [email protected]; [email protected]
> Subject: Re: [on-asterisk] Tackling some AMI/PHP issue - Originate and
> Channel Status
>
> Here is the archive link From TAUG user list. Feb 2008 I answer for the
> another question. Which will help you
>
> http://www.mail-archive.com/[email protected]/msg06537.html
>
>
> Thank you
>
> Lloyd
>
>
>
> On Sun, Dec 6, 2009 at 10:03 PM, Aloysius Thevarajah Lloyd <
> [email protected]> wrote:
>
> > Here is the some of my production scripts
> >
> >
> > 'Originate',
> > array('Channel'=>"Local/1...@orig/n",
> > 'Context'=>'outboundbroadcast',
> > 'Exten'=>'s',
> > 'Async'=>'1',
> > 'MaxRetries' => '1',
> > 'RetryTime' => '10',
> > 'Priority'=>1,
> > 'Account'=>"$phonenumber",
> > 'Callerid'=>"$callid",
> >
> > 'Variable'=>"dial=$phonenumber|dialdatetime=$dialtime|ID=$ID|RE=$RE|MW=$MW|RR=$RR|HR=$HR|MR=$MR)"));
> >
> > You can send any number of variables.
> >
> >
> >
> >
> > On Sun, Dec 6, 2009 at 9:39 PM, Bruce N <[email protected]> wrote:
> >
> >>
> >> Thanks for the feedback.
> >>
> >>
> >> Call files are not always reliable and they come back with the same
> >> results as well. In addition, I think there has been some discussion about
> >> call files not being processed when large number of calls are placed.
> >> Though, I think there is a limit of 100 or so concurrent connections to AMI
> >> as well but it gives action status back in events. Something that spool
> >> call
> >> files can't do.
> >>
> >> On top of my previous question, I am wondering if anyone knows how to pass
> >> CallerID variable along with originate command.
> >>
> >> Any other gurus?
> >> Thanks,
> >> Bruce
> >>
> >>
> >> > From: [email protected]
> >> > To: [email protected]
> >> > Date: Sun, 6 Dec 2009 21:20:31 -0500
> >> > CC: [email protected]
> >> > Subject: Re: [on-asterisk] Tackling some AMI/PHP issue - Originate and
> >> Channel Status
> >> >
> >> > Check out the call files. Easier to use and debug.
> >> >
> >> > You can also telnet to port 5038 and do the AMI commands yourself to
> >> > test.
> >> >
> >> > Sent from my iPhone
> >> >
> >> > On 2009-12-06, at 12:07 PM, Bruce N <[email protected]> wrote:
> >> >
> >> > >
> >> > > Hi Guys,
> >> > >
> >> > > Just playing around to get php to dial an outside number through the
> >> > > broswer and to play a custom message.
> >> > >
> >> > > I am using floAPI (http://www.phpclasses.org/browse/package/
> >> > > 2521.html) and here is my dial request:
> >> > >
> >> > >
> >> > > echo($sampleapi->request("COMMAND", array("COMMAND" => "originate
> >> > > SIP/$x extension 1...@from-internal")));
> >> > >
> >> > > Vairable $x is what I pass to this and it dials the extension first,
> >> > > once picked up, then it connects to 1...@from-internal which is my
> >> > > custom message (tt-monkeys). This works nicely.
> >> > >
> >> > > But if I do: originate SIP/testTrunk/$x extension 1...@from-internal
> >> > > The moment it starts ringing to $x through "testTrunk" it starts
> >> > > playing 1...@from-internal, hence if the outside party picks up
> >> > > after two rings then they miss hearing a great deal of the monkey
> >> > > noise. Basically, Asterisk can't tell channel status because it's
> >> > > not local to it. What is the workaround for this "if any"? maybe
> >> > > check channel status?
> >> > >
> >> > > If there is a totally different way of doing this rather than using
> >> > > originate command then please enlighten me. I appreciate the feedback.
> >> > >
> >> > > Thanks,
> >> > > Bruce
> >> > > _________________________________________________________________
> >> > > Windows Live: Make it easier for your friends to see what you’re up
> >> > > to on Facebook.
> >> > > http://go.microsoft.com/?linkid=9691816
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: [email protected]
> >> > For additional commands, e-mail: [email protected]
> >> >
> >>
> >> _________________________________________________________________
> >> Ready. Set. Get a great deal on Windows 7. See fantastic deals on Windows
> >> 7 now
> >> http://go.microsoft.com/?linkid=9691818
> >
> >
> >
_________________________________________________________________
Ready. Set. Get a great deal on Windows 7. See fantastic deals on Windows 7 now
http://go.microsoft.com/?linkid=9691818