I'm running the standard Debian 7 Kamailio 4.3 package.
I've added the following to my kamailio.cfg:
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_NAT
#!define WITH_TLS
#!define WITH_ANTIFLOOD
After authentication, nat etc. is done is there an easy way to transfer everything else to FreeSWITCH?
I've looked at the dispatcher module, but don't know where to put the "transfer" in kamailio.cfg?
My initial thought is to, right after route(pstn); to put: route(DISPATCHER);
and then have, right after the route[relay] block:
route[DISPATCHER] { if(!ds_select_dst("1", "4")) { send_reply("404", "No destination"); exit; } route(RELAY); exit; }
Would that do it?
On Fri, Sep 4, 2015 at 1:11 PM, Michael Nielsen mic.niel84@gmail.com wrote:
I'm running the standard Debian 7 Kamailio 4.3 package.
I've added the following to my kamailio.cfg:
#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_NAT
#!define WITH_TLS
#!define WITH_ANTIFLOOD
After authentication, nat etc. is done is there an easy way to transfer everything else to FreeSWITCH?
I've looked at the dispatcher module, but don't know where to put the "transfer" in kamailio.cfg?
On Friday 04 September 2015 14:30:34 Michael Nielsen wrote:
My initial thought is to, right after route(pstn); to put: route(DISPATCHER);
and then have, right after the route[relay] block:
route[DISPATCHER] { if(!ds_select_dst("1", "4")) { send_reply("404", "No destination"); exit; } route(RELAY); exit; }
Would that do it?
That is a possible solution. But if you only have 1 destination you could just use the PSTN route.
I would end up with 2 or more PBX's...
On Fri, Sep 4, 2015 at 2:47 PM, Daniel Tryba d.tryba@pocos.nl wrote:
On Friday 04 September 2015 14:30:34 Michael Nielsen wrote:
My initial thought is to, right after route(pstn); to put: route(DISPATCHER);
and then have, right after the route[relay] block:
route[DISPATCHER] { if(!ds_select_dst("1", "4")) { send_reply("404", "No destination"); exit; } route(RELAY); exit; }
Would that do it?
That is a possible solution. But if you only have 1 destination you could just use the PSTN route.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Next link is for a tutorial showing kamailio+freeswitch integration:
* http://kb.asipto.com/freeswitch:kamailio-3.1.x-freeswitch-1.0.6d-sbc
If you route to freeswitch and back to kamailio, then the tutorial should be useful. It uses one freeswitch instance, but you can enhance the routing to/from freeswitch to use dispatcher.
Cheers, Daniel
On 04/09/15 14:49, Michael Nielsen wrote:
I would end up with 2 or more PBX's...
On Fri, Sep 4, 2015 at 2:47 PM, Daniel Tryba <d.tryba@pocos.nl mailto:d.tryba@pocos.nl> wrote:
On Friday 04 September 2015 14:30:34 Michael Nielsen wrote: > My initial thought is to, right after route(pstn); to put: > route(DISPATCHER); > > and then have, right after the route[relay] block: > > route[DISPATCHER] { > if(!ds_select_dst("1", "4")) { > send_reply("404", "No destination"); exit; > } > route(RELAY); > exit; > } > > Would that do it? That is a possible solution. But if you only have 1 destination you could just use the PSTN route. _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org <mailto:sr-users@lists.sip-router.org> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users