[Freeswitch-users] Authorization User

David Villasmil david.villasmil.work at gmail.com
Sat Nov 19 06:12:47 MSK 2011


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 at 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 at 1.2.3.4:5060;transport=udp>;tag=jtr1yQHFUUp3H
            SIP Display info: "David"
            SIP from address: sip:123 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111119/e7ad57ea/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list