[OpenSIPS-Users] error when use function t_relay

Robert Thomas thomcr at gmail.com
Thu Sep 15 06:22:49 CEST 2011


Hi Khue,

Can you please post your full opensips.cfg file, and a packet capture so we
can understand better what opensips is doing to the sip packets. A capture
with ngrep with work as well.

That way we can try to help.

On Mon, Sep 12, 2011 at 10:19 PM, nguyen khue <minhkhue49da at yahoo.com>wrote:

> Hi all,
>
> I have a module to process SIP message (INVITE, INFO, 200 OK, BYE). I have
> use t_relay function to capture 200 OK message in block onreply_route. But,
> After I use t_relay function, INFO, BYE, some ACKs messages cannot route to
> destination. If I insert some t_relay function in config file, it work
> normal.
>
> ex:
> if (is_method("INFO")){
> t_relay();  // *if this function is missing, the SIP INFO cannot reach the
> destination*
> process_info_msg();
> }
> .
> .
> .
>
> route[1]{
> t_on_branch("2"); t_on_failure("1"); t_on_reply("2");
> process_invite_msg();
> if ($fU == xxxx){
> load_balance("1","transc");
> }
> else {
> load_balance("2","transc");
> }
> if(!t_relay()){
> sl_reply_error():
> }
> exit;
> }
>
> onreply_route[2]{
> process_ok_msg();
> }
>
> I using opensips-1.6.2. My module is : kapanga -> opensips -> asterisk.
> Kapanga and Asterisk don't register to opensips.
> Please help me resolve this problem.
>
> Thank you very much
> Khue Nguyen.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>


-- 
Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110914/b7f07af6/attachment.htm>


More information about the Users mailing list