Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

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

[Freeswitch-users] SIP read only and writable variables


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





PostPosted: Mon Nov 24, 2008 4:22 am    Post subject: [Freeswitch-users] SIP read only and writable variables Reply with quote

Hi, how could I know which variables related to SIP are writable variables and
which ones just read variables?
For example, I'm trying to set the From domain and User-Agent in leg B by
doing:

<action application="bridge"
data="{sip_invite_domain=${sip_from_host},sip_user_agent=CUSTOM}sofia/gateway/gw1/xxx@xxxxxx.xxx"/>

Unfortunatelly just the From domain is set while the User-Agent remains the
value in 'user-agent-string' of the Sofia profile.



--
Iñaki Baz Castillo

_______________________________________________
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: Mon Nov 24, 2008 8:15 am    Post subject: [Freeswitch-users] SIP read only and writable variables Reply with quote

Setting the user_agent isn't supported like that. You set it on the profile itself.

/b

On Nov 24, 2008, at 3:21 AM, Iñaki Baz Castillo wrote:
Quote:
Hi, how could I know which variables related to SIP are writable variables and
which ones just read variables?
For example, I'm trying to set the From domain and User-Agent in leg B by
doing:

<action application="bridge"
data="{sip_invite_domain=${sip_from_host},sip_user_agent=CUSTOM}sofia/gateway/gw1/xxx@xxxxxx.xxx ([email]sip_user_agent=CUSTOM}sofia/gateway/gw1/xxx@xxxxxx.xxx[/email])"/>

Unfortunatelly just the From domain is set while the User-Agent remains the
value in 'user-agent-string' of the Sofia profile.

Back to top
ibc at aliax.net
Guest





PostPosted: Mon Nov 24, 2008 8:24 am    Post subject: [Freeswitch-users] SIP read only and writable variables Reply with quote

El Lunes, 24 de Noviembre de 2008, Brian West escribió:
Quote:
Setting the user_agent isn't supported like that. You set it on the
profile itself.

Thanks, that's exactly the reason why I ask for a document in which it's
explained which variables are read only and which ones allow writting.



--
Iñaki Baz Castillo

_______________________________________________
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: Mon Nov 24, 2008 8:30 am    Post subject: [Freeswitch-users] SIP read only and writable variables Reply with quote

You can set them to anything you want but they won't have any effect.

/b

On Nov 24, 2008, at 7:22 AM, Iñaki Baz Castillo wrote:

Quote:

Thanks, that's exactly the reason why I ask for a document in which
it's
explained which variables are read only and which ones allow writting


_______________________________________________
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
ibc at aliax.net
Guest





PostPosted: Mon Nov 24, 2008 8:34 am    Post subject: [Freeswitch-users] SIP read only and writable variables Reply with quote

El Lunes, 24 de Noviembre de 2008, Brian West escribió:
Quote:
You can set them to anything you want but they won't have any effect.

Well, I think I'm asking for something useful. Of course I can set any
variable with useless result but...
I would like to contribute in the Wiki by explaining which variables allow
writting (and have effect on leg B after "export" app), but I hope I won't
need to try all of them one by one.

Regards.



--
Iñaki Baz Castillo

_______________________________________________
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: Mon Nov 24, 2008 8:38 am    Post subject: [Freeswitch-users] SIP read only and writable variables Reply with quote

Its not a matter of writable. They all are. The code just doesn't
look at them if you happen to change them.

/b

On Nov 24, 2008, at 7:32 AM, Iñaki Baz Castillo wrote:

Quote:
Well, I think I'm asking for something useful. Of course I can set any
variable with useless result but...
I would like to contribute in the Wiki by explaining which variables
allow
writting (and have effect on leg B after "export" app), but I hope I
won't
need to try all of them one by one.

Regards.


_______________________________________________
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
mike at jerris.com
Guest





PostPosted: Mon Nov 24, 2008 9:34 am    Post subject: [Freeswitch-users] SIP read only and writable variables Reply with quote

On Nov 24, 2008, at 8:32 AM, Iñaki Baz Castillo wrote:

Quote:
El Lunes, 24 de Noviembre de 2008, Brian West escribió:
Quote:
You can set them to anything you want but they won't have any effect.

Well, I think I'm asking for something useful. Of course I can set any
variable with useless result but...
I would like to contribute in the Wiki by explaining which variables
allow
writting (and have effect on leg B after "export" app), but I hope I
won't
need to try all of them one by one.

The quickest and easiest way to get this list would be to start with a
nearly complete list of vars we set by routing a sip call to the info
app and recording all the sip_* variables listed. To get a list of
vars we look for you can grep mod_sofia for
switch_channel_get_variable. Please note we use #defines for some of
the var names, so if they are all caps without quotes you will need to
find the define. This should get you 95% of the way.

Mike


_______________________________________________
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