siptrace problem

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

siptrace problem

Dragomir Haralambiev
Hello,

I have problem with siptrace in OpenSips 1.8.

OpenSips dumps only CANCEL which sends. It doesn't dump CANCEL which receive.

Here is an example for dump:

http://87.121.151.141/voipdump.htm

Best regards,:
PlayMen

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: siptrace problem

shaheryarkh
How you are doing sip trace? Are you calling sip_trace method or setting sip trace dialog flag in opensips.cfg?

http://www.opensips.org/html/docs/modules/1.8.x/siptrace.html#id248315

Thank you.


On Fri, Feb 8, 2013 at 11:31 PM, Dragomir Haralambiev <[hidden email]> wrote:
Hello,

I have problem with siptrace in OpenSips 1.8.

OpenSips dumps only CANCEL which sends. It doesn't dump CANCEL which receive.

Here is an example for dump:

http://87.121.151.141/voipdump.htm

Best regards,:
PlayMen

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: [hidden email]
Email: [hidden email]

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: siptrace problem

Dragomir Haralambiev
I try with both , results the same.

2013/2/9 Muhammad Shahzad <[hidden email]>:

> How you are doing sip trace? Are you calling sip_trace method or setting sip
> trace dialog flag in opensips.cfg?
>
> http://www.opensips.org/html/docs/modules/1.8.x/siptrace.html#id248315
>
> Thank you.
>
>
> On Fri, Feb 8, 2013 at 11:31 PM, Dragomir Haralambiev <[hidden email]>
> wrote:
>>
>> Hello,
>>
>> I have problem with siptrace in OpenSips 1.8.
>>
>> OpenSips dumps only CANCEL which sends. It doesn't dump CANCEL which
>> receive.
>>
>> Here is an example for dump:
>>
>> http://87.121.151.141/voipdump.htm
>>
>> Best regards,:
>> PlayMen
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> --
> Muhammad Shahzad
> -----------------------------------
> CISCO Rich Media Communication Specialist (CRMCS)
> CISCO Certified Network Associate (CCNA)
> Cell: +49 176 99 83 10 85
> MSN: [hidden email]
> Email: [hidden email]
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: siptrace problem

shaheryarkh
Use only one method, not both at the same time in opensips.cfg. For sip_trace method, use it immediately after sanity checks in main route, e.g.

route {
        if (!mf_process_maxfwd_header("10")) {
                sl_send_reply("483","Too Many Hops");
                exit;
        };

        if (msg:len > max_len) {
                sl_send_reply("513","Message Too Big");
                exit;
        };

       sip_trace();
...

OK make sure you call it for each single SIP method you are interested in, whenever you are processing it opensips.cfg, e.g.

       ...

        if (is_method("INVITE")) {
                 sip_trace();
                 ...

        } else if (is_method("REGISTER")) {
                 sip_trace();
                 ...
        }        

       ...


This should work, if it does not then its most likely a bug. I remember somebody reported such bug in older opensips version (perhaps 1.7.x) and it was fixed by the dev team. So it should work..

Thank you.


On Sat, Feb 9, 2013 at 7:34 AM, Dragomir Haralambiev <[hidden email]> wrote:
I try with both , results the same.

2013/2/9 Muhammad Shahzad <[hidden email]>:
> How you are doing sip trace? Are you calling sip_trace method or setting sip
> trace dialog flag in opensips.cfg?
>
> http://www.opensips.org/html/docs/modules/1.8.x/siptrace.html#id248315
>
> Thank you.
>
>
> On Fri, Feb 8, 2013 at 11:31 PM, Dragomir Haralambiev <[hidden email]>
> wrote:
>>
>> Hello,
>>
>> I have problem with siptrace in OpenSips 1.8.
>>
>> OpenSips dumps only CANCEL which sends. It doesn't dump CANCEL which
>> receive.
>>
>> Here is an example for dump:
>>
>> http://87.121.151.141/voipdump.htm
>>
>> Best regards,:
>> PlayMen
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
>
> --
> Muhammad Shahzad
> -----------------------------------
> CISCO Rich Media Communication Specialist (CRMCS)
> CISCO Certified Network Associate (CCNA)
> Cell: +49 176 99 83 10 85
> MSN: [hidden email]
> Email: [hidden email]
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: [hidden email]
Email: [hidden email]
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: siptrace problem

Bogdan-Andrei Iancu-2
In reply to this post by Dragomir Haralambiev
Hi,

Are you 100% that in your script, the incoming CANCEL hits the
sip_trace() function ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 02/09/2013 12:31 AM, Dragomir Haralambiev wrote:

> Hello,
>
> I have problem with siptrace in OpenSips 1.8.
>
> OpenSips dumps only CANCEL which sends. It doesn't dump CANCEL which receive.
>
> Here is an example for dump:
>
> http://87.121.151.141/voipdump.htm
>
> Best regards,:
> PlayMen
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: siptrace problem

Bogdan-Andrei Iancu-2
if (is_method("INVITE|CANCEL")) {
    sip_trace();
}
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 02/09/2013 08:13 PM, Dragomir Haralambiev wrote:

Hi Bogdan,

I call sip_trace from main route like this:
if (is_method("INVITE")) {
....
sip_trace();
....

What I have to do to solve the problem?

Best regards:
PlyMenPlyMen

On Feb 9, 2013 7:59 PM, "Bogdan-Andrei Iancu" <[hidden email]> wrote:
Hi,

Are you 100% that in your script, the incoming CANCEL hits the sip_trace() function ?

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 02/09/2013 12:31 AM, Dragomir Haralambiev wrote:
Hello,

I have problem with siptrace in OpenSips 1.8.

OpenSips dumps only CANCEL which sends. It doesn't dump CANCEL which receive.

Here is an example for dump:

http://87.121.151.141/voipdump.htm

Best regards,:
PlayMen

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users