Hello All,
Okay. Since the user may specify a URL that doesn't begin with "sip:", I
implemented it in the following way and it works:
// proxy is hard-coded here as an example
char proxy[URI_LENGTH] = {"jerryr-xppro.greyhawk.tonecommander.com");
url_t *obUrl = url_format(appl->home, "%s", proxy);
obUrl->url_port = "55555"; // hard-coded as an example
nua_set_params(nuaH, NUTAG_PROXY((url_string_t *)obUrl), TAG_END());
Best Regards,
Jerry
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2008 1:42 AM
To: [EMAIL PROTECTED]; [email protected]
Subject: RE: [Sofia-sip-devel] Setting NUTAG_PROXY()
Hi,
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] On Behalf Of ext
>Jerry Richards
>Sent: Monday, June 30, 2008 10:28 PM
>To: [email protected]
>Subject: Re: [Sofia-sip-devel] Setting NUTAG_PROXY()
>
>By the way, in my original Email, the following line is a correction:
>
>strcpy(outbound_proxy.us_str,
>"jerryr-xppro.greyhawk.tonecommander.com:5060");
Try "sip:jerryr-xppro.greyhawk.tonecommander.com:5060". The tag expects an
URI.
Best regards,
Mikhail
>-----Original Message-----
>From: Jerry Richards [mailto:[EMAIL PROTECTED]
>Sent: Monday, June 30, 2008 12:21 PM
>To: '[email protected]'
>Subject: Setting NUTAG_PROXY()
>
>Hello All,
>
>Why does the sofia-sip stack reply with event "900 Error setting NTA
>parameters" when I specify a port # in the NUTAG_PROXY() parameter
>string, as shown below:
>
>Url_string_t outbound_proxy;
>strcpy(outbound_proxy, "jerryr-xppro.greyhawk.tonecommander.com:5060");
>nua_set_params(nua, NUTAG_PROXY(&outbound_proxy), TAG_END());
>
>If I remove the ":5060" on the end, then it does not get an error.
>
>Anyone know why?
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Sofia-sip-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel