[Asterisk-Users] How to restrict simultaneous phone registrations

Bryan Mahin bryanm at uneta.com
Wed Apr 5 21:43:50 MST 2006


I am only seeing the siparator ip. Tried the following.

${SIPCHANINFO(peerip)}
${SIPCHANINFO(recvip)}
${SIPCHANINFO(from)}
${SIPCHANINFO(uri)}



-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Alexander
Lopez
Sent: Thursday, April 06, 2006 12:10 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [Asterisk-Users] How to restrict simultaneous phone
registrations

You can grab the DeviceIP and what it is NATed as with the SIPCHANINFO
function:


show function SIPCHANINFO

  -= Info about function 'SIPCHANINFO' =-

[Syntax]
SIPCHANINFO(item)

[Synopsis]
Gets the specified SIP parameter from the current channel

[Description]
Valid items are:
- peerip                The IP address of the peer.
- recvip                The source IP address of the peer.
- from                  The URI from the From: header.
- uri                   The URI from the Contact: header.
- useragent             The useragent.
- peername              The name of the peer.

> -----Original Message-----
<SNIP>
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Please visit us @ www.uneta.com




More information about the asterisk-users mailing list