What is the variable like $peerip to get the registered ip address for a peer Regards ********************************************* No employee or agent is authorized to conclude any binding agreement on behalf of Xplorium with another party by e-mail without express written confirmation by an officer of Xplorium. Any views expressed by an individual in this electronic message do not necessarily reflect views of Xplorium or its subsidiaries and associates. This electronic message and its attachments are solely addressed to the addressee(s), and contain confidential information protected from disclosure belonging to Xplorium. If you are not the intended addressee of this electronic message and its attachments, kindly delete it immediately from your system and notify the sender by electronic mail. You must not copy this message or attachment or disclose its content to any other person. Xplorium does not guarantee the integrity of this electronic message and any of its attachments, or that they are free from computer viruses or other defects. ********************************************* -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061127/de46a857/attachment.htm
Am Dienstag, den 28.11.2006, 06:46 -0800 schrieb Khaled:> What is the variable like $peerip to get the registered ip address > for a peerYou can use ${DB(SIP/Registry/sip507)} where "sip507" is the section name as well as username from my sip.conf- no idea which of both to use, try it out. This value contains the client IP, port number, and more information. Consider CUT() for obtaining the IP, something like exten=>123,45,Set(IPADDR=${CUT(${DB(SIP/Registry/sip504)},:,1)}) BR Anselm
Hello, I want to use AGI for give some information for a softphone, as: exten => 0470022762,2,AGI(/ruby/ring.rb 192.168.0.10 5010) We use Ruby langage. The line doesn't worksin as this, but works with shell command. Also, if i modify my ruby script for give in the code the ip adress and port number, it works! Do you have any idea?? best regards, -- Olivier Saulnier STEGANUX 1er ?tage DIAMECANS BEL AIR 03410 St-Victor T: 04.70.02.27.62 F: 04.70.09.97.41 http://www.steganux.com