navpreet Posted September 5, 2017 Report Share Posted September 5, 2017 How can we handle pstn call using kazoo freeswitch using freetdm module and how to add PSTN numbers to kazoo to create call flow? Link to comment Share on other sites More sharing options...
navpreet Posted September 5, 2017 Author Report Share Posted September 5, 2017 10 minutes ago, navpreet said: How can we handle pstn call using kazoo freeswitch using freetdm module and how to add PSTN numbers to kazoo to create call flow? @tomas_ Does kazoo has this functionality available? Link to comment Share on other sites More sharing options...
2600Hz Employees mc_ Posted September 5, 2017 2600Hz Employees Report Share Posted September 5, 2017 For outbound calls via FreeTDM, resources support setting the TDM flags necessary. Set the gateway (gateways.[].endpoint_type) type to freetdm, then set "span", "channel_selection", etc to configure the channel in FreeSWITCH. For numbers, you can add the number just like any other number; you'll want your resource to have an appropriate regex to be chosen to route the calls. Link to comment Share on other sites More sharing options...
navpreet Posted September 5, 2017 Author Report Share Posted September 5, 2017 1 hour ago, mc_ said: For outbound calls via FreeTDM, resources support setting the TDM flags necessary. Set the gateway (gateways.[].endpoint_type) type to freetdm, then set "span", "channel_selection", etc to configure the channel in FreeSWITCH. For numbers, you can add the number just like any other number; you'll want your resource to have an appropriate regex to be chosen to route the calls. Thanks @mc_ For PSTN inbound calls, can we configure not to answer call for particular regex, like the miss call solution to register people, by asking them to give miss call on did number(mentioned by regex)? Link to comment Share on other sites More sharing options...
2600Hz Employees mc_ Posted September 5, 2017 2600Hz Employees Report Share Posted September 5, 2017 For routing based on the dialed number, use the "patterns" instead of "numbers" array to match dialed numbers. Otherwise you can use the callflow action to route based on Caller ID Link to comment Share on other sites More sharing options...
navpreet Posted September 5, 2017 Author Report Share Posted September 5, 2017 (edited) 7 minutes ago, mc_ said: For routing based on the dialed number, use the "patterns" instead of "numbers" array to match dialed numbers. Otherwise you can use the callflow action to route based on Caller ID So, can we hangup call without answering them, using call flow hangup action and inserting the callee number using api to custom database? Edited September 5, 2017 by navpreet (see edit history) Link to comment Share on other sites More sharing options...
2600Hz Employees mc_ Posted September 5, 2017 2600Hz Employees Report Share Posted September 5, 2017 Sure, use the hangup callflow action or send a custom SIP response if you like. You can also use the 'webhook' callflow action to send a custom webhook to your server, which you can use to insert call information into your database. Link to comment Share on other sites More sharing options...
Recommended Posts