[Asterisk-Users] setting callerid not working if no callerid on incoming number

Gareth Blades list-asterisk at linguaphone.co.uk
Thu Mar 16 09:36:01 MST 2006


Sorry forgot to mention I am running 1.2.0RC1 (dont ask :) )
Here is the macro used to set the callerid.

[macro-uksales]
; UK SALES
; ARG1 = Caller ID Name to display on phone
exten => s,1,Set(CALLERID(name)=${ARG1})
exten => s,2,Dial(SIP/6030&IAX2/6030&SIP/6514,15,t)
exten => s,3,Voicemail(u6030)
exten => s,4,Hangup
exten => s,103,Goto(3)


On Thu, 2006-03-16 at 16:24, Gareth Blades wrote:
> If we get an incoming call I can edit the callerID provided to add the
> leading '90' and set the name so that sales calls can be identified
> according to the number called.
> 
> If however the callerID is unavailable then setting the callerID name or
> number fails (it shows as unavailable on the phone).
> This is the call log from such an incoming call without callerID.
> 
>   == Spawn extension (voip, 6204, 1) exited non-zero on 'Zap/2-1'
>     -- Hungup 'Zap/2-1'
>     -- Zap/3-1 answered SIP/6076-30ff
>     -- Accepting call from '' to '6201' on channel 0/2, span 1
>     -- Executing Set("Zap/2-1", "CALLERID(number)=90") in new stack
>     -- Executing Goto("Zap/2-1", "voip|6201|1") in new stack
>     -- Goto (voip,6201,1)
>     -- Executing Macro("Zap/2-1", "uksales|Press") in new stack
>     -- Executing Set("Zap/2-1", "CALLERID(name)=Press") in new stack
>     -- Executing Dial("Zap/2-1", "SIP/6030&IAX2/6030&SIP/6514|15|t") in
> new stack
>     -- Called 6030
> 
> Any ideas?
> 
> Thanks
> 
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list