[Asterisk-Users] Changing User-Agent: Asterisk PBX

ChB a0305292 at unet.univie.ac.at
Sat Sep 10 07:42:49 MST 2005


Allright, thank you. I had it configured in the host-section, not the general ;-)

On Sat, 10 Sep 2005 03:45:59 -0500
Curt Moore <tgrman21 at gmail.com> wrote:

> If you use the useragent field in the general section of sip.conf, after a 
> restart, or reload of chan_sip, the User-Agent field in the SIP header will 
> be changed.
> 
> Example sip.conf snippet:
> 
> [general]
> useragent=SomeCoolString
> 
> 
> On 9/9/05, ChB <a0305292 at unet.univie.ac.at> wrote:
> > 
> > Hello Folks!
> > 
> > in my sip-logs i see that asterisk uses the User-Agent ID "Asterisk
> > PBX":
> > 
> > SipClient: Received: 16:34:03.023
> > ---------------------------------
> > BYE sip:102141 at 131.130.XXX.XXX:44343;transport=udp SIP/2.0
> > Max-Forwards: 10
> > Record-Route: <sip:213.2XX.XXX.XX8;ftag=as2eb3c466;lr=on>
> > Via: SIP/2.0/UDP 213.2XX.XXX.XX8;branch=z9hG4bK539a.47e6e8a7.0 #this is 
> > SER
> > Via: SIP/2.0/UDP 213.2XX.XXX.XX7:5060;branch=z9hG4bK300d4e2b;rport=5060 # 
> > this is Asterisk
> > From: "012341234"<sip:012341234 at 213.208.XXX.XX7>;tag=as2eb3c466
> > To: <sip:1234 at 213.2XX.XXX.XX7>;tag=7E24716A
> > Contact: <sip:012341234 at 213.2XX.XXX.XX7>
> > Call-ID: 4fbd8b620170cb7a5b0e6e6037df07d0 at 213.2XX.XXX.XX7
> > CSeq: 103 BYE
> > User-Agent: Asterisk PBX
> > Content-Length: 0
> > Route: <sip:1234 at 131.130.XXX.XXX:44343;transport=udp>
> > 
> > this is an example from an incoming sip-call to a geographic number
> > with a matching extension dialing the sip-account 1234. I'd like to
> > customize this and thought activating the "useragent="-setting in the
> > sip.conf would change the display, but it doesn't seem to have any
> > effect. is this the right place to change this distinct entry or do i
> > have to edit it in the source?
> > Asterisk-Version is 1.0.9
> > 
> > Thanks
> > Christian
> > _______________________________________________
> > --Bandwidth and Colocation sponsored by Easynews.com <http://Easynews.com>--
> > 
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> 



More information about the asterisk-users mailing list