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

Tzafrir Cohen tzafrir.cohen at xorcom.com
Thu Oct 4 18:24:13 CDT 2007


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 at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com       
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list