Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Pass the Sippacket object on to the session plugin
Author Message
troelsmunch
Brekeke Member


Joined: 31 Jan 2007
Posts: 18

PostPosted: Wed Apr 23, 2008 5:04 am    Post subject: Pass the Sippacket object on to the session plugin Reply with quote

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


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Thu Apr 24, 2008 12:29 pm    Post subject: Reply with quote

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/bss_accountplugin_en.txt
Back to top
View user's profile
troelsmunch
Brekeke Member


Joined: 31 Jan 2007
Posts: 18

PostPosted: Thu Apr 24, 2008 12:46 pm    Post subject: Reply with quote

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/bss_accountplugin_en.txt


Thanks.
But I want the SIPpacket to be available in the SessionStart method...
Back to top
View user's profile
lakeview
Brekeke Master Guru


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Thu Apr 24, 2008 2:21 pm    Post subject: Reply with quote

procINVITE is called just after SessionStart is called.
Back to top
View user's profile
troelsmunch
Brekeke Member


Joined: 31 Jan 2007
Posts: 18

PostPosted: Fri Apr 25, 2008 5:42 am    Post subject: Reply with quote

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


Joined: 15 Nov 2007
Posts: 319
Location: Florida

PostPosted: Fri Apr 25, 2008 11:55 am    Post subject: Reply with quote

Umm.

Ask Brekeke.. They have the developer's support program.
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