Hi Experts
I am trying to create a software that perform some tasks via asterisks AMI. One of them is to tell the PBX to change the dialout plan to a different plan or to restrict a dialout access. So far, here is what I found:
####First, I listed all available commands
Action: ListCommands
####Then, I checked which routes is used by an extension - Edited
Action: QueryOutboundRoutes
Extension: 1000
####Then I tried to set a new outbound routes --> Edited
Action: SetOutboundRoutes
Extension: 1000
Value: NoWhere
####The code above returned no error, but the Routeout for extension 1000 is left blank. I missed the correct parameter for setting the OutboundRoutes value.
Response: Success
Message: Updated database successfully
####When I query the routeout for ext 1000 again, it is blank.
Action: QueryOutboundRoutes
Extension: 1000
Message:
####Here is my asterisks versions:
action: coresettings
Response: Success
AMIversion: 2.8.0
AsteriskVersion: 13.7.0
SystemName:
CoreMaxCalls: 60
CoreMaxLoadAvg: 0.000000
CoreRunUser:
CoreRunGroup:
CoreMaxFilehandles: 5120
CoreRealTimeEnabled: No
CoreCDRenabled: Yes
CoreHTTPenabled: No
Can anyone help me how to use the SetOutboundRoutes
action?
Thanks in advance.