Author |
|
mfitzgerald Vetran
Joined: June 14 2006 Location: United States Posts: 142
|
Posted: July 14 2006 at 12:02pm | IP Logged
|
|
|
I have been looking for a simple way to grab the SIP Header Information. Perhaps I missed something but it appears the only way to grab the SIP information (containing a custom SIP Header field) is by adding the case in the TelephonyEngineCallback() for case SipIncomingCallInitialized: by accessing the SIP_MESSAGE_IMMEDIATE_DATA structure. Though this way gives us access to the entire SIP Message via **ppSipMsg it makes it rather cumbersome to grab specific data fields. I was wondering if I had missed something such as a function call to GetSipHeaderValue() by specifying a particular Header field such as:
GetSipHeaderValue(“From”);
GetSipHeaderValue(“CSeq”);
GetSipHeaderValue(“x-MyCustomHeader”);
Or perhaps there was another method I did not notice.
|
Back to Top |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: July 14 2006 at 1:47pm | IP Logged
|
|
|
Hi Fitz,
The primary purpose of the SipIncomingCallInitialized event is to give the application the chance to terminate the incoming call before the VOIP Media Engine start to process the incoming call request. You can use it to access the received SIP INVITE message if you want to.
If you simply want to inspect the received SIP INVITE message for custom headers, you can do it exactly like you described. But here’s the rub…
We know what you want – a simple way to read a SIP header by name and get the header text string.
Unfortunately we have not yet added SIP message parsing and SIP message manipulation routines to the general VOIP Media Engine API. We probably will be adding it in a future release but that date is currently unknown. We have added your request to engineering’s task list.
For now, the media engine gives an application access to all received and ready-to-be-transmitted raw SIP messages. Unfortunately, the app will have to parse the SIP messages itself if it wants to inspect received SIP messages or modify SIP messages that are ready to be transmitted.
You might also want to look at the SipModifySipMessage event that can be processed in the main media engine callback proc.
If you handle the SipModifySipMessage event, you will have access to all received and ready-to-be transmited SIP messages.
Your idea for adding the API procs you specified is right on. We just have to do the work to add this capability to the API.
One thing you can do to help us - post any and all product suggestions to the new product “wish list” forum area:
Wish List - Features you need from our software
Repost as needed.
Support
|
Back to Top |
|
|
mfitzgerald Vetran
Joined: June 14 2006 Location: United States Posts: 142
|
Posted: July 14 2006 at 2:25pm | IP Logged
|
|
|
Thank you for your assistance. Sorry about continuing this question on the old thread.
Anyway I was wondering about accessing the SIP Message via the suggestion made above
Quote:
If you handle the SipModifySipMessage event, you will have access to all received and ready-to-be transmited SIP messages.
|
|
|
The SipModifySipMessage section caused the Invite Authentication line to become corrupt and was remarked out as suggested in the old thread “Authenticating with Asterisk PBX”
I understand this is supposed to be fixed for version 5.12.3.3. Now I am wondering how to obtain this updated version.
Thank you.
|
Back to Top |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: July 14 2006 at 2:29pm | IP Logged
|
|
|
Fitz,
We just received your new trial request. We will process it in a few minutes...
Support
|
Back to Top |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: July 14 2006 at 2:52pm | IP Logged
|
|
|
Fitz,
Do you have an alternate email address. The one we have keeps bouncing back the trial info we are trying to send to you.
Support
|
Back to Top |
|
|
support Administrator
Joined: January 26 2005 Location: United States Posts: 1666
|
Posted: July 14 2006 at 3:00pm | IP Logged
|
|
|
Let us know when your email server is back up. We are getting the following SMTP error:
SMTP; 550 Host unknown
We also get no response when we ping your domain name.
|
Back to Top |
|
|
mfitzgerald Vetran
Joined: June 14 2006 Location: United States Posts: 142
|
Posted: July 14 2006 at 3:35pm | IP Logged
|
|
|
Sorry about that. I have just re-requested the trial with the correct email address. The email address registered to this forum also works.
|
Back to Top |
|
|