I've been playing around with AGI apps, and I have some
questions
about fastagi.
I have * on computer A and a service on computer B at
a.b.c.d:n. I
then use a URI
to point to the AGI script in extensions.conf, like
exten => 10,2,AGI(agi://a.b.c.d:n)
Instead of stdin/stdout/stderr, computer A and B talk to
each other
over a
socket connection.
1) What is the protocol from A to B? It looks similar to
when the
agi app is local,
but the parameter list is slightly different.
This is what I get for a local agi at exten 5555 (with some
minor
formating)
DEBUG asterisk-agi: AGI Environment Dump:
-- enhanced = 0.0
-- uniqueid = 1148164502.66
-- extension = 5555
-- language = en
-- accountcode =
-- priority = 2
-- type = SIP
-- dnid = 5555
-- channel = SIP/jim-f0ea
-- context = sipura
-- request = agi-test.rb
-- rdnis = unknown
-- callerid = jim <500>
This is what I get for a remote agi at exten 10:
request: agi://127.0.0.1:10000
language: en
uniqueid: 1148193344.25
dnid: 10
context: sipura
priority: 2
accountcode:
2) What is the protocol from B to A? Is it the * monitor
API, or
is it AGI, just like for a local
app, but over the network.
3) Is there a way to get debugging info to the console -
like
using stderr for local apps
Thanks
Jim Freeze
_______________________________________________
Austin-Asterisk-Users-Group mailing list
Austin-Asterisk-Users-Group bybent.com
http://buzzard.onr.com/mailman/listinfo/austi
n-asterisk-users-group
AAUG Web Site: http://aaug.bybent.com/
|