Gagan Posted October 30, 2023 Report Posted October 30, 2023 Hello Have been trying to add single//multiple ips in account but post/put all give error "data": { "ips%2E0": { "not_found": { "message": "ip not found", "value": "85.215.197.153" } Can others shed more light.. Thanks
Administrators mc_ Posted October 30, 2023 Administrators Report Posted October 30, 2023 The response should have "request_id", the value of which you can use to check your server's logs (/var/log/kazoo/kazoo.log typically).
Gagan Posted October 31, 2023 Author Report Posted October 31, 2023 (edited) Hello, i just sent part of response.. Complete response { "data": { "ips%2E0": { "not_found": { "message": "ip not found", "value": "85.215.197.153" } } }, "error": "400", "message": "validation error", "status": "error", "timestamp": "2023-10-30T17:39:00Z", "version": "4.3.140", "node": "k0ktGBIJ38vMxQeOH7Q1cQ", "request_id": "45e2bffb1b17d996adceb1500d95aa4a", Edited November 1, 2023 by Gagan (see edit history)
Administrators mc_ Posted October 31, 2023 Administrators Report Posted October 31, 2023 Indeed, you have the "request_id" value now! Grep your logs to see what the server did and perhaps it will suggest what went wrong. Also, as an aside, it is generally advisable to strip things like the "auth_token" value. All to easy to accidentally leak access to a cluster that way.
Gagan Posted November 1, 2023 Author Report Posted November 1, 2023 Hello, Just need to be more clear .. will this IP API work for solution i am looking to achieve. a user account on kazoo , if adds his Asterisk IP in account. Now , he wishes to place Outbound calls from his asterisk via his kazoo account, so he sets up a trunk for our kazoo ip and calls are auto routed based on call routing by kazoo and his account billed ( as he has authenticated his ip in account). Thanks
Administrators mc_ Posted November 3, 2023 Administrators Report Posted November 3, 2023 If you want to have an existing PBX route through KAZOO, create it either using the "connectivity" API or as a "device". "Connectivity" configs use a backend service call trunkstore, most suitable for pure SIP trunking. If you want callflow features available before routing to/from your PBX, creating it as a "device" makes sense. The "ips" API is probably not what you want, in this case.
sudo__su-- Posted November 13 Report Posted November 13 (edited) On 11/3/2023 at 1:46 PM, mc_ said: If you want to have an existing PBX route through KAZOO, create it either using the "connectivity" API or as a "device". "Connectivity" configs use a backend service call trunkstore, most suitable for pure SIP trunking. If you want callflow features available before routing to/from your PBX, creating it as a "device" makes sense. The "ips" API is probably not what you want, in this case. @mc_ Question on this (i have a multi-tenant PBX) that wants to route via cust2.kazoo.sip.com DNS name to multiple Tenants on kazoo cluster. If i add IP auth on 1 account it worked but now i have another tenant from same PBX and i need send the same 5200@cust2.kazoo.sip.com (the DNS FROM is different) but i think cause IP auth it all goes to 5200@cust1.kazoo.sip.com even though i called 5200@cust2.kazoo.sip.com is there a way to make it pure like PBX trunk send to 5200.cust2.kazoo.sip.com can it use DNS to route that . (4 digit dialing between PBX to kazoo) back in the past i did a add device / authentication IP auth (but this trunk has SIP based auth too so should it work that way> ?) would i be able to PATCH the connectivity API to inbound route like this ? { "servers": [ { "server_name": "pbxa.sip.telexxxx.com", "auth": { "auth_method": "username", "auth_user": "user93k92", "auth_realm": "pbxa.sip.telexxxx.com" }, "options": { "inbound_format": "domain", "enabled": true, "media_handling": "bypass", "force_outbound": false } } ] } Edited November 13 by sudo__su-- (see edit history)
Administrators mc_ Posted November 14 Administrators Report Posted November 14 No, extension dialing is not supported by connectivity/trunkstore devices. KAZOO will recv the dialed number from your PBX and try to route it via the carriers (the stepswitch app in KAZOO). So 5200 won't be routed if you use it. IP auth for cust1 will require all calls from that IP to associate with cust1 on KAZOO.
sudo__su-- Posted November 15 Report Posted November 15 (edited) On 11/14/2024 at 2:05 PM, mc_ said: No, extension dialing is not supported by connectivity/trunkstore devices. KAZOO will recv the dialed number from your PBX and try to route it via the carriers (the stepswitch app in KAZOO). So 5200 won't be routed if you use it. IP auth for cust1 will require all calls from that IP to associate with cust1 on KAZOO. Oh so if we have multiple customer on the Same FROM IP (tenant based cloud system) this wont work. will this be something on 5.x if it comes out to community. workaround i swapped the from header as the to domain also from domain. and put a X-Header in to process via a middle proxy agent box but that seems hacky but it works but hoping it could treat it like a pbx trunk 4digit dialing across. Edited November 15 by sudo__su-- (see edit history)
Administrators mc_ Posted November 15 Administrators Report Posted November 15 I guess I would ask what purpose the other tenent-based cloud system is providing and why you are using KAZOO (also a tenant-based cloud system) as a class 5 switch for them? Connectivity/trunkstore is more class 4 switching hence why extension dialing isn't supported
sudo__su-- Posted November 15 Report Posted November 15 Soft transition from customers that are on office cloud based systems (with similar FromIP) and cloud based system to kazoo onprem. Some have more advanced SDK driven call control applications to then dial 4 digit dial across and in terms of migrations. CustA is on existing PBX but we are slowing added customer to kazoo so interim we do 4 digit dialing. Other PBX cluster systems without DID number to just dial xxx over a trunk like Mitel - Freepbx days but in this case its def different as anything and everything is DID driven. We did also do a customer and created fake DIDs 1xxx-xxx-xxxxt to insert/remove and auto assign but there is a headache in managing this way for each customer on xxxx did. It did work for 1 Customer. and not dynamic to any callflow (unless maybe we modify the insert) OR what if we modified FS directory and did a domain matching based and takes out the dynamicness of Kazoo. I did do a route you suggested a few years back with adding Device as IP Auth and it woks that way for cust1.kaz.com but when I add another customer from the same cloud Carrier. I Try to call from the same cloud system custb.domain.com to kazoo cluster cust2.kaz.com domain routing but it chooses that account with the device IP auth. We thought of doing fake IPs per customer to auth based but hard to find a viable solution. i thought trunkstore would do the trick or potentially modifying the function doc in the lookup_did /lookup_user_flags but that is way far beyond my scope. Or maybe we look at a kamailio front proxy to route different things but If there is something like this what would be it called to even consider a feature request for the PBX trunkstore config. Like me i thought sip domain based auth routing it would just work ext to ext dialing.
Recommended Posts