Thursday, October 4, 2007

Re: [asterisk-users] Setting caller id value on outgoing calls using .call files

On Thu, Oct 04, 2007 at 04:10:09PM -0400, Arpit Mehta wrote:
> Hi all,
>
> I was looking at a way to add the caller id to the outgoing calls (which are
> made using .call files) using asterisk. Any ideas how to do this ?
> Currently I get 'Unknown' number displayed on my phone when asterisk makes
> an outgoing call.
>
> Also using something like this is not working as it still displays unknown
> number. I want set the callerid on the 1.call which is made.
>
> exten => _.,4,Set(CALLERID(all)=Joe <911>)
> exten => _.,5,system(cp /var/spool/asterisk/1.call /var/spool/asterisk/outgoing/)
>

Two things:

1. You use a copying. Which means:
- Create /var/spool/asterisk/outgoing/1.call
- Start writing content from original to new
- close that 1.call

If Asterisk catches the call file in the middle of copying, you have a
problem.

2. "_." may behave unexpectedly, I guess.

--
Tzafrir Cohen
icq#16849755 jabber:tzafrir.cohen@xorcom.com
+972-50-7952406 mailto:tzafrir.cohen@xorcom.com

http://www.xorcom.com

iax:guest@local.xorcom.com/tzafrir

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:

http://lists.digium.com/mailman/listinfo/asterisk-users

No comments: