Summary:ASTERISK-01904: Add ability to specify peercontext in iax.conf
Reporter:Kevin P. Fleming (kpfleming)Labels:
Date Opened:2004-06-26 11:42:49Date Closed:2008-01-15 15:00:46.000-0600
Versions:Frequency of
Environment:Attachments:( 0) asterisk-iax2-peercontext.patch
Description:I want to be able to store only the barest minimum of information in my IAX2 Dial commands: peer name and extension.

Currently I can store the username and secret in iax.conf and Asterisk will use them, but I cannot specify the context name to be passed to the peer in iax.conf, it has to be specified in the Dial command.

Attached patch adds support for "peercontext" parameter for type=peer entries in iax.conf, which will be passed to the peer as the desired context _unless_ a context is included in the Dial command, in which case that context will be passed to the peer.


I will FAX a copyright disclaimer for future changes on Monday, but for this patch I place the changes into the public domain :-)
Comments:By: Mark Spencer (markster) 2004-06-26 12:02:41

Added to CVS with a small fix and sample config update.

By: Digium Subversion (svnbot) 2008-01-15 15:00:46.000-0600

Repository: asterisk
Revision: 3315

U   trunk/apps/app_voicemail.c
U   trunk/channels/chan_alsa.c
U   trunk/channels/chan_iax2.c
U   trunk/configs/iax.conf.sample
U   trunk/doc/README.iax

r3315 | markster | 2008-01-15 15:00:45 -0600 (Tue, 15 Jan 2008) | 2 lines

Add peercontext parameter for default outbound context (bug ASTERISK-1904)