Greetings List,
First post of many. I've managed to get up a running a very simple VoIP network with Kamailio as the core, and asterisk on the edge. Most of this has been accomplished using the default kamailio.cfg file shipped in 3.3.
For my next adventure, I'd like to start using the dispatch module to route calls from Kamailio to asterisk, however having some trouble getting my syntax correct. I was hoping somebody could point me to an existing post / URL describing what I was asking, if it is based on the default configuration file, the better.
I should note, if I have Asterisk register to kamailio, I can route calls fine however, I believe the dispatcher is the better way to do this.
On Monday 28 January 2013 18:21:26 Paul Belanger wrote:
For my next adventure, I'd like to start using the dispatch module to route calls from Kamailio to asterisk, however having some trouble getting my syntax correct. I was hoping somebody could point me to an existing post / URL describing what I was asking, if it is based on the default configuration file, the better.
I should note, if I have Asterisk register to kamailio, I can route calls fine however, I believe the dispatcher is the better way to do this.
http://www.kamailio.net/docs/modules/3.3.x/modules_k/dispatcher.html#id25231... has a working example. Add route[DISPATCH]/failure_route[RTF_DISPATCH] and call route(DISPATCH); instead of your current outgoing route.
Insert at least 1 destination in your dispatcher table: id: 1 setid: 1 destination: sip:192.168.1.2:5060;transport=udp flags: 8 priority: 0 attrs: description: asterisk
and make sure your asterisk machines handle unauthenticated messages from kamailio: [kamailio] host=192.168.1.1 context=incoming type=friend allow=all qualify=yes insecure=port,invite nat=no canreinvite=yes
Nothing more to it.