The API mthod of setting the callerid is really for testing purposes. Since you have no callerid from the FS command line interface I added a parameter you can pass to specify the CID.
When in the dialplan you actually have the CID, so none is used.
mod_lcr is just grabbing the callerid on the channel. I assme this is not the base callerid you want passed to the sip provider?
Hello.
I have another problem with setting caller id with cid field.
command lcr has parameter [caller_id].
and if i call lcr from the commandline it works fine,
but if i call lcr from dialplan it ignores this parameter and use original caller id from caller.
my cid field = /^(.*)$/999$1/
If i call lcr from the commandline
lcr 444555 default 11111
lcr return origination_caller_id_number=99911111
but if i call lcr from dialplan
<action application="lcr" data="444555 default 11111"/>
lcr return origination_caller_id_number=9991002
1002 is a original caller id number
There is a way to use this parameter from dialplan?
Yuriy
_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org