Author |
Message |
david.wan Brekeke Member
Joined: 11 Dec 2013 Posts: 12
|
Posted: Tue Dec 31, 2013 1:41 am Post subject: Dial Plan for disallow FoIP T38 in second Invite |
|
|
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 |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Tue Dec 31, 2013 10:02 pm Post subject: |
|
|
you can try with $body to check t38 in the invite message body and reject the call |
|
Back to top |
|
taitan Brekeke Master Guru
Joined: 15 Mar 2008 Posts: 237
|
Posted: Wed Jan 01, 2014 2:45 pm Post subject: |
|
|
> 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 |
|
david.wan Brekeke Member
Joined: 11 Dec 2013 Posts: 12
|
Posted: Sun Jan 05, 2014 10:02 pm Post subject: |
|
|
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 |
|
david.wan Brekeke Member
Joined: 11 Dec 2013 Posts: 12
|
Posted: Wed Jan 08, 2014 7:31 pm Post subject: |
|
|
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 |
|
hope Brekeke Master Guru
Joined: 15 Jan 2008 Posts: 862
|
Posted: Wed Jan 08, 2014 11:05 pm Post subject: |
|
|
i think accounting plugin guide is the session plugin guide |
|
Back to top |
|
janP Brekeke Master Guru
Joined: 25 Nov 2007 Posts: 336
|
Posted: Thu Jan 09, 2014 12:45 pm Post subject: |
|
|
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 |
|
|