Displaying 1 result from an estimated 1 matches for "mypstngate".
2004 Jun 24
2
How to force G729
...STN gateway provider supports both, so that's not a problem, and if I force him (the PSTN gateway) to allow G729 only, the outgoing call will take place with G729.
The problem is that I want to have my PSTN provider configured to allow ULAW as a first priority, then G729. I did it like that:
[mypstngate]
type=friend
host=192.168.0.100
port=5060
context=pstn-in
canreinvite=no
disallow=all
allow=ulaw
allow=g729
Then, in the outgoing context for our G729 SIP customers, I've put something like that:
exten => _0NXXXXXXXX,1,setvar(SIP_CODEC=g729)
exten => _0NXXXXXXXX,2,Dial(SIP/0041${EXTEN:1}...