Dial Plan for disallow FoIP T38 in second Invite

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
david.wan
Posts: 12
Joined: Wed Dec 11, 2013 3:01 am

Dial Plan for disallow FoIP T38 in second Invite

Post by david.wan »

1. Brekeke Product Name and Version: Version 3.2.5.0 Standard

2. Java version: apache-tomcat-6.0.35

3. OS type and the version: RHEL 5.5

4. UA (phone), gateway or other hardware/software involved:

5. Your problem:

I would like to make a dial plan for allowing VoIP but disallowing FoIP Invite. How can the dial plan be configured for replying error response to the UA for FoIP Invite? Thank you.
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

you can try with $body to check t38 in the invite message body and reject the call
taitan
Posts: 237
Joined: Sat Mar 15, 2008 10:39 pm

Post by taitan »

> Dial Plan for disallow FoIP T38 in second Invite

For checking non-initial INVITE, use Session Plugin API.
DialPlan doesn't check non-initial INVITE.
david.wan
Posts: 12
Joined: Wed Dec 11, 2013 3:01 am

Post by david.wan »

taitan wrote:> Dial Plan for disallow FoIP T38 in second Invite

For checking non-initial INVITE, use Session Plugin API.
DialPlan doesn't check non-initial INVITE.
Hi taitan,

Thanks for the information. Where can I find the sample of Session Plugin API?
david.wan
Posts: 12
Joined: Wed Dec 11, 2013 3:01 am

Post by david.wan »

david.wan wrote:
taitan wrote:> Dial Plan for disallow FoIP T38 in second Invite

For checking non-initial INVITE, use Session Plugin API.
DialPlan doesn't check non-initial INVITE.
Hi taitan,

Thanks for the information. Where can I find the sample of Session Plugin API?
Hi Taitan,

I can only download the Developer's Guides for Accounting Plug-in, Authentication Plug-in & Dial Plan Plug-in but not Session Plug-in.
hope
Posts: 862
Joined: Tue Jan 15, 2008 4:08 pm

Post by hope »

i think accounting plugin guide is the session plugin guide
janP
Posts: 336
Joined: Sun Nov 25, 2007 2:55 pm

Post by janP »

Add procINVITE() method in a plugin to catch any INVITE including re-INVITE (second INIVTE) which defines T38.

it will be the following.

Code: Select all

  public void procINVITE( ClientStat cs, SIPpacket sippacket, boolean bRequest )
  {

    // INVITE has content body
    if ( sippacket.content != null ) {

      // content body indicates "t38"
      if ( sippacket.content.toString().indexOf( "t38" ) > 0 ) {

        // remove the content body
        sippacket.content = null ;
      }
    }


    super.procINVITE( cs, sippacket, bRequest ) ;
  }
Post Reply