[SR-Users] Call subscriber online

Stefano Larosa stefano.larosa at 10993.it
Fri Mar 11 16:50:07 CET 2011


Hi,

 

I'm new on Kamailio 3.0

 

This is the scenario I would like to build:

 

 1 Subscriber A -> 2 kamailio -> 3 asterisk -> 4 Kamailio -> 5 Subscriber B

 

Everything is working fine until the last step

 

This is the code that manage the call from asterisk to kamailio

 

if(is_method("INVITE") && (src_ip==80.169.xx.xx) )

    {

                              route(TOPROXYUSER);

    }

 

And this is the code that should end the call the the subscriber

 

route[TOPROXYUSER] {

                               xlog("L_NOTICE", "$mi route[$rm][0] $fu ->
$ru START PROCESSING MESSAGE\n");

                               rewritehostport("127.0.0.1:5060");

                               if (is_method("BYE|CANCEL")) { 

                                                route(FAIL_ONE);

                               } else if (is_method("INVITE")){ 

                                               route(RELAY);

                               }; 

                               exit;                      

}

 

 

Thank you,

 

Stivu.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20110311/fd07c876/attachment.htm>


More information about the sr-users mailing list