El Miércoles, 4 de Febrero de 2009 06:16, Eugene Prokopiev escribió:
> 2009/2/3, Kristijan Vrban:
> > Perhaps this way? (dont know if that works):
> >
> > Set(SIP_HEADER(From)=tel:+78632800000;cpc-root=0>)
>
> It is impossible to setup variable values with '=' :(
>
> With:
>
> Set(SIP_HEADER(From)="tel:+78632800000;cpc-root=0")
>
> I got something like:
>
> -- Executing [2440...@local:1] Set("SIP/102-fff4", "SIP_HEADER(From")
> Feb 4 09:13:28 WARNING[1092921664]: pbx.c:7024 pbx_builtin_setvar:
> Ignoring entry 'SIP_HEADER(From' with no '=' (and not last 'options'
> entry)
Also, AFAIK SIP_HEADER(<header>) are read-only, you could not change them,
also what you try to do violates RFC3261, because on the "From" header, the
format is:
>From = ( "From" / "f" ) HCOLON from-spec
from-spec = ( name-addr / addr-spec )
*( SEMI from-param )
name-addr = [ display-name ] LAQUOT addr-spec RAQUOT
addr-spec = SIP-URI / SIPS-URI / absoluteURI
SIP-URI = "sip:" [ userinfo ] hostport
uri-parameters [ headers ]
SIPS-URI = "sips:" [ userinfo ] hostport
uri-parameters [ headers ]
So I think, what you are trying is completly wrong, from a SIP POV
Best Regards
--
Raúl Alexis Betancor Santana
Dimensión Virtual
_______________________________________________
Callweaver-users mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-users