[Asterisk-Users] YAC and IPs
Josiah Bryan
jbryan at productiveconcepts.com
Tue Apr 26 14:22:26 MST 2005
On Tuesday 26 April 2005 1:04 pm, Anton Krall wrote:
> Could you send it to me offlist? This sounds like a good approach..
>
> Know if you can make a bash script an agi?
You can use any language you want to do AGI.
http://www.voip-info.org/wiki-Asterisk+AGI
I'll send you the regular perl script off list.
-josiah
>
> |-----Original Message-----
> |From: asterisk-users-bounces at lists.digium.com
> |[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of
> |Josiah Bryan
> |Sent: Martes, 26 de Abril de 2005 09:59 a.m.
> |To: Asterisk Users Mailing List - Non-Commercial Discussion
> |Subject: Re: [Asterisk-Users] YAC and IPs
> |
> |On Tuesday 26 April 2005 9:58 am, Anton Krall wrote:
> |> Guys.
> |>
> |> Im using YAC to send callerid info to PCs and I was
> |
> |wondering if there
> |
> |> is a way to get the IP of a certain SIP or IAX
> |
> |client/technology when
> |
> |> a dial command is issued.
> |>
> |> For example, if the dialplan has a dial sip/client or
> |
> |iax2/client, is
> |
> |> there a way to get the current clients IP so I can pass the
> |
> |parameters
> |
> |> to the system call that send the YAC callerid info?
> |
> |Simplest way probably would be to parse the output of 'sip
> |show peers' or a similar IAX CLI command (I dont use IAX, so I
> |dunno.) I've got a small perl script that parses 'sip show
> |peers' to get the peer name (SIP/whatever) and the matching IP
> |address - just a simple regex exercise, really. It could
> |easily be converted to AGI where one could call:
> |
> |exten => s,1,AGI(tech2ip.pl|SIP/whatever) ; IP is put in TECH_IP
> |
> |If anybody wants the script, let me know.
> |
> |Cheers!
> |-josiah
> |_______________________________________________
> |Asterisk-Users mailing list
> |Asterisk-Users at lists.digium.com
> |http://lists.digium.com/mailman/listinfo/asterisk-users
> |To UNSUBSCRIBE or update options visit:
> | http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
--
Josiah Bryan
IT Coordinator
Productive Concepts, Inc.
jbryan at productiveconcepts.com
(765) 964-6009, ext. 224
More information about the asterisk-users
mailing list