RE: [Asterisk-Users] YAC and IPs
Not a bad idea at all! |-Original Message- |From: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED] On Behalf Of |William Suffill |Sent: Martes, 26 de Abril de 2005 07:02 p.m. |To: Asterisk Users Mailing List - Non-Commercial Discussion |Subject: Re: [Asterisk-Users] YAC and IPs | |Why not DBGet from the SIP.Registry in ASTDB? Wouldn't that be |cleaner since it would only return the 1 you want instead of |parsing what could be a load of sip peers? | |-- William |___ |Asterisk-Users mailing list |Asterisk-Users@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@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] YAC and IPs
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? ___ Asterisk-Users mailing list Asterisk-Users@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
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@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
Re: [Asterisk-Users] YAC and IPs
On Tue, 2005-04-26 at 08:58 -0500, Anton Krall wrote: 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? I use the same system. I have a couple of perl agi scripts that fill the gap. One of them finds a hardcoded IP in a hash of extensions, the other sends the callerid information in YAC format. Email me if you want a copy. Adam. p.s. CC adam@mydomain to make sure I see it if you reply. ___ Asterisk-Users mailing list Asterisk-Users@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@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
RE: [Asterisk-Users] YAC and IPs
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: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED] 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@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@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
Re: [Asterisk-Users] YAC and IPs
On 26/04/05, Adam Greenbaum [EMAIL PROTECTED] wrote: On Tue, 2005-04-26 at 08:58 -0500, Anton Krall wrote: 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? I use the same system. I have a couple of perl agi scripts that fill the gap. One of them finds a hardcoded IP in a hash of extensions, the other sends the callerid information in YAC format. Email me if you want a copy. Adam. p.s. CC adam@mydomain to make sure I see it if you reply. I'd appreciate a copy of your YAC scripts at your convenience Regards Peter -- Peter Bowyer Email: [EMAIL PROTECTED] Tel: +44 1296 768003 VoIP: sip:[EMAIL PROTECTED] ___ Asterisk-Users mailing list Asterisk-Users@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
Re: [Asterisk-Users] YAC and IPs
This example is on voip-info.org - Original Message - From: Anton Krall [EMAIL PROTECTED] To: 'Asterisk Users Mailing List - Non-Commercial Discussion' asterisk-users@lists.digium.com Sent: Tuesday, April 26, 2005 9:58 AM Subject: [Asterisk-Users] YAC and IPs 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? ___ Asterisk-Users mailing list Asterisk-Users@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@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
RE: [Asterisk-Users] YAC and IPs
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 ___ Asterisk-Users mailing list Asterisk-Users@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
Re: [Asterisk-Users] YAC and IPs
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: [EMAIL PROTECTED] |[mailto:[EMAIL PROTECTED] 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@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@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. [EMAIL PROTECTED] (765) 964-6009, ext. 224 ___ Asterisk-Users mailing list Asterisk-Users@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
Re: [Asterisk-Users] YAC and IPs
Why not DBGet from the SIP.Registry in ASTDB? Wouldn't that be cleaner since it would only return the 1 you want instead of parsing what could be a load of sip peers? -- William ___ Asterisk-Users mailing list Asterisk-Users@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
Re: [Asterisk-Users] YAC and IPs
On Tuesday 26 April 2005 8:01 pm, William Suffill wrote: Why not DBGet from the SIP.Registry in ASTDB? Wouldn't that be cleaner since it would only return the 1 you want instead of parsing what could be a load of sip peers? Hmm, great idea! (This is one of those DUH! moments for me) - I never thought of trying the ASTDB - thanks for the reminder. Yes, that would be much easier than parsing sip show peers. Just use one of the dialplan commands to cut the return value at the first ':' and there ya go! Google 'site:voip-info.org Asterisk variables' or something like that for string maniupluation. -josiah ___ Asterisk-Users mailing list Asterisk-Users@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