[Asterisk-Users] Changing REINVITE status of the channel
dynamically
Luki
lugosoft at gmail.com
Wed Mar 8 10:54:02 MST 2006
> I'd like to know if it's possible to set the REINVITE on or off dynamically,
> based on the extension being dialed.
Define two peers in sip.conf, one with canreinvite=yes and the second
with canreinvite=no. Then you can route your calls with or without
reinvites depending on the dialed number. Like:
[provider-reinvite]
type=peer
host=external_sip_server.com
canreinvite=yes
...
[provider-noreinvite]
trype=peer
host=external_sip_server.com
canreinvite=no
...
exten => _1[0-4]X0.,1,Dial(SIP/{EXTEN:4}@provider-reinvite)
exten => _1[5-9]X0.,1,Dial(SIP/{EXTEN:4}@provider-noreinvite)
--Luki
More information about the asterisk-users
mailing list