core show function SIPPEER<br><br><div class="gmail_quote">2009/1/6 Klaus Darilion <span dir="ltr"><<a href="mailto:klaus.mailinglists@pernau.at">klaus.mailinglists@pernau.at</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
since 1.4 you can also use<br>
<br>
setvar=foo=bar<br>
<br>
in sip.conf when configuring the peer. Then the channel variable foo is<br>
automatically set to bar for calls initiated by this peer.<br>
<br>
regards<br>
klaus<br>
<br>
Philipp Kempgen wrote:<br>
> Grey Man schrieb:<br>
>> On Wed, Nov 26, 2008 at 11:47 AM, Richard Brady <<a href="mailto:rnbrady@gmail.com">rnbrady@gmail.com</a>> wrote:<br>
>>> Hi folks<br>
>>><br>
>>> I'm not sure what I am missing but I cannot find a predefined channel<br>
>>> variable to identify the SIP peer/user which has initiated a call and<br>
>>> established the channel.<br>
>>><br>
>>> The one option is to extract it from the CHANNEL variable, but that is<br>
>>> fraught with difficulties.<br>
>>><br>
>>> Is there another variable I don't know about or another way to do this?<br>
>> In 1.2 and 1.4 I don't believe there is any other way. Parsing the<br>
>> username from the channel name is what we ended up having to do!<br>
><br>
> Since 1.6 there is CHANNEL(peername).<br>
><br>
><br>
> Philipp Kempgen<br>
><br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br>