Pass the Sippacket object on to the session plugin

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
troelsmunch
Posts: 18
Joined: Wed Jan 31, 2007 1:22 am

Pass the Sippacket object on to the session plugin

Post by troelsmunch »

1. Brekeke Product Name and version: 2.0.7

2. Java version: Latest

3. OS type and the version: Win2K3 R2

6. Your problem:

When making a dialplan plugin it is possible to retrieve SIP headers from the sippacket thru the sippacket object

Code: Select all

static public String findtonumber(String[] arg, com.brekeke.net.sip.SIPpacket sippacket, Properties pr) throws Exception
{
 //java code here
}
Is there any way that I can have that sippacket object in my session plugin?

I mean when I call my session plugin in the dialplan like this

$session=com.session.plugin.mySessionPlugin

is it then possible, either by passing the sippacket object on in the dialplan or do some "magic" inside the code in the sessionStart function, to be able to have the sippacket in the sessionStart function?

Thanks
lakeview
Posts: 319
Joined: Thu Nov 15, 2007 11:54 am
Location: Florida

Post by lakeview »

Hi

Add the following in your source code..

Code: Select all

  public void procINVITE( ClientStat cs, SIPpacket sippacket, boolean bRequest ) 
{
   //java code here 
  }
Please read the Developer's Guide for more details.
http://www.brekeke-sip.com/download/bss ... gin_en.txt
troelsmunch
Posts: 18
Joined: Wed Jan 31, 2007 1:22 am

Post by troelsmunch »

lakeview wrote:Hi

Add the following in your source code..

Code: Select all

  public void procINVITE( ClientStat cs, SIPpacket sippacket, boolean bRequest ) 
{
   //java code here 
  }
Please read the Developer's Guide for more details.
http://www.brekeke-sip.com/download/bss ... gin_en.txt
Thanks.
But I want the SIPpacket to be available in the SessionStart method...
lakeview
Posts: 319
Joined: Thu Nov 15, 2007 11:54 am
Location: Florida

Post by lakeview »

procINVITE is called just after SessionStart is called.
troelsmunch
Posts: 18
Joined: Wed Jan 31, 2007 1:22 am

Post by troelsmunch »

lakeview wrote:procINVITE is called just after SessionStart is called.
Thanks.

But I really need to access the SIPpacket object from the SessionStart method...

Do you know if that is possible?

Regards,
Troels
lakeview
Posts: 319
Joined: Thu Nov 15, 2007 11:54 am
Location: Florida

Post by lakeview »

Umm.

Ask Brekeke.. They have the developer's support program.
Post Reply