[asterisk-users] Teliax: where's the space in CALLERID(num) from?

Philipp Kempgen philipp.kempgen at amooma.de
Sat Jun 6 14:24:49 CDT 2009


sean darcy schrieb:
> I'm having trouble setting callerid with teliax. I use a simple dial-out 
> subroutine to set the callerid depending on the calling extension, and 
> then dial out. Teliax is saying they're not seeing any callerid info.

> exten => s,n,Set(CALLERID(num)=${IF($[0${CALLERID(num)} > 140] ? 
> ${MAINSTUB}${CALLERID(num)}:${MAINNUMBER} )} )
                                           ^  ^
                              remove the trailing spaces

>      -- Executing [s at DialOut:4] Set("SIP/178-081c52a0", 
> "CALLERID(num)=xxxyyyy178 ") in new stack

> But when * sets the callerid in 
> s at DialOut:4 there's a trailing space

> But CALLERID(num) does not start with a trailing space - see 
> s at DialOut:2, so concatenating it with the rest of the number shouldn't 
> create a space. Right?


    Philipp Kempgen
-- 
AMOOMA GmbH - Bachstr. 126 - 56566 Neuwied  ->  http://www.amooma.de
Geschäftsführer: Stefan Wintermeyer, Handelsregister: Neuwied B14998
Asterisk: http://the-asterisk-book.com - http://das-asterisk-buch.de
Videos of the AMOOCON VoIP conference 2009 ->  http://www.amoocon.de
-- 



More information about the asterisk-users mailing list