[Asterisk-Dev] setting up fromuser

usman at user.iphonica.net usman at user.iphonica.net
Mon Feb 28 02:55:36 MST 2005


OK ! then i might give my configuration here if it helps ....
on Asterisk Server A  I only do this that if a number starting from 92 
comes forward it to the asterisk Server B :

exten => _92.,2,Dial(SIP/92514101408@<ip of Server B>,,rf)

When I receive the call on other end I just forward it to my softswitch 
... but the from header is changed ... what I do is : 

in extensions.conf 
exten => _92.,2,Dial(SIP/${EXTEN:2}@sip_proxy_out,,f)

and in sip.conf

[sip_proxy_out]
type=friend
host=<ip of SSW>
context = default
canreinvite=no 

Now the call forwards OK. But I dont know why Asterisk puts “asterisk” 
in from field rather than the original CLI. It gives ${CALLERIDNUM} fine 
... but from header is changed. Any thoughts ? 

khan.

On Sun, 27 Feb 2005, Kevin P. Fleming wrote:

> usman at user.iphonica.net wrote:
> 
> > I was just hoping that if someone couldnt answer my problem I might take a 
> > look into code and see where I can hack it to set fromuser field set to 
> > calleridnum .
> 
> But you don't need to; if you don't specify 'fromuser', then the SIP 
> user name in the From: header _will be_ the CLIP information. If that's 
> not happening, it's a configuration error somewhere on your system.
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
> 




More information about the asterisk-dev mailing list