rick Posted October 13, 2015 #1 Share Posted October 13, 2015 does anybody know how to make a trunk with powershell ?if you know an another way pleas answer gr rick Link to comment Share on other sites More sharing options...
Tom Wellige Posted October 15, 2015 #2 Share Posted October 15, 2015 Hi Rick, this little script creates a useradds an internal number to that usercreates a trunk groupcreates a trunkdefines a number range to the trunkconnects an external number with the internal number of above user Import-Module IpPbx Connect-IpPbx $userEntry = New-IpPbxUser -UserName "Stefan" Add-IpPbxUser -UserEntry $userEntry $Number = New-IpPbxInternalNumber -InternalNumber "200" Add-IpPbxInternalNumberToUser -InternalNumberEntry $Number -UserName "Stefan" New-IpPbxTrunkGroup -TrunkGroupName "TestTrunkGroup1" -TrunkGroupType SIP | Add-IpPbxTrunkgroup New-IpPbxTrunk -TrunkName "TestTrunk1" | Add-IpPbxTrunk -TrunkGroupName "TestTrunkGroup1" $NumberRangeEntry = New-IpPbxTrunkNumberRange -CountryCode "49" -AreaCode "231" -SubscriberNumber "4666" -ExtensionStart "100" -ExtensionEnd "999" Add-IpPbxTrunkNumberRange -TrunkName "TestTrunk1" -TrunkNumberRangeEntry $NumberRangeEntry $Number = New-IpPbxPublicNumber -PublicNumber "+492314666200" Add-IpPbxPublicNumber -PublicNumber $Number -InternalNumber "200" Disconnect-IpPbx Remove-Module IpPbxHope you get the information you need from this example. Link to comment Share on other sites More sharing options...
rick Posted October 16, 2015 Author #3 Share Posted October 16, 2015 thanks for the help Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.