[Asterisk-Users] YAC and IPs

Anton Krall akrall-lists at intruder.com.mx
Tue Apr 26 10:04:31 MST 2005


Could you send it to me offlist? This sounds like a good approach..

Know if you can make a bash script an agi? 

|-----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
|




More information about the asterisk-users mailing list