att_xfer source leg and lua dialplan
Hello everybody! I am using Freeswitch with mod_lua and have the following setup: User 1004 is calling user 101, user 101 does an att transfer to 103, but user 103 see the caller-id of 1004(basically 1004 is calling both 101 and 103: mod_dialplan_xml.c:637 Processing 1004 <1004>->103 in context 1_local_103) 101, not 1004 should call 103 How can i get caller-id of 101 on 103(set -bleg on transfer?? )? 101 user's context is : <context name="1_local_101"> <extension name="101"> <condition field="destination_number" expression="^(101)$"> <action application="bind_meta_app" data="# b s execute_extension::att_xfer XML features"/> <action application="bridge" data="{sip_invite_domain=1.sips.local}sofia/internal/101@1.sips.local"/> </condition> </extension> <extension name="empty"> <condition field="destination_number" expression="^(.*)$"> <action application="hangup" data="NO_ROUTE_DESTINATION"/> </condition> </extension> </context> 103 user's context: <context name="1_local_103"> <extension name="103"> <condition field="destination_number" expression="^(103)$"> <action application="export" data="ignore_display_updates=true"/> <action application="bind_meta_app" data="# b s execute_extension::att_xfer XML features"/> <action application="bridge" data="{sip_invite_domain=1.sips.local}sofia/internal/103@1.sips.local"/> </condition> </extension> <extension name="empty"> <condition field="destination_number" expression="^(.*)$"> <action application="hangup" data="NO_ROUTE_DESTINATION"/> </condition> </extension> </context> features context: <context name="features"> <extension name="att_xfer"> <condition field="destination_number" expression="^att_xfer$"> <action application="read" data="3 4 'tone_stream://%(10000,0,350,440)' digits 30000 #"/> <action application="set" data="origination_cancel_key=#"/> <action application="att_xfer" data="{sip_invite_domain=1.sips.local}sofia/internal/${digits}@$${domain}"/> </condition> </extension> <extension name="empty"> <condition field="destination_number" expression="^(.*)$"> <action application="hangup" data="NO_ROUTE_DESTINATION"/> </condition> </extension> </context> -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/att-xfer-source-leg-and-lua-di... Sent from the freeswitch-users mailing list archive at Nabble.com.
P.S. Freeswitch works without registrations. All registrations is on Opensips. <http://freeswitch-users.2379917.n2.nabble.com/file/n7596345/Screenshot_20170808_111139.png> -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/att-xfer-source-leg-and-lua-di... Sent from the freeswitch-users mailing list archive at Nabble.com.
problem was fixed by using "user/" instead of "sofia/internal" and custom dial-string (without sofia_contact) -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/att-xfer-source-leg-and-lua-di... Sent from the freeswitch-users mailing list archive at Nabble.com.
participants (1)
-
animal_alpha