Discussion:
[Freeswitch-users] need more variables which xml_curl module sends
Yuriy Nasida
2012-02-17 16:21:44 UTC
Permalink
Hello FS users,
I search some way for recieving more variables which my php script recieves in array - $_REQUEST from xml_curl module (it is intralanman's scripts) in case of recieving sip message - REGISTER from some sip device.
I see list of variables:http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization
But, I need more. For example I need to know source sip port of endpoint. Also I have to know full SIP contact header from REGISTER request.
Please advise.Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120217/2b1adbee/attachment.html
Zohair Raza
2012-02-19 07:17:48 UTC
Permalink
Hi,

They are already available in xml_curl POST, here is the complete post from
freeswitch

Also, if you need any custom variable, you can export using export
application and get it in xml_cdr

[hostname=zuhair.host&section=dialplan&tag_name=&key_name=&
key_value=&Event-Name=REQUEST_PARAMS&Core-UUID=24d6453e-
6280-4da3-92cc-176906e77c11&FreeSWITCH-Hostname=zuhair.host&
FreeSWITCH-IPv4=74.55.2.196&FreeSWITCH-IPv6=%3A%3A1&Event-
Date-Local=2010-07-27%2007%3A02%3A45&Event-Date-GMT=Tue,%
2027%20Jul%202010%2012%3A02%3A45%20GMT&Event-Date-
Timestamp=1280232165300887&Event-Calling-File=mod_
dialplan_xml.c&Event-Calling-Function=dialplan_xml_locate&
Event-Calling-Line-Number=302&Channel-State=CS_ROUTING&
Channel-Call-State=RINGING&Channel-State-Number=2&
Channel-Name=sofia/external/5555%4074.55.2.196&Unique-
ID=81511956-8239-4ddb-86ac-637fdd1cb784&Call-Direction=
inbound&Presence-Call-Direction=inbound&Answer-State=ringing&Channel-Read-
Codec-Name=PCMU&Channel-Read-Codec-Rate=8000&Channel-Write-
Codec-Name=PCMU&Channel-Write-Codec-Rate=8000&Caller-
Username=5555&Caller-Dialplan=XML&Caller-Caller-ID-Name=
5555&Caller-Caller-ID-Number=
5555&Caller-Network-Addr=67.156.22.129&Caller-ANI=5555&
Caller-Destination-Number=009922&Caller-Unique-ID=81511956-8239-4ddb-86ac-
637fdd1cb784&Caller-Source=mod_sofia&Caller-Context=
public&Caller-Channel-Name=
sofia/external/5555%4074.55.2.196&Caller-Profile-Index=
1&Caller-Profile-Created-Time=1280232165298602&Caller-Channel-Created-Time=
1280232165298602&Caller-Channel-Answered-Time=0&
Caller-Channel-Progress-Time=0&Caller-Channel-Progress-
Media-Time=0&Caller-Channel-Hangup-Time=0&Caller-Channel-
Transfer-Time=0&Caller-Screen-Bit=false&Caller-Privacy-Hide-
Name=false&Caller-Privacy-Hide-Number=false&variable_
direction=inbound&variable_uuid=81511956-8239-4ddb-86ac-
637fdd1cb784&variable_sip_
local_network_addr=74.55.2.196&variable_sip_network_ip=
67.156.22.129&variable_sip_network_port=8891&variable_
sip_received_ip=67.156.22.129&variable_sip_received_port=
8891&variable_sip_via_protocol=udp&variable_sip_from_user=5555&variable_sip_
from_uri=5555%4074.55.2.196&
variable_sip_from_host=74.55.2.196&variable_sip_from_
user_stripped=5555&variable_sip_from_tag=as1c181535&
variable_sofia_profile_name=external&variable_sip_Remote-
Party-ID=%225555%22%20%3Csip%3A5555%4074.55.2.196%3E%
3Bprivacy%3Doff%3Bscreen%3Dno&variable_sip_cid_type=rpid&
variable_sip_full_via=SIP/2.0/UDP%2067.156.22.129%3A8891%
3Bbranch%3Dz9hG4bK3577a299%3Brport%3D8891&variable_sip_
from_display=5555&variable_sip_full_from=%225555%22%20%
3Csip%3A5555%4074.55.2.196%3E%3Btag%3Das1c181535&
variable_sip_full_to=%3Csip%3A009922%4074.55.2.196%
3A5080%3E&variable_sip_req_user=009922&variable_sip_req_
port=5080&variable_sip_req_uri=009922%4074.55.2.196%
3A5080&variable_sip_req_host=74.55.2.196&variable_sip_to_
user=009922&variable_sip_to_port=5080&variable_sip_to_uri=
009922%4074.55.2.196%3A5080&
variable_sip_to_host=74.55.2.196&variable_sip_contact_
user=5555&variable_sip_contact_port=8891&variable_
sip_contact_uri=5555%4067.156.22.129%3A8891&variable_sip_
contact_host=67.156.22.129&variable_channel_name=sofia/
external/5555%4074.55.2.196&variable_sip_call_id=
2d094fc97c51425911a7bc38726184f2%4074.55.2.196&variable_
sip_user_agent=Asterisk%20PBX&
variable_sip_via_host=67.156.22.129&variable_sip_via_port=
8891&variable_sip_via_rport=8891&variable_max_forwards=70&
variable_switch_r_sdp=v%3D0%0D%0Ao%3Droot%2019280%2019280%
20IN%20IP4%2067.156.22.129%0D%0As%3Dsession%0D%0Ac%3DIN%
20IP4%2067.156.22.129%0D%0At%3D0%200%0D%0Am%3Daudio%
2018762%20RTP/AVP%200%20101%0D%0Aa%3Drtpmap%3A0%20PCMU/
8000%0D%0Aa%3Drtpmap%3A101%20telephone-event/8000%0D%0Aa%
3Dfmtp%3A101%200-16%0D%0Aa%3DsilenceSupp%3Aoff%20-%20-%
20-%20-%0D%0Aa%3Dptime%3A20%0D%0A&variable_remote_media_
ip=67.156.22.129&variable_remote_media_port=18762&
variable_sip_use_codec_name=PCMU&variable_sip_use_codec_
rate=8000&variable_sip_use_codec_ptime=20&variable_read_
codec=PCMU&variable_read_rate=8000&variable_write_codec=
PCMU&variable_write_rate=8000&variable_endpoint_disposition=
RECEIVED&Hunt-Username=5555&Hunt-Dialplan=XML&Hunt-Caller-
ID-Name=5555&Hunt-Caller-ID-Number=5555&Hunt-Network-Addr=
67.156.22.129&Hunt-ANI=5555&Hunt-Destination-Number=009922&Hunt-Unique-ID=
81511956-8239-4ddb-86ac-637fdd1cb784&Hunt-Source=mod_
sofia&Hunt-Context=public&Hunt-Channel-Name=sofia/
external/5555%4074.55.2.196&Hunt-Profile-Index=1&Hunt-Profile-Created-Time=
1280232165298602&Hunt-Channel-Created-Time=1280232165298602&
Hunt-Channel-Answered-Time=0&Hunt-Channel-Progress-Time=0&
Hunt-Channel-Progress-Media-Time=0&Hunt-Channel-Hangup-
Time=0&Hunt-Channel-Transfer-Time=0&Hunt-Screen-Bit=false&
Hunt-Privacy-Hide-Name=false&Hunt-Privacy-Hide-Number=false]


Regards,
Zohair Raza

2012/2/17 Yuriy Nasida <nasida at live.ru>

> Hello FS users,
>
> I search some way for recieving more variables which my php script
> recieves in array - $_REQUEST from xml_curl module (it is intralanman's
> scripts) in case of recieving sip message - REGISTER from some sip device.
>
> I see list of variables:
> http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization
>
> But, I need more. For example I need to know source sip port of endpoint.
> Also I have to know full SIP contact header from REGISTER request.
>
> Please advise.
> Thanks.
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
> http://www.cudatel.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120219/b25ee6ba/attachment-0001.html
Yuriy Nasida
2012-02-19 17:06:00 UTC
Permalink
Hi Zohair Raza,
Thank you for your reply. Yes you are correct for case - section=dialplan. But unfortunately I have not these variables with case - section=directory. In POST request, I see these variables only: http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization
Also I have not possibility to use the 'export application' because it is for period section=dialplan only (but dialplan is not used in this moment yet).
I need more variables for implementation of possibility to limit max amount of simultaneous registrations. So I plan to use http://wiki.freeswitch.org/wiki/API_sofia_count_reg from php script when xml_curl module sends POST request whith section=directory. But there is one problem.
When sip device tries to do re-register, FS considers this request as a new registration. So FS will forbid this 'new registration' if limit is exceeded and the sip device will lose the registration. Mod curl does not give me variables for distinguishing the re-register from register (I would like to use variale variable_sip_call_id because re-register requests will have same sip_call_id)At present I search some method for recieve variables I need without modifying of source of curl module.

Thanks.

From: engineerzuhairraza at gmail.com
Date: Sun, 19 Feb 2012 11:17:48 +0400
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] need more variables which xml_curl module sends

Hi,
They are already available in xml_curl POST, here is the complete post from freeswitch
Also, if you need any custom variable, you can export using export application and get it in xml_cdr


[hostname=zuhair.host&section=dialplan&tag_name=&key_name=&


Regards,
Zohair Raza
2012/2/17 Yuriy Nasida <nasida at live.ru>






Hello FS users,
I search some way for recieving more variables which my php script recieves in array - $_REQUEST from xml_curl module (it is intralanman's scripts) in case of recieving sip message - REGISTER from some sip device.


I see list of variables:http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization


But, I need more. For example I need to know source sip port of endpoint. Also I have to know full SIP contact header from REGISTER request.
Please advise.Thanks.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120219/321beb27/attachment.html
Yuriy Nasida
2012-02-21 18:52:51 UTC
Permalink
Well. I have tried to use variable sip_auth_nonce for my goals but it is not so good idea I think.
Guys, can you add variable Call-ID to authorization request - http://wiki.freeswitch.org/wiki/Mod_xml_curl#AuthorizationI think it will be very usefull.
Or probably you know any other method for limitation of amount of simultaneous registrations ?
Thanks.

From: nasida at live.ru
To: freeswitch-users at lists.freeswitch.org
Date: Sun, 19 Feb 2012 21:06:00 +0400
Subject: Re: [Freeswitch-users] need more variables which xml_curl module sends







Hi Zohair Raza,
Thank you for your reply. Yes you are correct for case - section=dialplan. But unfortunately I have not these variables with case - section=directory. In POST request, I see these variables only: http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization
Also I have not possibility to use the 'export application' because it is for period section=dialplan only (but dialplan is not used in this moment yet).
I need more variables for implementation of possibility to limit max amount of simultaneous registrations. So I plan to use http://wiki.freeswitch.org/wiki/API_sofia_count_reg from php script when xml_curl module sends POST request whith section=directory. But there is one problem.
When sip device tries to do re-register, FS considers this request as a new registration. So FS will forbid this 'new registration' if limit is exceeded and the sip device will lose the registration. Mod curl does not give me variables for distinguishing the re-register from register (I would like to use variale variable_sip_call_id because re-register requests will have same sip_call_id)At present I search some method for recieve variables I need without modifying of source of curl module.

Thanks.

From: engineerzuhairraza at gmail.com
Date: Sun, 19 Feb 2012 11:17:48 +0400
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] need more variables which xml_curl module sends

Hi,
They are already available in xml_curl POST, here is the complete post from freeswitch
Also, if you need any custom variable, you can export using export application and get it in xml_cdr


[hostname=zuhair.host&section=dialplan&tag_name=&key_name=&


Regards,
Zohair Raza
2012/2/17 Yuriy Nasida <nasida at live.ru>






Hello FS users,
I search some way for recieving more variables which my php script recieves in array - $_REQUEST from xml_curl module (it is intralanman's scripts) in case of recieving sip message - REGISTER from some sip device.


I see list of variables:http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization


But, I need more. For example I need to know source sip port of endpoint. Also I have to know full SIP contact header from REGISTER request.
Please advise.Thanks.


_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120221/bd914b71/attachment.html
Zohair Raza
2012-02-22 14:54:48 UTC
Permalink
Hi,

I haven't tried this and have no idea.

Wait for others to respond


Regards,
Zohair Raza

2012/2/19 Yuriy Nasida <nasida at live.ru>

> Hi Zohair Raza,
>
> Thank you for your reply. Yes you are correct for case - section=dialplan.
> But unfortunately I have not these variables with case - section=directory.
> In POST request, I see these variables only:
> http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization
>
> Also I have not possibility to use the 'export application' because it is
> for period section=dialplan only (but dialplan is not used in this moment
> yet).
>
> I need more variables for implementation of possibility to limit max
> amount of simultaneous registrations. So I plan to use
> http://wiki.freeswitch.org/wiki/API_sofia_count_reg from php script when
> xml_curl module sends POST request whith section=directory. But there is
> one problem.
>
> When sip device tries to do re-register, FS considers this request as a
> new registration. So FS will forbid this 'new registration' if limit is
> exceeded and the sip device will lose the registration. Mod curl does not
> give me variables for distinguishing the re-register from register (I
> would like to use variale variable_sip_call_id because re-register requests
> will have same sip_call_id)
> At present I search some method for recieve variables I need without
> modifying of source of curl module.
>
>
> Thanks.
>
>
> ------------------------------
> From: engineerzuhairraza at gmail.com
> Date: Sun, 19 Feb 2012 11:17:48 +0400
> To: freeswitch-users at lists.freeswitch.org
> Subject: Re: [Freeswitch-users] need more variables which xml_curl module
> sends
>
> Hi,
>
> They are already available in xml_curl POST, here is the complete post
> from freeswitch
>
> Also, if you need any custom variable, you can export using export
> application and get it in xml_cdr
>
> [hostname=zuhair.host&section=dialplan&tag_name=&key_name=&
>
>
> Regards,
> Zohair Raza
>
> 2012/2/17 Yuriy Nasida <nasida at live.ru>
>
> Hello FS users,
>
> I search some way for recieving more variables which my php script
> recieves in array - $_REQUEST from xml_curl module (it is intralanman's
> scripts) in case of recieving sip message - REGISTER from some sip device.
>
> I see list of variables:
> http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization
>
> But, I need more. For example I need to know source sip port of endpoint.
> Also I have to know full SIP contact header from REGISTER request.
>
> Please advise.
> Thanks.
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
> http://www.cudatel.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120222/9f9b7838/attachment.html
Yuriy Nasida
2012-02-22 15:37:23 UTC
Permalink
I see. Thanks anyway.
I continue my research and still wait any advise.
I have found some similar function on this page:http://jira.freeswitch.org/browse/FS-2720
Rupa Schomaker said that he created two additional parameters: user-agent-filter and max-registrations. It is not exactly that I need because I don't need user-agent-filter but I have tried it.I have checked sofia_reg.c and have seen code Rupa said, but... it looks like not work.
if anybody tried to use parameters: max-registrations-per-extension and max-registrations described on this page: http://jira.freeswitch.org/browse/FS-2720 ?

From: engineerzuhairraza at gmail.com
Date: Wed, 22 Feb 2012 18:54:48 +0400
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] need more variables which xml_curl module sends

Hi,
I haven't tried this and have no idea.
Wait for others to respond
Regards,
Zohair Raza


2012/2/19 Yuriy Nasida <nasida at live.ru>






Hi Zohair Raza,
Thank you for your reply. Yes you are correct for case - section=dialplan. But unfortunately I have not these variables with case - section=directory. In POST request, I see these variables only: http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization


Also I have not possibility to use the 'export application' because it is for period section=dialplan only (but dialplan is not used in this moment yet).
I need more variables for implementation of possibility to limit max amount of simultaneous registrations. So I plan to use http://wiki.freeswitch.org/wiki/API_sofia_count_reg from php script when xml_curl module sends POST request whith section=directory. But there is one problem.


When sip device tries to do re-register, FS considers this request as a new registration. So FS will forbid this 'new registration' if limit is exceeded and the sip device will lose the registration. Mod curl does not give me variables for distinguishing the re-register from register (I would like to use variale variable_sip_call_id because re-register requests will have same sip_call_id)

At present I search some method for recieve variables I need without modifying of source of curl module.

Thanks.

From: engineerzuhairraza at gmail.com


Date: Sun, 19 Feb 2012 11:17:48 +0400
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] need more variables which xml_curl module sends



Hi,
They are already available in xml_curl POST, here is the complete post from freeswitch
Also, if you need any custom variable, you can export using export application and get it in xml_cdr




[hostname=zuhair.host&section=dialplan&tag_name=&key_name=&




Regards,
Zohair Raza
2012/2/17 Yuriy Nasida <nasida at live.ru>








Hello FS users,
I search some way for recieving more variables which my php script recieves in array - $_REQUEST from xml_curl module (it is intralanman's scripts) in case of recieving sip message - REGISTER from some sip device.




I see list of variables:http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization




But, I need more. For example I need to know source sip port of endpoint. Also I have to know full SIP contact header from REGISTER request.
Please advise.Thanks.




_________________________________________________________________________

Professional FreeSWITCH Consulting Services:

consulting at freeswitch.org

http://www.freeswitchsolutions.com



FreeSWITCH-powered IP PBX: The CudaTel Communication Server

http://www.cudatel.com



Official FreeSWITCH Sites

http://www.freeswitch.org

http://wiki.freeswitch.org

http://www.cluecon.com



FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org

http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

http://www.freeswitch.org





_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120222/8ad34c6f/attachment-0001.html
Yuriy Nasida
2012-02-23 20:12:04 UTC
Permalink
Solved.max-registrations-per-extension works fine after my second checking. Also somebody just has added this "max-registrations-per-extension" to wiki page. I just was going to make it.Anyway It was interesting to speak with itself...Thanks me for the help :)
From: nasida at live.ru
To: freeswitch-users at lists.freeswitch.org
Date: Wed, 22 Feb 2012 19:37:23 +0400
Subject: Re: [Freeswitch-users] need more variables which xml_curl module sends







I see. Thanks anyway.
I continue my research and still wait any advise.
I have found some similar function on this page:http://jira.freeswitch.org/browse/FS-2720
Rupa Schomaker said that he created two additional parameters: user-agent-filter and max-registrations. It is not exactly that I need because I don't need user-agent-filter but I have tried it.I have checked sofia_reg.c and have seen code Rupa said, but... it looks like not work.
if anybody tried to use parameters: and max-registrations described on this page: http://jira.freeswitch.org/browse/FS-2720 ?

From: engineerzuhairraza at gmail.com
Date: Wed, 22 Feb 2012 18:54:48 +0400
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] need more variables which xml_curl module sends

Hi,
I haven't tried this and have no idea.
Wait for others to respond
Regards,
Zohair Raza


2012/2/19 Yuriy Nasida <nasida at live.ru>






Hi Zohair Raza,
Thank you for your reply. Yes you are correct for case - section=dialplan. But unfortunately I have not these variables with case - section=directory. In POST request, I see these variables only: http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization


Also I have not possibility to use the 'export application' because it is for period section=dialplan only (but dialplan is not used in this moment yet).
I need more variables for implementation of possibility to limit max amount of simultaneous registrations. So I plan to use http://wiki.freeswitch.org/wiki/API_sofia_count_reg from php script when xml_curl module sends POST request whith section=directory. But there is one problem.


When sip device tries to do re-register, FS considers this request as a new registration. So FS will forbid this 'new registration' if limit is exceeded and the sip device will lose the registration. Mod curl does not give me variables for distinguishing the re-register from register (I would like to use variale variable_sip_call_id because re-register requests will have same sip_call_id)

At present I search some method for recieve variables I need without modifying of source of curl module.

Thanks.

From: engineerzuhairraza at gmail.com


Date: Sun, 19 Feb 2012 11:17:48 +0400
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] need more variables which xml_curl module sends



Hi,
They are already available in xml_curl POST, here is the complete post from freeswitch
Also, if you need any custom variable, you can export using export application and get it in xml_cdr




[hostname=zuhair.host&section=dialplan&tag_name=&key_name=&






Regards,
Zohair Raza
2012/2/17 Yuriy Nasida <nasida at live.ru>








Hello FS users,
I search some way for recieving more variables which my php script recieves in array - $_REQUEST from xml_curl module (it is intralanman's scripts) in case of recieving sip message - REGISTER from some sip device.




I see list of variables:http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization




But, I need more. For example I need to know source sip port of endpoint. Also I have to know full SIP contact header from REGISTER request.
Please advise.Thanks.




_________________________________________________________________________

Professional FreeSWITCH Consulting Services:

consulting at freeswitch.org

http://www.freeswitchsolutions.com



FreeSWITCH-powered IP PBX: The CudaTel Communication Server

http://www.cudatel.com



Official FreeSWITCH Sites

http://www.freeswitch.org

http://wiki.freeswitch.org

http://www.cluecon.com



FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org

http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

http://www.freeswitch.org





_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120224/e09e05df/attachment.html
Avi Marcus
2012-02-23 20:44:31 UTC
Permalink
I added a basic entry to the wiki because you mentioned it and I hadn't
heard of it.
Please edit it to show as much information as possible about how to use it.

-Avi


2012/2/23 Yuriy Nasida <nasida at live.ru>

> Solved.
> max-registrations-per-extension works fine after my second checking. Also
> somebody just has added this "max-registrations-per-extension" to wiki
> page. I just was going to make it.
> Anyway It was interesting to speak with itself...
> Thanks me for the help :)
>
> ------------------------------
> From: nasida at live.ru
> To: freeswitch-users at lists.freeswitch.org
> Date: Wed, 22 Feb 2012 19:37:23 +0400
>
> Subject: Re: [Freeswitch-users] need more variables which xml_curl module
> sends
>
> I see. Thanks anyway.
>
> I continue my research and still wait any advise.
>
> I have found some similar function on this page:
> http://jira.freeswitch.org/browse/FS-2720
>
> Rupa Schomaker said that he created two additional parameters:
> user-agent-filter and max-registrations.
> It is not exactly that I need because I don't need user-agent-filter but I
> have tried it.
> I have checked sofia_reg.c and have seen code Rupa said, but... it looks
> like not work.
>
> if anybody tried to use parameters: and max-registrations described on
> this page: http://jira.freeswitch.org/browse/FS-2720 ?
>
>
> ------------------------------
> From: engineerzuhairraza at gmail.com
> Date: Wed, 22 Feb 2012 18:54:48 +0400
> To: freeswitch-users at lists.freeswitch.org
> Subject: Re: [Freeswitch-users] need more variables which xml_curl module
> sends
>
> Hi,
>
> I haven't tried this and have no idea.
>
> Wait for others to respond
>
>
> Regards,
> Zohair Raza
>
> 2012/2/19 Yuriy Nasida <nasida at live.ru>
>
> Hi Zohair Raza,
>
> Thank you for your reply. Yes you are correct for case - section=dialplan.
> But unfortunately I have not these variables with case - section=directory.
> In POST request, I see these variables only:
> http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization
>
> Also I have not possibility to use the 'export application' because it is
> for period section=dialplan only (but dialplan is not used in this moment
> yet).
>
> I need more variables for implementation of possibility to limit max
> amount of simultaneous registrations. So I plan to use
> http://wiki.freeswitch.org/wiki/API_sofia_count_reg from php script when
> xml_curl module sends POST request whith section=directory. But there is
> one problem.
>
> When sip device tries to do re-register, FS considers this request as a
> new registration. So FS will forbid this 'new registration' if limit is
> exceeded and the sip device will lose the registration. Mod curl does not
> give me variables for distinguishing the re-register from register (I
> would like to use variale variable_sip_call_id because re-register requests
> will have same sip_call_id)
> At present I search some method for recieve variables I need without
> modifying of source of curl module.
>
>
> Thanks.
>
>
> ------------------------------
> From: engineerzuhairraza at gmail.com
> Date: Sun, 19 Feb 2012 11:17:48 +0400
> To: freeswitch-users at lists.freeswitch.org
> Subject: Re: [Freeswitch-users] need more variables which xml_curl module
> sends
>
> Hi,
>
> They are already available in xml_curl POST, here is the complete post
> from freeswitch
>
> Also, if you need any custom variable, you can export using export
> application and get it in xml_cdr
>
> [hostname=zuhair.host&section=dialplan&tag_name=&key_name=&
>
>
> Regards,
> Zohair Raza
>
> 2012/2/17 Yuriy Nasida <nasida at live.ru>
>
> Hello FS users,
>
> I search some way for recieving more variables which my php script
> recieves in array - $_REQUEST from xml_curl module (it is intralanman's
> scripts) in case of recieving sip message - REGISTER from some sip device.
>
> I see list of variables:
> http://wiki.freeswitch.org/wiki/Mod_xml_curl#Authorization
>
> But, I need more. For example I need to know source sip port of endpoint.
> Also I have to know full SIP contact header from REGISTER request.
>
> Please advise.
> Thanks.
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
> http://www.cudatel.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: consulting at freeswitch.org
> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel
> Communication Server http://www.cudatel.com Official FreeSWITCH Sites
> http://www.freeswitch.org http://wiki.freeswitch.org
> http://www.cluecon.com FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:
> http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services: consulting at freeswitch.org
> http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel
> Communication Server http://www.cudatel.com Official FreeSWITCH Sites
> http://www.freeswitch.org http://wiki.freeswitch.org
> http://www.cluecon.com FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:
> http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> FreeSWITCH-powered IP PBX: The CudaTel Communication Server
> http://www.cudatel.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120223/1422d68e/attachment-0001.html
Loading...