[Asterisk-Users] YAC and IPs
Florian Overkamp
florian at obsimref.com
Tue Apr 26 12:17:36 MST 2005
Hi,
> -----Original Message-----
> 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.
> |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.
Whoof. That approach will work, but it will be pretty heavy if you have lots
of SIP clients. Be carefull, it does _not_ scale well.
Florian
More information about the asterisk-users
mailing list