Forums Read-only archive

Dial Plan for disallow FoIP T38 in second Invite

7 posts · Brekeke SIP Server Forum

david.wan Original post
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
you can try with $body to check t38 in the invite message body and reject the call
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
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
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
i think accounting plugin guide is the session plugin guide
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:

  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 ) ;
  }