Hi all,
I'm trying to make a blind call forward to "1002" if a UA calls "1" into Kamailio. At the moment I have the following config:
if ( $rU=~"^[1]$" && src_ip==$sel(cfg_get.pstn.gw_ip) ) { sl_send_reply("181", "Redirecting"); $ru = "sip:1002@" + $sel(cfg_get.pstn.gw_ip) + ":" + $sel(cfg_get.pstn.gw_port) + ";user=phone"; force_send_socket(udp:MY_EXTERN_IP:5060); route(NORMAL_RELAY); #Just t_on_branch/reply/failure if (!t_relay()) { sl_reply_error(); } exit; }
The calling UA is from the PSTN as well as the called UA. Problem right now is that the PSTN's anti-Loop protection jumps in and rejects the INVITE to 1002.
Question: Is it possible to tell the calling UA "Hey wait, 181..." with Kamailio, then build seperately an independent Call Leg (with new CallID?) from Kamailio to UA "1002" and finally to put them together?
Any help is very much appreciated even if they are just guides/examples. I'm using Kamailio 4.3.5 on CentOS 7.2.
Very Respectfully Dimitry Nagorny Trainee
No, Kamailio cannot build new, independent call legs. This is a function of a B2BUA. -- Alex Balashov | Principal | Evariste Systems LLC 1447 Peachtree Street NE, Suite 700 Atlanta, GA 30309 United States
Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct) Web: http://www.evaristesys.com/, http://www.csrpswitch.com/
Sent from my BlackBerry.
I'm curious what issue you're trying to fix or what functionality you're trying to add? If we know the contact, we might be able to suggest a kamailio only solution.
On Mon, Apr 18, 2016 at 5:26 PM, Juha Heinanen jh@tutpro.com wrote:
Alex Balashov writes:
No, Kamailio cannot build new, independent call legs. This is a function of a B2BUA.
Yes, real easy with SEMS, for example.
-- Juha
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
On Mon, Apr 18, 2016 at 07:26:40PM +0300, Juha Heinanen wrote:
No, Kamailio cannot build new, independent call legs. This is a function of a B2BUA.
Yes, real easy with SEMS, for example.
In the past I have used the topoh module with success to counter such antiloop detection: Avaya IPO -> calls external number -> kamailio/topoh -> terminates call on same Avaya IPO.
But beware topoh also introduces problems in some call scenarios.
Thanks a lot Daniel! topoh-module does what I need.
Best Regards Dimitry Nagorny Trainee
/*-----Ursprüngliche Nachricht----- /*Von: sr-users [mailto:sr-users-bounces@lists.sip-router.org] Im Auftrag von /*Daniel Tryba /*Gesendet: Dienstag, 19. April 2016 13:15 /*An: Kamailio (SER) - Users Mailing List sr-users@lists.sip-router.org /*Betreff: Re: [SR-Users] Kamailio Blind Call Forwarding /* /*On Mon, Apr 18, 2016 at 07:26:40PM +0300, Juha Heinanen wrote: /*> > No, Kamailio cannot build new, independent call legs. This is a /*> > function of a B2BUA. /*> /*> Yes, real easy with SEMS, for example. /* /*In the past I have used the topoh module with success to counter such /*antiloop detection: /*Avaya IPO -> calls external number -> kamailio/topoh -> terminates call on /*same Avaya IPO. /* /*But beware topoh also introduces problems in some call scenarios. /* /* /*_______________________________________________ /*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