[SR-Users] (no subject)

Daniel-Constantin Mierla miconda at gmail.com
Mon Jul 4 13:15:37 CEST 2016


Hello,

I expect that you have to call append_branch() before doing
t_load_contacts().

Then, where do you execute drop() for the sip reply? Kamailio is
dropping the replies if you call drop() -- this is a feature since
2005-2006 (openser 1.1.x or so), if I recall it properly at this moment,
I may even be the developer for this feature. Anyhow, it should work
fine if used in reply_route or onreply_route -- I used for a new config
last week inside reply_route to fix issues with a broken gateway that
doesn't like 183 before 180.

Maybe you can provide a pcap as well as relevant configuration file
snippets for use of the drop().

Cheers,
Daniel


On 02/07/16 15:49, John Petrini wrote:
> Hello,
>
> I'm trying to append a branch, assign it a q value so it has priority
> and serialize the new branch and the main branch.
>
> The goal is to send the new branch off to our CNAM provider, capture
> the CNAM in their reply to an $avp then drop the branch, stick the
> cnam in the main branch and allow the call to continue as normal. We
> do this currently using OpenSIPS with serialize_branches(1) but the of
> load_contacts() behavior seems to be different than serialize_branches.
>
> route[CNAM_DIPS]
>   t_on_branch("CNAM_DIPS");
>   t_on_reply("CNAM_DIPS");
>   t_on_failure("CNAM_DIPS");
>   t_load_contacts();
>   t_next_contacts();
>   append_branch("sip:2223334444 at 22.33.444.55:5600;trans-type=5", "0.5");
>   relay();
>   break;
>
> Two problems. First when t_next_contacts is called I get the following
> error:
> ERROR: pv [pv_branch.c:58]: pv_get_branchx(): error accessing branch [0]
> So it looks like the branches aren't actually being loaded?
>
> Second problem is that despite the first error my call goes out on the
> branch I appended and I get a reply from the CNAM provider but
> Kamailio forwards that reply back to the phone causing the phone to
> send a second invite. In OpenSIPs we just called drop, to drop the
> branch and let the main branch continue but this doesn't seem to work
> in Kamailio.
>
> I've read and reread the documentaion but it doesn't seem to behave
> the way the documentation says it should. Is there something I'm
> missing? Is there a better way to accomplish this in Kamailio?
>
> Thank You,
>
> ___
>
> John Petrini
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160704/92590970/attachment.html>


More information about the sr-users mailing list