[solved] sip header

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

[solved] sip header

Postby StrateVici » Fri Feb 15, 2013 10:58 am

hi guys,
i need to show sip header in the notes field...
how to do this?

thanks.
StrateVici
 
Posts: 7
Joined: Thu Dec 20, 2012 11:10 am

Re: sip header

Postby williamconley » Fri Feb 15, 2013 1:17 pm

There is no known method. Creating one would be a bit tough. Since there are literally hundreds of sip packets and multiple call paths handled by various scripts ... it seems that a more reasonable approach may be to just ask what you could possible want to put the SIP header in the notes field for? LOL

Understand: If you put all the SIP headers in for all the packets, there is no way the comments field could hold the data (not enough room unless you convert it to a TEXT field instead of a VARCHAR). If you only want One Sample SIP Header ... there is still the matter of causing this to happen in the appropriate script. Inbound? Outbound? InGroup? Survey? All the above? Only a certain type of call on a certain DID? Help me out here. :)

! And then there's our newbie suggestions:
when you post, please post your entire configuration including (but not limited to) your installation method and vicidial version with build.

this IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)

You should also post: Asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box. If your installation method is "from scratch" you must post your operating system and should also post the .iso version from which you installed your original operating system. If your installation is "Hosted" list the site name of the host.

If this is a "Cloud" or "Virtual" server, please note the technology involved along with the version of that techology (ie: VMware Server Version 2.0.2). If it is not, merely stating the Motherboard model # and CPU would be helpful.

Similar to This:

Vicibox X.X from .iso | Vicidial X.X.X-XXX Build XXXXXX-XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel DG35EC | Core2Quad Q6600
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: sip header

Postby StrateVici » Thu Feb 21, 2013 3:54 am

thanks william, I tried to show the SIP header like this:

AGI(agi-VDAD_ALL_inbound.agi,CID-----SO-----carigebackoff-----${SIP_HEADER(X-AGENT-GROUP)}--------------------998-----1-----CARIGEIB-----${SIP_HEADER(X-AGENT-GROUP)}-----${SIP_HEADER(X-AGENT-GROUP)}--------------------)

Only when you visualize, visualize only a piece of what I need ...
The SIP header is displayed in the Vendor ID field ...

Can change the length of this field?
StrateVici
 
Posts: 7
Joined: Thu Dec 20, 2012 11:10 am

Re: sip header

Postby StrateVici » Thu Feb 21, 2013 9:41 am

Solved : i change the vendor_lead_code from varchar[20] to varchar[100] in the vicidial_list table.

thanks to all.
StrateVici
 
Posts: 7
Joined: Thu Dec 20, 2012 11:10 am

Re: sip header

Postby williamconley » Thu Feb 21, 2013 1:24 pm

changing the length of a field (so far) has never had a detrimental effect on Vicidial. So you look to have done a good job solving your issue.

i am still a little vague on why you wanted the sip header, but in this case I'm leaning towards ... you were passing information from one server to another server via a special sip header? :) Very good if so.

We usually use a database pass, but that requires the data to be put in place in one location and then pulled in the other. it does have the added advantage of allow a large quantity of data, of course. and the ability for the receiving system to send data back at the end (like the dispo of the call!).

I've never seen someone use sip headers to pass data before. I do like the concept. :)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: [solved] sip header

Postby StrateVici » Fri Feb 22, 2013 3:50 am

thanks william,
Now can take a sip header of a call passed through a SIP trunk between vicidial and a cisco system.

very compliments for this distro and all the community.
StrateVici
 
Posts: 7
Joined: Thu Dec 20, 2012 11:10 am


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 122 guests