[Asterisk-Users] Optipoint 400 Standard Sip

wendys wendys at tiscali.de
Fri Jul 23 11:10:37 MST 2004


Hi Steffen,


I'm sorry about my late response!

Thank you very, very(!!!) much, I had to learn how to handle the patch you
send me, but now it works great!
I changed the line in the chan_sip.c from stable V1.0 and it works great!!!

old:                 add_header(resp, "Contact", contact);

new:               copy_header(resp, req, "Contact");

Also secret could be set in Sip.conf !

Best regards!

Marco from Nuernberg Germany



----- Original Message ----- 
From: "Steffen Koepf" <taxman-ml at opaya.de>
To: <asterisk-users at lists.digium.com>
Sent: Wednesday, July 07, 2004 6:38 PM
Subject: Re: [Asterisk-Users] Optipoint 400 Standard Sip


> Hello,
>
> > I tried nearly everything, up and downgraded firmware, but nothing
worked.
> > I phoned with a siemens engineer, and he told me, that this version is
not
> > 100% sip confirm.
> > But there will be a workaround.
>
> if you mean the not-registering problem (and it works when the secret
> in sip.conf is commented out), try the patch below.
> The patch worked with asterisk-0.7.2, and several Optipoint 400 SIP
> (2.3.12) work well with asterisk here.
>
> Credits go out to Wilhelm Wimmreuter who posted a patch for this
> problem at 30 May 2003 at this ML. Parts of his patch found their
> way in the asterisk source tree, the patch included here is what's
> remaining to get this nice but expensive siemens phones working.
>
>
> cu,
>
> Steffen
>
>
>
>
> diff -Naur asterisk-cvs-20031029/channels/chan_sip.c
asterisk-cvs-20031029-new/channels/chan_sip.c
> --- asterisk-cvs-20031029/channels/chan_sip.c   2003-10-25
19:41:02.000000000 +0200
> +++ asterisk-cvs-20031029-new/channels/chan_sip.c       2003-10-29
21:35:00.000000000 +0100
> @@ -2219,7 +2219,10 @@
>                 snprintf(contact, sizeof(contact), "%s;expires=%d",
p->our_contact, p->expiry);
>                 snprintf(tmp, sizeof(tmp), "%d", p->expiry);
>                 add_header(resp, "Expires", tmp);
> -               add_header(resp, "Contact", contact);
> +                /*ww lwc change header to copy
> +                add_header(resp, "Contact", contact);
> +                */
> +                copy_header(resp, req, "Contact");
>         } else {
>                 add_header(resp, "Contact", p->our_contact);
>         }
>
> _______________________________________________
> 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