Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some event updated in freeswitch 1.4.x #4

Open
transtone opened this issue Jan 18, 2015 · 5 comments
Open

some event updated in freeswitch 1.4.x #4

transtone opened this issue Jan 18, 2015 · 5 comments

Comments

@transtone
Copy link

when run client.go ,it says:

2015/01/18 17:40:18 json: cannot unmarshal array into Go value of type string
exit status 1

when change to "c.Send("events plain ALL")" , it's ok.

@fiorix
Copy link
Owner

fiorix commented Jan 18, 2015

Can you provide a capture of the raw message failing to parse?

@transtone
Copy link
Author

New event
Contact: """ sip:[email protected]:5080;transport=udp;gw=serv1"
Core-Uuid: "f469cf84-cfaa-4c4e-be1f-b44a8bcb0ddb"
Event-Calling-File: "sofia_reg.c"
Event-Calling-Function: "sofia_reg_handle_register"
Event-Calling-Line-Number: "1602"
Event-Date-Gmt: "Mon, 19 Jan 2015 05:19:19 GMT"
Event-Date-Local: "2015-01-19 13:19:19"
Event-Date-Timestamp: "1421644759904055"
Event-Name: "CUSTOM"
Event-Sequence: "855904"
Event-Subclass: "sofia::pre_register"
Expires: "300"
Freeswitch-Hostname: "fs361"
Freeswitch-Ipv4: "192.168.36.1"
Freeswitch-Ipv6: "::1"
Freeswitch-Switchname: "fs361"
From-Host: "192.168.36.1"
From-User: "82098888"
Network-Ip: "192.168.36.36"
Network-Port: "5080"
Profile-Name: "internal"
Rpid: "unknown"
Status: "Registered(UDP)"
To-Host: "192.168.36.36"
To-User: "18874330005"
User-Agent: "FreeSWITCH-mod_sofia/1.4.15~64bit"

New event
Auth-Result: "RENEWED"
Contact: """ sip:[email protected]:5080;transport=udp;gw=serv1"
Core-Uuid: "f469cf84-cfaa-4c4e-be1f-b44a8bcb0ddb"
Event-Calling-File: "sofia_reg.c"
Event-Calling-Function: "sofia_reg_handle_register"
Event-Calling-Line-Number: "1413"
Event-Date-Gmt: "Mon, 19 Jan 2015 05:19:19 GMT"
Event-Date-Local: "2015-01-19 13:19:19"
Event-Date-Timestamp: "1421644759943977"
Event-Name: "CUSTOM"
Event-Sequence: "855907"
Event-Subclass: "sofia::register_attempt"
Expires: "3600"
Freeswitch-Hostname: "fs361"
Freeswitch-Ipv4: "192.168.36.1"
Freeswitch-Ipv6: "::1"
Freeswitch-Switchname: "fs361"
From-Host: "192.168.36.1"
From-User: "82098888"
Network-Ip: "192.168.36.36"
Network-Port: "5080"
Profile-Name: "internal"
Realm: "192.168.36.36"
Rpid: "unknown"
Status: "Registered(UDP)"
To-Host: "192.168.36.36"
To-User: "18874330005"
User-Agent: "FreeSWITCH-mod_sofia/1.4.15~64bit"
Username: "1000"
2015/01/19 13:19:17 json: cannot unmarshal array into Go value of type string
exit status 1

@pubyun
Copy link

pubyun commented Jan 31, 2015

same issue, and i find the following header fire the error message:

variable_DP_MATCH":["18123022625","18123022625"]

golang can't unmarshal array into string

@fiorix
Copy link
Owner

fiorix commented Jan 31, 2015

Definitely something has changed. I think I understand what the problem is but can’t work on it at the moment.
Will come back to this whenever I find the time. In the mean time, any patches are welcome.

On Jan 31, 2015, at 2:50 PM, Peng Yong [email protected] wrote:

same issue, and i find the following header fire the error message:

variable_DP_MATCH":["18123022625","18123022625"]

golang can't unmarshal array into string


Reply to this email directly or view it on GitHub #4 (comment).

@transtone
Copy link
Author

pubyun already get some work about this:
pubyun@2c062bf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants