[asterisk-users] Channel variable to identify the calling SIP peer

Klaus Darilion klaus.mailinglists at pernau.at
Wed Jan 7 10:40:58 CST 2009



Grygoriy Dobrovolskyy schrieb:
> core show function SIPPEER


Does not work. Using the SIPPEER function you have to know the name of 
the peer already.

regards
klaus

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



More information about the asterisk-users mailing list