Hello,

if you want to send all calls that arrive to kamailio having the prefix 01 to freeswitch:

if($rU =~"^01") {
    $ru = "sip:" + $rU + "@__FREESWITCHIP__";
    route(RELAY);
    exit;
}

Be sure calls are authenticated at that point and, if needed, the call is not actually coming from freeswitch.

Cheers,
Daniel

On 5/20/13 11:33 AM, Tony Turner wrote:

Hi

 

Version Kamailio v4.0 + Siremis installed on Debian Wheezy via apt-get install

 

I want to use Kamailio as a proxy edge register to our network.

 

I have installed Kamailio and freeswitch.

 

I can register on Kamailio but I can’t route a call from my sip client from Kamailio to freeswitch and out to PSTN

 

Sip client ---- Kamailio-----freeswitch-------SS7 ISDN SIP Gateway --- Carriers

 

If I register direct on Freeswitch I can route out to PSTN but I don’t understand Kamailio routing.

 

Can someone let me how I route say from SIP client registered on Kamailio to prefix 01% which goes out to Freeswitch

 

Many Thanks

 

Tony

 



_______________________________________________
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

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
Kamailio Advanced Training, San Francisco, USA - June 24-27, 2013
  * http://asipto.com/u/katu *