Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Dial Plan for disallow FoIP T38 in second Invite
Author Message
david.wan
Brekeke Member


Joined: 11 Dec 2013
Posts: 12

PostPosted: Tue Dec 31, 2013 1:41 am    Post subject: Dial Plan for disallow FoIP T38 in second Invite Reply with quote

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.
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Tue Dec 31, 2013 10:02 pm    Post subject: Reply with quote

you can try with $body to check t38 in the invite message body and reject the call
Back to top
View user's profile
taitan
Brekeke Master Guru


Joined: 15 Mar 2008
Posts: 237

PostPosted: Wed Jan 01, 2014 2:45 pm    Post subject: Reply with quote

> 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.
Back to top
View user's profile
david.wan
Brekeke Member


Joined: 11 Dec 2013
Posts: 12

PostPosted: Sun Jan 05, 2014 10:02 pm    Post subject: Reply with quote

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?
Back to top
View user's profile
david.wan
Brekeke Member


Joined: 11 Dec 2013
Posts: 12

PostPosted: Wed Jan 08, 2014 7:31 pm    Post subject: Reply with quote

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.
Back to top
View user's profile
hope
Brekeke Master Guru


Joined: 15 Jan 2008
Posts: 862

PostPosted: Wed Jan 08, 2014 11:05 pm    Post subject: Reply with quote

i think accounting plugin guide is the session plugin guide
Back to top
View user's profile
janP
Brekeke Master Guru


Joined: 25 Nov 2007
Posts: 336

PostPosted: Thu Jan 09, 2014 12:45 pm    Post subject: Reply with quote

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 ) ;
  }
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1