Hi Andreas, i concur, the option should exists. Rewriting the header must be much easier. E.g. to print the user portion of the from header, you have to: Snippet: pjsip_fromto_hdr *from; if ( ( from = pjsip_msg_find_hdr(tdata->msg, PJSIP_H_FROM, NULL)) == NULL ) PJ_LOG(3,(THIS_FILE, "default_mod_on_tx_request: No FROM header in message")); else { pjsip_sip_uri *sip_uri = (pjsip_sip_uri*)pjsip_uri_get_uri(from->uri); PJ_LOG(3,(THIS_FILE, "default_mod_on_tx_request: From: %s", sip_uri->user.ptr)); } What strikes me is, that there's no exact exaplanation how to rewrite headers. So,i was forced to read the pjsip plugin source of asterisk. Still learning btw. I use pj-sua. Currently i'm writing on a loop check which calls an external number and then, with the help of a fabulous Beronet Berofix, route it back to check is external calls are working for different providers. Quality assurance, as you may call it. Best regards Franz Citycom Telekommunikation GmbH Gadollaplatz 1 8010 Graz | Austria ________________________________________ Von: pjsip <pjsip-bounces@xxxxxxxxxxxxxxx> im Auftrag von Andreas Wehrmann <a.wehrmann@xxxxxxxxxx> Gesendet: Mittwoch, 27. November 2019 11:47 An: pjsip@xxxxxxxxxxxxxxx Betreff: Re: PJSUA: Set From userpart when making a call On 27.11.19 10:49, Skale Franz wrote: > Hi Andreas, > IMHO, you should be able to "rewrite" any header by using the pjsip_module mod_default_handler. > > Best regards > Franz > > Citycom Telekommunikation GmbH > Gadollaplatz 1 > 8010 Graz | Austria > > ________________________________________ > Howdy, Thanks for the suggestion but I don't really like this approach for this particular use-case. I know that the "From" header is set once when the INVITE session is created and kept throughout the lifetime of the session. Being able to influence what is set when the session is created seems to me to be the cleaner and easier approach because I'd need to do it only once and not need any extra modules which is why I brought this up in the first place. @Franz - Out of interest: Are you using pjsua or pjsip directly? Best Regards, Andreas _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org