Thanks Michael!
Since the call is coming in over IAX2 it's:
Set(CDR(userfield)=${CHANNEL(peerip)})
I am using Asterisk 1.8.13.0
Works a treat!
-Graham-
Lonnie Abelbeck wrote on 05/12/12 16:39:
>
> On Dec 5, 2012, at 8:44 AM, Michael Keuter wrote:
>
>>
>> Am 05.12.2012 um 14:49 schrieb Graham S. Jarvis:
>>
>>> Hello again,
>>>
>>> I must be missing or not understanding something - I get:
>>>
>>> pbx*CLI>
>>> -- Accepting AUTHENTICATED call from XXX.XXX.XXX.XXX:
>>>> requested format = gsm,
>>>> requested prefs = (),
>>>> actual format = gsm,
>>>> host prefs = (),
>>>> priority = mine
>>> [Dec 5 14:44:43] WARNING[1933]: func_channel.c:393 func_channel_read:
>>> Unknown
>>> or unavailable item requested: 'recvip'
>>> etc
>>> .
>>>
>>> The call is coming in OK over IAX.
>>>
>>> Any ideas?
>>>
>>> -Graham-
>>
>> Are you using Asterisk 1.8? It was different in 1.4.
>> Maybe the Channel variables are different for SIP and IAX (recvip was for
>> SIP):
>> See "core show function CHANNEL"
>
> Graham,
>
> For Asterisk 1.4 you need to use ${SIPCHANINFO(recvip)} instead.
>
> Lonnie
>
>
>
> ------------------------------------------------------------------------------
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d
> _______________________________________________
> Astlinux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/astlinux-users
>
> Donations to support AstLinux are graciously accepted via PayPal to
> [email protected].
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Astlinux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/astlinux-users
Donations to support AstLinux are graciously accepted via PayPal to
[email protected].