[asterisk-users] Getting source ip adress of incoming INVITE

2014-07-04 Thread Daniel Tryba
I'm interested in finding out what the source ip is of an invite in the
dialplan (Asterisk 11). As far as I can see this information isn't
accessible. The only solution I can think of is parsing either
Record-Route or Via headers. This is for recognizing guests in the
default context for sip.


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] Getting source ip adress of incoming INVITE

2014-07-04 Thread Richard Kenner
 I'm interested in finding out what the source ip is of an invite in the
 dialplan (Asterisk 11).

${CHANNEL(recvip)}

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] quoting arguments to System command in dialplan

2014-07-04 Thread Eric Cooper
On Wed, Jul 02, 2014 at 05:00:47PM -0700, John Kiniston wrote:
 How about using the FILTER function to strip out anything you don't like from
 the CALLERID variables?
 Set(CIDNAME=${FILTER(A-Z,${CALLERID(NAME)})})
 Set(CIDNUM=${FILTER(0-9,${CALLERID(NUM)})})

Thanks for the suggestion; I'll try it.  I'm still bothered that I
can't figure out how to reliably quote the characters rather than just
stripping them out.

-- 
Eric Cooper e c c @ c m u . e d u

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

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


Re: [asterisk-users] quoting arguments to System command in dialplan

2014-07-04 Thread John Novack


Eric Cooper wrote:

On Wed, Jul 02, 2014 at 05:00:47PM -0700, John Kiniston wrote:

How about using the FILTER function to strip out anything you don't like from
the CALLERID variables?
Set(CIDNAME=${FILTER(A-Z,${CALLERID(NAME)})})
Set(CIDNUM=${FILTER(0-9,${CALLERID(NUM)})})

Thanks for the suggestion; I'll try it.  I'm still bothered that I
can't figure out how to reliably quote the characters rather than just
stripping them out.


I have found that this varies from version to version
The parser in 1.4 is quite different than in 1.8 or 11
I ran into this with MSQL commands within the dialplan
Escapes (\) single and double quotes are not uniform from 1.4 through 11.
YMMV

John Novack

--

Dog is my Co-pilot


--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
  http://www.asterisk.org/hello

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