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

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


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





More information about the asterisk-users mailing list