Forums Read-only archive

Pass the Sippacket object on to the session plugin

6 posts · Brekeke SIP Server Forum

troelsmunch Original post
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:

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
Hi

Add the following in your source code..

Code:

  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
lakeview wrote:Hi

Add the following in your source code..

Code:

  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
procINVITE is called just after SessionStart is called.
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
Umm.

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