[Asterisk-Users] How to run different codecs between the same endpoints on an IAX trunk?
Andrew Kohlsmith
akohlsmith-asterisk at benshaw.com
Fri Aug 20 04:52:44 MST 2004
On Thursday 19 August 2004 18:11, Kris Boutilier wrote:
> I have a situation where I'm using G.729A as my IAX trunking codec. Now I
> need to push some short duration, low bitrate modem traffic over the link
> (a credit card terminal). Obviously the modem audio isn't going to survive
> the G.729 codec process intact, so for the times the device is used I'd
> like to service calls from that device (and only that device) with a
> higher-data rate codec.
Am I missing something? I do this with my Office Asterisk and Colocation
Asterisk boxes all the time.
On the colocation asterisk box (office asterisk box is pretty much identical
to allow outgoing calls and outgoing faxes):
[officeasterisk]
type=peer
host=192.168.2.2
qualify=500
notransfer=yes
[officephone]
type=user
context=officephone
host=192.168.2.2
qualify=500
disallow=ulaw
notransfer=yes
[officefax]
type=user
context=faxout
host=192.168.2.2
qualify=500
disallow=all
allow=ulaw
notransfer=yes
When a fax call comes in from the PRI, it calls officefax. When a phone call
comes in, it calls officephone. Similarly when someone calls out, it calls
colophone (same as officephone but with different host), and likewise,
outgoing faxes use colofax.
Seems to be working fine here, and has since June when we moved. :-)
Now I have turned off trunking between officeasterisk and coloasterisk -- the
20040806 CVS HEAD seemed to not like to trunk between two boxes running that
code, but would trunk just fine to RC1 (with the trunking fixes that Steve
did)...
Is this the kind of thing you want? I was trunking between office and
colocation up until the last source update I did and it seemed to work just
fine.
-A.
More information about the asterisk-users
mailing list