[Freeswitch-users] Setting SIP From Header using Lua

chrisbware at interfree.it chrisbware at interfree.it
Fri Sep 9 20:36:43 MSD 2011


Hi,

following Lua wiki example:

session1 = freeswitch.Session("sofia/internal/1001%192.168.1.1");
session2 = freeswitch.Session("sofia/internal/1002%192.168.1.1");
freeswitch.bridge(session1, session2);

I'm trying to bridge two numbers on PSTN. Everything works but my SIP Provider reject call since my SIP From (From: "" <sip:0000000000 at myserverip) is different from the digest username.

I don't have any gateway configured on FS, since auth parameters are passed on Session arguments (["sip_auth_username="..Myuser..",sip_auth_password="..Mypasswd]).

I've tried many arguments in order to chenge from user without luck.

How can I do it? 

Thanks in advance.


-------------------------------------------------------------------------------
Valore legale alle tue mail
InterfreePEC - la tua Posta Elettronica Certificata
http://pec.interfree.it
-------------------------------------------------------------------------------




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