Author |
Message |
troelsmunch Brekeke Member
Joined: 31 Jan 2007 Posts: 18
|
Posted: Wed Apr 23, 2008 5:04 am Post subject: Pass the Sippacket object on to the session plugin |
|
|
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 |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
|
Back to top |
|
troelsmunch Brekeke Member
Joined: 31 Jan 2007 Posts: 18
|
Posted: Thu Apr 24, 2008 12:46 pm Post subject: |
|
|
Thanks.
But I want the SIPpacket to be available in the SessionStart method... |
|
Back to top |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Thu Apr 24, 2008 2:21 pm Post subject: |
|
|
procINVITE is called just after SessionStart is called. |
|
Back to top |
|
troelsmunch Brekeke Member
Joined: 31 Jan 2007 Posts: 18
|
Posted: Fri Apr 25, 2008 5:42 am Post subject: |
|
|
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 |
|
lakeview Brekeke Master Guru
Joined: 15 Nov 2007 Posts: 319
Location: Florida
|
Posted: Fri Apr 25, 2008 11:55 am Post subject: |
|
|
Umm.
Ask Brekeke.. They have the developer's support program. |
|
Back to top |
|
|