Adding variable to be passed via mod_xml_curl
I'm trying to use mod_xml_curl to fetch a dialplan based on the rdnis and it's turning out to be harder than it should. I'm unable to figure out how to add a custom value to be passed in the HTTP post: 2010-05-19 21:29:02.028280 [WARNING] ozmod_sangoma_boost.c:1632 RX EVENT: CALL_START:(80) [w1g20] CSid=0 Seq=2995 Cn=[N/A] Cd=[4067150999] Ci=[7025337717] Rdnis=[SMG003-CPC-010-GEN-000-4062249157-003-0-0-1] I need to acquire and pass the 4062249157 value from the Rdnis to my HTTP server script (that's the actual Rdnis, the value in Cd is the LRN and useless to me). Unfortunately, for whatever reason, mod_xml_curl only passes the LRN to my script. I'm having a difficult time as I can't determine exactly where I can put anything that will happen before mod_xml_curl is called for the dialplan (so I can't even use application info, for example, to see the list of actual variables). Any advice on how to do this one thing would probably get me 90% of the way there. Thanks in advance, Cliff --
On Wed, 2010-05-19 at 19:29 -0700, Cliff Wells wrote:
I'm having a difficult time as I can't determine exactly where I can put anything that will happen before mod_xml_curl is called for the dialplan (so I can't even use application info, for example, to see the list of actual variables). Any advice on how to do this one thing would probably get me 90% of the way there.
Actually, that might not help anyway. It was suggested to me on IRC to give mod_xml_curl an invalid URL to cause a variable dump (inbound caller ID obfuscated): Channel-State: [CS_EXECUTE] Channel-State-Number: [4] Channel-Name: [OpenZAP/1:22/4067150999] Unique-ID: [5ab07bb6-63ba-11df-bd7c-555cb1b118d6] 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: [OpenZAP] Caller-Dialplan: [XML] Caller-Caller-ID-Name: [708xxxxxx] Caller-Caller-ID-Number: [708xxxxxx] Caller-ANI: [708xxxxxxx] Caller-Destination-Number: [4067150999] Caller-Unique-ID: [5ab07bb6-63ba-11df-bd7c-555cb1b118d6] Caller-Source: [mod_openzap] Caller-Context: [default] Caller-Channel-Name: [OpenZAP/1:22/4067150999] Caller-Profile-Index: [1] Caller-Profile-Created-Time: [1274323788097303] Caller-Channel-Created-Time: [1274323788097303] 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: [true] Caller-Privacy-Hide-Name: [false] Caller-Privacy-Hide-Number: [false] variable_direction: [inbound] variable_uuid: [5ab07bb6-63ba-11df-bd7c-555cb1b118d6] variable_read_codec: [PCMU] variable_read_rate: [8000] variable_write_codec: [PCMU] variable_write_rate: [8000] variable_channel_name: [OpenZAP/1:22/4067150999] variable_openzap_span_name: [boostss7] variable_openzap_span_number: [1] variable_openzap_chan_number: [22] variable_current_application: [info] As can be seen, only the LRN (4067150999) is available, so even if I were able to parse something and set a variable, there doesn't appear to be anything to parse from. I guess I'll take it up with the Sangoma folks and see if they can offer a solution (or point the finger elsewhere). Regards, Cliff --
I see you'll need to ask Sangoma on this one. Sent from my iPad On May 19, 2010, at 9:29 PM, Cliff Wells <cliff@develix.com> wrote:
I need to acquire and pass the 4062249157 value from the Rdnis to my HTTP server script (that's the actual Rdnis, the value in Cd is the LRN and useless to me). Unfortunately, for whatever reason, mod_xml_curl only passes the LRN to my script.
participants (2)
-
Brian West
-
Cliff Wells