[Freeswitch-users] accessing variable after 302

Miha miha at softnet.si
Fri Jun 29 17:10:10 MSD 2012


Hi,

I have one problem with variables when it goes for different PBX on same FS.

Scenario:

A calls B (B is registered on FS and has set 302 redirect to user who is 
on different PBX).

Problems is that FS uses varibles from user A (not on FS) which is 
calling user B. I can not use varibles from user B, which I must get for 
radius authentication.

p.s.: I have set munual redirect in sip_profiles

This is redirect.xml

<context name="redirected">

<extension name="check_auth" continue="true">
   <condition field="${sip_authorized}" expression="^true$">
     <anti-action application="respond" data="407"/>
   </condition>
</extension>

   <extension name="redirected_enterprise">
    <condition field="${domena}" expression="enterprise.fs2.xxxxx.si">
        <action application="set" data="sip_contact_user=${sip_to_user}" />
    <action application="info" />

        <action application="transfer" data="${sip_req_user} XML 
enterprise.fs2.xxxxx.si"/>

<!-- <action application="bridge" data="${sip_redirect_dialstring}" /> -->
  </condition>
   </extension>

 From info application:

Channel-State-Number: [4]
Channel-Name: [sofia/internal/051357952 at xxx.xxx.xxx.xxx]
Unique-ID: [cc021cec-c1e2-11e1-88b5-eb0ece2a11d3]
Call-Direction: [inbound]
Presence-Call-Direction: [inbound]
Channel-HIT-Dialplan: [true]
Channel-Presence-ID: [051357952 at xxx.xxx.xxx.xxx]
Channel-Call-UUID: [cc021cec-c1e2-11e1-88b5-eb0ece2a11d3]
Answer-State: [ringing]
Caller-Direction: [inbound]
Caller-Username: [051357952]
Caller-Dialplan: [XML]
Caller-Caller-ID-Name: [051357952]
Caller-Caller-ID-Number: [051357952]

051357952 is number, which is calling user B.


Thanks!

Miha

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120629/d318aca3/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list