Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] Adding an info digit to sip from


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
jforman at wcgltd.com
Guest





PostPosted: Wed Feb 25, 2009 3:02 pm    Post subject: [Freeswitch-users] Adding an info digit to sip from Reply with quote

The problem here is that what you are showing me produces:

From: "1004" <sip:1004@99.185.85.3>;tag=1SparjgraS69m
To: <sip:1235@conference.freeswitch.org;this=rocks>

when what I need to output would look like this:

From: "1004" <sip:1004@99.185.85.3;this=rocks>;tag=1SparjgraS69m
To: <sip:1235@conference.freeswitch.org>

with the "this=rocks" in the FROM field, not the TO field.
I know that you can change parts of the from field by setting
effective_caller_id_name and effective_caller_id_number, but I don't
know how I would add that bit of data to the end of the SIP URI inside
the < >
Is there a variable that I could set or perhaps some method similar to
overwriting the To header shown at http://wiki.freeswitch.org/wiki/Sofia#Modifying_the_To
:_header that can be used to accomplish this?

Thanks
Josh

On Feb 25, 2009, at 2:35 PM, freeswitch-users-request@lists.freeswitch.org
wrote:

Quote:
Quote:
Message: 3
Date: Wed, 25 Feb 2009 09:29:26 -0600
From: Brian West <brian@freeswitch.org>
Subject: Re: [Freeswitch-users] Adding an info digit to sip from
header
To: freeswitch-users@lists.freeswitch.org
Message-ID: <0E1E9F62-64C5-4B70-9C67-C7B5728DB111@freeswitch.org>
Content-Type: text/plain; charset="us-ascii"

You can do something like this "sofia/blah/somenumber@someip:
5060;this=rocks"

/b

On Feb 25, 2009, at 9:22 AM, Josh Forman wrote:

Quote:
I'm trying to edit the sip headers to make the from field look like
this:

From: <sip:SOMENUMBER@SOMEIP:5060;isup-oli=27>;tag=gK0a00d6ea.

I know that to read that data on an incoming sip message it is in $
{sip_from_params}, but how can I add the ;isup-oli=27 part on an
outgoing message?

Thanks

Josh



------------------------------

Message: 3
Date: Wed, 25 Feb 2009 10:53:39 -0600
From: Brian West <brian@freeswitch.org>
Subject: Re: [Freeswitch-users] Adding an info digit to sip from
header
To: freeswitch-users@lists.freeswitch.org
Message-ID: <D58A3A53-8535-4EAF-BFE5-B86F621C1393@freeswitch.org>
Content-Type: text/plain; charset=US-ASCII; format=flowed

It will actually add it to both places

INVITE sip:1235@conference.freeswitch.org;this=rocks SIP/2.0
Via: SIP/2.0/UDP 99.185.85.3;rport;branch=z9hG4bK0Kaa1322U42eK
Max-Forwards: 69
From: "1004" <sip:1004@99.185.85.3>;tag=1SparjgraS69m
To: <sip:1235@conference.freeswitch.org;this=rocks>

I verified it does indeed add it in both places.

/b



On Feb 25, 2009, at 10:34 AM, Josh Forman wrote:

Quote:
Which variable would I need to set via the dialplan to do this
though? Your example looks like it would be the dialstring for the
bridge application but if that works it would probably be added to
the
To header instead of the From, right? I can't be sure since nothing
I've tried has had any affect.
Between looking at the wiki and random experimenting I haven't found
anything that works thus far.



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
sprice at gmail.com
Guest





PostPosted: Wed Feb 25, 2009 3:22 pm    Post subject: [Freeswitch-users] Adding an info digit to sip from Reply with quote

<action application="export" data="sip_invite_domain=some.domain;this=rocks"/>


On Wed, Feb 25, 2009 at 13:51, Josh Forman <jforman@wcgltd.com> wrote:
Quote:
The problem here is that what you are showing me produces:

From: "1004" <sip:1004@99.185.85.3>;tag=1SparjgraS69m
To: <sip:1235@conference.freeswitch.org;this=rocks>

when what I need to output would look like this:

From: "1004" <sip:1004@99.185.85.3;this=rocks>;tag=1SparjgraS69m
To: <sip:1235@conference.freeswitch.org>

with the "this=rocks" in the FROM field, not the TO field.
I know that you can change parts of the from field by setting
effective_caller_id_name and effective_caller_id_number, but I don't
know how I would add that bit of data to the end of the SIP URI inside
the < >
Is there a variable that I could set or perhaps some method similar to
overwriting the To header shown at http://wiki.freeswitch.org/wiki/Sofia#Modifying_the_To
:_header that can be used to accomplish this?

Thanks
Josh

On Feb 25, 2009, at 2:35 PM, freeswitch-users-request@lists.freeswitch.org
 wrote:

Quote:
Quote:
Message: 3
Date: Wed, 25 Feb 2009 09:29:26 -0600
From: Brian West <brian@freeswitch.org>
Subject: Re: [Freeswitch-users] Adding an info digit to sip from
      header
To: freeswitch-users@lists.freeswitch.org
Message-ID: <0E1E9F62-64C5-4B70-9C67-C7B5728DB111@freeswitch.org>
Content-Type: text/plain; charset="us-ascii"

You can do something like this "sofia/blah/somenumber@someip:
5060;this=rocks"

/b

On Feb 25, 2009, at 9:22 AM, Josh Forman wrote:

Quote:
I'm trying to edit the sip headers to make the from field look like
this:

From: <sip:SOMENUMBER@SOMEIP:5060;isup-oli=27>;tag=gK0a00d6ea.

I know that to read that data on an incoming sip message it is in $
{sip_from_params}, but how can I add the ;isup-oli=27 part on an
outgoing message?

Thanks

Josh



------------------------------

Message: 3
Date: Wed, 25 Feb 2009 10:53:39 -0600
From: Brian West <brian@freeswitch.org>
Subject: Re: [Freeswitch-users] Adding an info digit to sip from
       header
To: freeswitch-users@lists.freeswitch.org
Message-ID: <D58A3A53-8535-4EAF-BFE5-B86F621C1393@freeswitch.org>
Content-Type: text/plain; charset=US-ASCII; format=flowed

It will actually add it to both places

INVITE sip:1235@conference.freeswitch.org;this=rocks SIP/2.0
Via: SIP/2.0/UDP 99.185.85.3;rport;branch=z9hG4bK0Kaa1322U42eK
Max-Forwards: 69
From: "1004" <sip:1004@99.185.85.3>;tag=1SparjgraS69m
To: <sip:1235@conference.freeswitch.org;this=rocks>

I verified it does indeed add it in both places.

/b



On Feb 25, 2009, at 10:34 AM, Josh Forman wrote:

Quote:
Which variable would I need to set via the dialplan to do this
though?  Your example looks like it would be the dialstring for the
bridge application but if that works it would probably be added to
the
To header instead of the From, right?  I can't be sure since nothing
I've tried has had any affect.
Between looking at the wiki and random experimenting I haven't found
anything that works thus far.



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Shannon

_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Feb 25, 2009 3:37 pm    Post subject: [Freeswitch-users] Adding an info digit to sip from Reply with quote

SP,
That won't go into the from. You can't add params to the from unless
you have svn rev 12287 or higher. I added the ability to set
"sip_invite_params, sip_invite_to_params, sip_invite_from_params" to
sofia_glue.c, I added two lines and changed two lines to make this
possible.

So to be clear:

sip_invite_params will set params on the request URI,
sip_invite_to_params will set params on the to URI,
sip_invite_from_params will set params on the from URI.

(someone wiki this)

http://fisheye.freeswitch.org/browse/FreeSWITCH/src/mod/endpoints/mod_sofia/sofia_glue.c?r1=12235&r2=12287

<extension name="test">
<condition field="destination_number" expression="^869$">
<action application="export"
data="sip_invite_to_params=this=kewl;that=iskewl"/>
<action application="bridge" data="sofia/internal/1235@conference.freeswitch.org
"/>
</condition>
</extension>

You brought up a good point that it wasn't possible but when I looked
at the code it was fairly simple to add support for it so I did.

Please check out that Donate button on the home page! Wink

/b

PS: Its MikeJ's birthday today!



On Feb 25, 2009, at 2:13 PM, SP wrote:

Quote:
<action application="export"
data="sip_invite_domain=some.domain;this=rocks"/>



_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
brian at freeswitch.org
Guest





PostPosted: Wed Feb 25, 2009 3:48 pm    Post subject: [Freeswitch-users] Adding an info digit to sip from Reply with quote

I also realized I broke backwards compatibility for anyone using
sip_invite_params so I corrected that in rev 12288

/b

On Feb 25, 2009, at 2:13 PM, SP wrote:

Quote:
<action application="export"
data="sip_invite_domain=some.domain;this=rocks"/>


_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services