Hello Guys,

When I create a GW it MUST have a username and password in the sofia config, so i set a generic one like "123"

Problem is, i need to send out in the FROM the callerid of the actual caller...

I've tried setting (lua) on the outgoing call:

          session:execute("set","sip_from_user=" .. caller_id .. "")
          session:execute("set","sip_auth_username=" .. caller_id .. "")
          session:execute("set","sip_req_user=" .. caller_id .. "")
 
But still the only thing that is correctly set is:

        Remote-Party-ID: "David" <sip:8889990@1.2.3.4:5060>;party=calling;screen=yes;privacy=off
            [Expert Info (Note/Undecoded): Unrecognised SIP header (Remote-Party-ID)]
                [Message: Unrecognised SIP header (Remote-Party-ID)]
                [Severity level: Note]
                [Group: Undecoded]


        From: "David" <sip:123@1.2.3.4:5060;transport=udp>;tag=jtr1yQHFUUp3H
            SIP Display info: "David" 
            SIP from address: sip:123@1.2.3.4:5060
                SIP from address User Part: 123
                SIP from address Host Part: 1.2.3.4
                SIP from address Host Port: 5060
            SIP tag: jtr1yQHFUUp3H

I would need to set the FROM correctly...



Any thoughts?

Thanks

David