[Freeswitch-users] understanding effective_caller_id_number and other variables before bridge
RR
ranjtech at gmail.com
Tue Apr 27 08:54:45 PDT 2010
Hello All,
just want to clarify my understanding re: variables etc that can be set
before a call bridge/transfer etc. It appears that we need to set these
variables immediately before the bridge without any other operation
occurring from when they are setup and when the bridge happens. Is that
true?
I have a very simple dialplan like so:
<include>
<extension name="DIDtest">
<condition field="ani" expression="^\+?|+1?|1?(\d+).*$"/>
<action application="export" data="effective_caller_id_number=$1"/>
<condition field="destination_number" expression="^\+?+1?1?(.*)$">
<action application="bridge"
data="{sip_invite_domain=${sip_from_host}}sofia/gateway/blade2/$1"/>
</condition>
</extension>
</include>
But when the call is sent to gateway blade2, the callerID on the call is
whatever the original callerID was with all the 1s and '+'s and whatever
prefixes the call came in with.
Questions:
a) can the variable effective_caller_id_number not be set dynamically from a
temp variable such as $1. I have also tried forcing it to a number
like effective_caller_id_number=20239388383 and even then it doesn't work
b) I have also tried
<action application="bridge"
data="{effective_caller_id_number=20239388383}{sip_invite_domain=${sip_from_host}}sofia/gateway/blade9/$1"/>
and that doesn't work either.
Any ideas?
Thanks
RR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100427/6a2d4f7b/attachment.html
More information about the FreeSWITCH-users
mailing list