[Home]

Summary:ASTERISK-04208: [patch] Add IAXPEER Function
Reporter:Anthony Minessale (anthm)Labels:
Date Opened:2005-05-17 14:09:15Date Closed:2008-01-15 15:35:34.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Functions/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) iax.diff
Description:This function allows you to access elements from iax peers

 -= Info about function 'IAXPEER' =-

[Syntax]
IAXPEER(<peername>[:col])

[Synopsis]
Gets IAX Peer INFO

[Description]
Valid Columns Include:
- ip (default)          The IP of the peer.
- mailbox               The configured mail box.
- context               The configured context.
- expire                The epoch time of the next expire.
- dynamic               Is it dynamic? (yes/no).
- callerid_name         The configured caller id name.
- callerid_num          The configured caller id number.
- codecs                The configured codecs.
- codec[x]              Prefered codec index number 'x' (0 being first).



****** ADDITIONAL INFORMATION ******

Disclaimer on file
anthmct@yahoo.com
Comments:By: Olle Johansson (oej) 2005-05-17 16:51:55

This is cool.

By: Michael Jerris (mikej) 2005-05-17 19:07:16

This is very cool... Is it better to have individual functions for different channel types or a more general PEER function that takes channeltype as an argument?

By: Anthony Minessale (anthm) 2005-05-18 08:55:57

Because the information is private to the channel itself, you must implement it from within the channel driver.  So each channel driver is responsible to implement it's own features.  It just so happens that sip and iax steal stuff from eatch other so much but most things are done in parallel and only are the same on the outside.

By: Kevin P. Fleming (kpfleming) 2005-05-19 00:26:51

Committed to CVS HEAD, thanks! (I did make some minor formatting changes and cleaned up the wording/syntax of the documentation a bit <G>. The formatting changes are now explicitly codified in CODING-GUIDELINES, rather than just the asterisk-dev archives...)

By: Digium Subversion (svnbot) 2008-01-15 15:35:34.000-0600

Repository: asterisk
Revision: 5733

U   trunk/channels/chan_iax2.c
U   trunk/doc/CODING-GUIDELINES

------------------------------------------------------------------------
r5733 | kpfleming | 2008-01-15 15:35:34 -0600 (Tue, 15 Jan 2008) | 3 lines

add IAXPEER function (bug ASTERISK-4208, with minor formatting and doc changes)
add note to CODING-GUIDELINES about minimizing indentation in function bodies

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=5733