1) Is the new address called "recorder" the address of the X-lite ? (i mean the machine on which the x-lite is installed ? )
no - assuming you're using the Converge runtime what you want to do is create a new Converge address called 'record' that forwards to your asterisk recorder address - that way, any Converge app can simply reference sip:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
(or whatever domain you've chosen for your Converge runtime installation) to access the recorder without needing to know the actual IP address of the recorder - this is the approach we used in our
screencast - take a look at the 18:00 mark for an example of a controller accessing the 'recorder' address
here's what you need to do to add the 'recorder' address to the Converge runtime and configure it to forward to asterisk:
'recorder' is a UserAddress you add for an Individual (say, the 'admin' Individual) via the Converge Administration 'Addresses' web page (
http://localhost:8080/converge-admin-0.1/userAddress/list)
after you add the 'recorder' address, you subscribe the address to the built-in Converge 'Forward' feature using the Converge Administration 'Sub_script_ions' web page (
http://localhost:8080/converge-admin-0.1/featureSub_script_ion/list) - the feature should be subscribed to in the 'terminating' region since it's only intended for calls
to the recorder - since the recorder only subscribes to this one feature the default terminating priority value of 0 can be used (this value determines the relative order of a feature in the call path when an address subscribes to more than one feature)
the last step is to configure the recorder's newly subscribed to 'Forward' feature to forward to your asterisk recorder - to do this, use the Converge Forward Administration page (
http://localhost:8080/converge-forward-0.1/) and edit the entry for the recorder address so that the 'Forwarding User' is whatever sip 'user' you configured for your asterisk recorder (we used 'brecord' for our configuration), and "Forwarding Host' is the IP address of your asterisk server
that's it! i think this also answers your second question (please clarify the question if it doesn't)
we used the same approach for the p_layer_ function we configured on our asterisk server
the code we used for our screencast, as well as the asterisk config file we used are available from
here