Hello,

On 8/29/12 3:31 PM, Fatima Chahrour~Vanrise Support wrote:

Dears,

 

I have an installed 3CX where I want to generate a call from it to the Kamailo to get a list of suppliers to terminate the call to.

Thus, the Kamailio should act as a sip redirect to the 3CX (for routing decision).

 

Have you tried such configuration before? And how do I configure the 3CX on the Kamailio?

 

I don't understand what you expect from 'configure the 3CX on the Kamailio', can you add more details ?

For sending a redirect, practically you have to update request uri and then send the 3xx reply, like:

$ru = "sip:newnumber@newdomain.com";
send_reply("302", "Redirected";

If you need to put more contacts in the redirect reply, then add:

km_append_branch("uri");

uri parameter can contain variables.

Cheers,
Daniel

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, Berlin, Nov 5-8, 2012 - http://asipto.com/u/kat