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
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? On Thu, Jun 4, 2009 at 6:02 AM, Yuriy Ivzhenko <yivzhenko@mksat.net> wrote:
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
-- -Rupa
On Thursday 04 June 2009 15:54:24 Rupa Schomaker wrote:
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?
Yes, there is internal callerid on the channel. I have external (PSTN) number, associated with this internal number. And i need to pass them to provider.
Update to at least rev 13611 and mod_lcr will check "effective_caller_id_number" prior to the real callerid on the channel. This works in the same way that bridge does so no surprises. On Thu, Jun 4, 2009 at 8:15 AM, Yuriy Ivzhenko <yivzhenko@mksat.net> wrote:
On Thursday 04 June 2009 15:54:24 Rupa Schomaker wrote:
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?
Yes, there is internal callerid on the channel. I have external (PSTN) number, associated with this internal number. And i need to pass them to provider.
_______________________________________________ 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
-- -Rupa
Impressive!!! :) On Thursday 04 June 2009 16:57:52 Rupa Schomaker wrote:
Update to at least rev 13611 and mod_lcr will check "effective_caller_id_number" prior to the real callerid on the channel. This works in the same way that bridge does so no surprises.
On Thu, Jun 4, 2009 at 8:15 AM, Yuriy Ivzhenko <yivzhenko@mksat.net> wrote:
On Thursday 04 June 2009 15:54:24 Rupa Schomaker wrote:
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?
Yes, there is internal callerid on the channel. I have external (PSTN) number, associated with this internal number. And i need to pass them to provider.
_______________________________________________ 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
participants (2)
-
Rupa Schomaker
-
Yuriy Ivzhenko